Skip to content

Commit

Permalink
No SSH agent running? No error
Browse files Browse the repository at this point in the history
* no longer throw an error if no ssh agent is running
  • Loading branch information
JeroenBoersma committed Jul 27, 2018
1 parent b339afe commit 23795ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 84 deletions.
9 changes: 8 additions & 1 deletion bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ init() {
dc yml 'docker-compose.yml';
dc yml_if 'build/dist/docker-compose-blackfire.yml' 'conf/blackfire';
dc yml_if 'docker-custom.yml' 'docker-custom.yml';
dc yml_os
dc yml_os;
dc yml_ssh;

dc mode 'run --rm';

Expand Down Expand Up @@ -124,6 +125,12 @@ dc() {
fi
}

yml_ssh() {
if [ -n "${SSH_AUTH_SOCK}" ]; then
yml build/dist/docker-compose-ssh.yml;
fi
}

mode() {
DEV_MODE=$*;
}
Expand Down
67 changes: 0 additions & 67 deletions build/dist/docker-compose-ssh.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,24 @@
version: '2'
networks: {}
volumes:
dockerdev-mysql-volume:
external: true

services:
db:
image: percona
volumes:
- ./conf.d/mysql:/etc/mysql/conf.d:ro
- dockerdev-mysql-volume:/var/lib/mysql:rw
env_file:
- ./conf/mysql
network_mode: bridge
ports:
- 127.0.0.1:3306:3306

mailcatch:
image: mailhog/mailhog
network_mode: bridge

php70:
build:
context: build/dist/php70
links:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge
php56:
build:
context: build/dist/php56
links:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge
php71:
build:
context: build/dist/php71
links:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge
php72:
build:
context: build/dist/php72
links:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge

redis:
image: redis:alpine
network_mode: bridge

web:
build:
context: build/dist/web
environment:
DOMAINSUFFIX: '.localhost'
links:
- mailcatch
- php70:fpm
- php70:fpm70
- php56:fpm56
- php71:fpm71
- php72:fpm72
network_mode: bridge
ports:
- 127.0.0.1:443:443
- 127.0.0.1:80:80
16 changes: 0 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ services:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge
php56:
build:
Expand All @@ -39,10 +35,6 @@ services:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge
php71:
build:
Expand All @@ -51,10 +43,6 @@ services:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge
php72:
build:
Expand All @@ -63,10 +51,6 @@ services:
- db
- mailcatch
- redis
environment:
SSH_AUTH_SOCK: "/ssh-socket"
volumes:
- ${SSH_AUTH_SOCK}:/ssh-socket:ro
network_mode: bridge

redis:
Expand Down

0 comments on commit 23795ae

Please sign in to comment.