update makefile

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle
2018-09-25 04:21:17 -04:00
parent 970e4ee73c
commit 0866908007
2 changed files with 19 additions and 0 deletions

View File

@@ -19,6 +19,12 @@ run: ## Run a Dockerfile from the command at the top of the file (ex. DIR=telnet
@:$(call check_defined, DIR, directory of the Dockefile)
@$(CURDIR)/run.sh "$(DIR)"
REGISTRY := r.j3ss.co
.PHONY: image
image: ## Build a Dockerfile (ex. DIR=telnet).
@:$(call check_defined, DIR, directory of the Dockefile)
docker build --rm --force-rm -t $(REGISTRY)/$(subst /,:,$(DIR)) ./$(DIR)
.PHONY: test
test: dockerfiles shellcheck ## Runs the tests on the repository.