Fix docker-[build|run|attach Makefile targets
This commit is contained in:
Родитель
f646a0130d
Коммит
882cbbe865
|
@ -23,10 +23,10 @@ There's a full deployment in Docker image in the docker/ directory.
|
|||
To build it::
|
||||
|
||||
$ cd docker
|
||||
$ make docker
|
||||
$ make docker-build
|
||||
|
||||
Then, to run it::
|
||||
|
||||
$ make run
|
||||
$ make docker-run
|
||||
|
||||
This will expose the service book on http://localhost:5000
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
SERVICEBOOK = http://192.168.1.12:5000/api/
|
||||
|
||||
build:
|
||||
docker-build:
|
||||
docker build -t serviceweb/dev:latest .
|
||||
|
||||
run:
|
||||
docker-run:
|
||||
docker run -p 127.0.0.1:5000:5000 -e SERVICEBOOK=$(SERVICEBOOK) serviceweb/dev
|
||||
|
||||
attach:
|
||||
docker-attach:
|
||||
docker exec -i -t $(ID) /bin/bash
|
||||
|
|
Загрузка…
Ссылка в новой задаче