From 48e61bb7aefdbe6ee8c56304bf488048a04c4c44 Mon Sep 17 00:00:00 2001 From: Bryan Hyshka Date: Mon, 23 Jul 2018 09:48:07 -0600 Subject: Remove enter, down, clean commands. Make up starts container and launches cli.py. --- Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fabe763..bdef2cc 100644 --- a/Makefile +++ b/Makefile @@ -13,13 +13,4 @@ build: ## Build the Docker image docker build -t $(IMAGENAME) ./docker up: build ## Bring the Docker container up - docker run -td -v $(PWD):/opt --name $(CONTAINERNAME) $(IMAGENAME) || echo 'Already up!' - -down: ## Stop the Docker container - docker stop $(CONTAINERNAME) - -enter: ## Enter the running Docker container - docker exec -it $(CONTAINERNAME) /bin/bash - -clean: down ## Stop and remove Docker container - docker rm $(CONTAINERNAME) + docker run -it -v $(PWD):/opt --name $(CONTAINERNAME) $(IMAGENAME) python3 cli.py || echo 'Already up!' -- cgit v1.2.3 From 0f3ffbab9d907ac3a30f189e54fd8cecbd479aaa Mon Sep 17 00:00:00 2001 From: Bryan Hyshka Date: Mon, 23 Jul 2018 09:53:50 -0600 Subject: Add --rm flag --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bdef2cc..30982dc 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,4 @@ build: ## Build the Docker image docker build -t $(IMAGENAME) ./docker up: build ## Bring the Docker container up - docker run -it -v $(PWD):/opt --name $(CONTAINERNAME) $(IMAGENAME) python3 cli.py || echo 'Already up!' + docker run -it --rm -v $(PWD):/opt --name $(CONTAINERNAME) $(IMAGENAME) python3 cli.py || echo 'Already up!' -- cgit v1.2.3