mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-16 20:07:25 +08:00
Remove unncesary make target and add instructions on how to use the
makefile
This commit is contained in:
parent
47d4ceab84
commit
903489c395
4
Makefile
4
Makefile
@ -22,9 +22,5 @@ start:
|
|||||||
# Mount the host's GOPATH shared folder
|
# Mount the host's GOPATH shared folder
|
||||||
docker-machine ssh pwd "sudo mount -t vboxsf gopathsrc /go/src"
|
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
|
.PHONY: prepare start run
|
||||||
|
@ -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`,
|
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`
|
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
|
## Installation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user