1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00

Remove unncesary make target and add instructions on how to use the

makefile
This commit is contained in:
Jonathan Leibiusky @xetorthio 2016-11-21 20:48:29 -03:00
parent 47d4ceab84
commit 903489c395
2 changed files with 5 additions and 4 deletions

View File

@ -22,9 +22,5 @@ start:
# Mount the host's GOPATH shared folder
docker-machine ssh pwd "sudo mount -t vboxsf gopathsrc /go/src"
# Runs the app
run:
@eval $$(docker-machine env pwd); \
docker-compose up
.PHONY: prepare start run

View File

@ -21,6 +21,11 @@ just run `docker swarm init`.
It's also necessary to manually load the IPVS kernel module because as swarms are created in `dind`,
the daemon won't load it automatically. Run the following command for that purpose: `sudo lsmod xt_ipvs`
If you are developing, there is a `Makefile` file with 2 targets that can set the whole environment for you (using docker-machine and virtual box).
Just run once `make create`, which will create the docker-machine environment.
Additionally, every time you want to start you environment run `make start`.
And to start the application on a container on the docker machine host, run: `eval $(docker-machine env pwd) && docker-compose up`
## Installation