Closed kevinmichaelchen closed 5 years ago
A Makefile might help productivity, so you don't have to grep history or go searching for past commands you've run.
You'd run make stop remove build to stop the running containers, remove the images, and build and test.
make stop remove build
.PHONY: stop docker stop $(shell docker ps -aqf "name=jwt-nginx-cont") .PHONY: remove @$(MAKE) stop docker rmi -f $(shell docker ps -aqf "name=jwt-nginx") .PHONY: build ./build.sh
Note: Makefiles don't like spaces, so you gotta convert them to tabs.
A Makefile might help productivity, so you don't have to grep history or go searching for past commands you've run.
You'd run
make stop remove build
to stop the running containers, remove the images, and build and test.Note: Makefiles don't like spaces, so you gotta convert them to tabs.