mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-05-02 08:36:15 +02:00
update makefile
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
970e4ee73c
commit
0866908007
6
Makefile
6
Makefile
@ -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)
|
@:$(call check_defined, DIR, directory of the Dockefile)
|
||||||
@$(CURDIR)/run.sh "$(DIR)"
|
@$(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
|
.PHONY: test
|
||||||
test: dockerfiles shellcheck ## Runs the tests on the repository.
|
test: dockerfiles shellcheck ## Runs the tests on the repository.
|
||||||
|
|
||||||
|
13
README.md
13
README.md
@ -14,3 +14,16 @@ continuously on a private registry at [r.j3ss.co](https://r.j3ss.co/) for public
|
|||||||
welcome.)
|
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).
|
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.
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user