TeslaGov / ngx-http-auth-jwt-module

Secure your NGINX locations with JWT
MIT License
310 stars 119 forks source link

Makefile #23

Closed kevinmichaelchen closed 5 years ago

kevinmichaelchen commented 6 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.

.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.