From 882cbbe8656330f6f98cbe5e708d345a35fe32b0 Mon Sep 17 00:00:00 2001 From: Stephen Donner Date: Tue, 29 May 2018 13:19:08 -0700 Subject: [PATCH] Fix docker-[build|run|attach Makefile targets --- README.rst | 4 ++-- docker/Makefile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 93adf68..6dd972c 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/docker/Makefile b/docker/Makefile index cef0dd4..109cf3a 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -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