deps: migrate to modules (#386)
Move away from using dep to use Go modules which is production ready as of 1.14. Also tidy up README to make instructions for local development clearer Fixes #385
This commit is contained in:
@@ -7,29 +7,29 @@ services:
|
||||
- "80:8080"
|
||||
volumes:
|
||||
- ./haproxy:/usr/local/etc/haproxy
|
||||
|
||||
|
||||
pwd:
|
||||
# pwd daemon container always needs to be named this way
|
||||
container_name: pwd
|
||||
# use the latest golang image
|
||||
image: golang
|
||||
# go to the right place and starts the app
|
||||
command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/github.com/play-with-docker/play-with-docker; go run api.go -save /pwd/sessions -name l2'
|
||||
command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/; go run api.go -save /pwd/sessions -name l2'
|
||||
volumes:
|
||||
# since this app creates networks and launches containers, we need to talk to docker daemon
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
# mount the box mounted shared folder to the container
|
||||
- $GOPATH/src:/go/src
|
||||
- $PWD:/go/src
|
||||
- sessions:/pwd
|
||||
l2:
|
||||
container_name: l2
|
||||
# use the latest golang image
|
||||
image: golang
|
||||
# go to the right place and starts the app
|
||||
command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/github.com/play-with-docker/play-with-docker/router/l2; go run l2.go -ssh_key_path /etc/ssh/ssh_host_rsa_key -name l2 -save /pwd/networks'
|
||||
command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/router/l2; go run l2.go -ssh_key_path /etc/ssh/ssh_host_rsa_key -name l2 -save /pwd/networks'
|
||||
volumes:
|
||||
- $GOPATH/src:/go/src
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- $PWD:/go/src
|
||||
- networks:/pwd
|
||||
ports:
|
||||
- "8022:22"
|
||||
|
||||
Reference in New Issue
Block a user