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
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
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.

View File

@ -14,3 +14,16 @@ continuously on a private registry at [r.j3ss.co](https://r.j3ss.co/) for public
welcome.)
You may also want to checkout my [dotfiles](https://github.com/jessfraz/dotfiles), specifically the aliases for all these files which are here: [github.com/jessfraz/dotfiles/blob/master/.dockerfunc](https://github.com/jessfraz/dotfiles/blob/master/.dockerfunc).
## Using the `Makefile`
```
$ make help
build Builds all the dockerfiles in the repository.
dockerfiles Tests the changes to the Dockerfiles build.
image Build a Dockerfile (ex. DIR=telnet).
latest-versions Checks all the latest versions of the Dockerfile contents.
run Run a Dockerfile from the command at the top of the file (ex. DIR=telnet).
shellcheck Runs the shellcheck tests on the scripts.
test Runs the tests on the repository.
```