Skip to content

Commit

Permalink
Remove sudo from docker scripts as I have now added the current user …
Browse files Browse the repository at this point in the history
…to docker group and removed DOCKER_HOST from environment variable
  • Loading branch information
portchris committed Jan 5, 2019
1 parent 6963a31 commit 8190d14
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 18 deletions.
9 changes: 0 additions & 9 deletions env/nginx/webserver/vhost.d/default
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
## Start of configuration add by letsencrypt container
location ^~ /.well-known/acme-challenge/ {
auth_basic off;
allow all;
root /usr/share/nginx/html;
try_files $uri =404;
break;
}
## End of configuration add by letsencrypt container
2 changes: 1 addition & 1 deletion letsencrypt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# @see https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion for available commands

sudo docker-compose exec letsencrypt bash -c 'cd /app; exec "${SHELL:-sh}"'
docker-compose exec letsencrypt bash -c 'cd /app; exec "${SHELL:-sh}"'
2 changes: 1 addition & 1 deletion logs.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

sudo docker-compose logs -f $@
docker-compose logs -f $@
2 changes: 1 addition & 1 deletion magento.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

sudo docker-compose exec --user www php72 n98-magerun --root-dir=/home/www/naturalremedy/src $@
docker-compose exec --user www php72 n98-magerun --root-dir=/home/www/naturalremedy/src $@
2 changes: 1 addition & 1 deletion mysql.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

sudo docker-compose exec mysql mysql -h127.0.1.1 -p $@
docker-compose exec mysql mysql -h127.0.1.1 -p $@
2 changes: 1 addition & 1 deletion nginx.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

sudo docker-compose exec nginx bash -c 'cd /etc/nginx; exec "${SHELL:-sh}"'
docker-compose exec nginx bash -c 'cd /etc/nginx; exec "${SHELL:-sh}"'
2 changes: 1 addition & 1 deletion php.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

sudo docker-compose exec -u www php72 bash -c 'cd /home/www/naturalremedy/; exec "${SHELL:-sh}"'
docker-compose exec -u www php72 bash -c 'cd /home/www/naturalremedy/; exec "${SHELL:-sh}"'
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

sudo docker-compose up -d --remove-orphans
docker-compose up -d --remove-orphans
4 changes: 2 additions & 2 deletions stop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

sudo docker-compose stop -t0
sudo docker-compose rm -f
docker-compose stop -t0
docker-compose rm -f

0 comments on commit 8190d14

Please sign in to comment.