From 9673a5e57bffd425456522fa94f5da7fc2df3acd Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Wed, 18 Jul 2018 11:00:37 +0200 Subject: [PATCH] added some convenience helpers --- client/Makefile.docker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/Makefile.docker b/client/Makefile.docker index 283eeb1..f8666b0 100644 --- a/client/Makefile.docker +++ b/client/Makefile.docker @@ -1,8 +1,10 @@ +DOCKER_CONTAINER := alice-lg-node-build DOCKER_IMAGE := alice-lg-node:latest DOCKER_EXEC := docker run -t -i \ -a stdin -a stdout -a stderr \ -v `pwd`:/client/ \ + --name $(DOCKER_CONTAINER) \ $(DOCKER_IMAGE) /bin/bash -c all: client @@ -22,8 +24,12 @@ client_prod: deps @echo "Building alice UI (production)" $(DOCKER_EXEC) "DISABLE_LOGGING=1 NODE_ENV=production ./node_modules/.bin/gulp" - watch: $(DOCKER_EXEC) "while true; do ./node_modules/.bin/gulp watch; done" +stop: + docker stop $(DOCKER_CONTAINER) + +kill: + docker kill $(DOCKER_CONTAINER)