-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored DOckerfile and Makefile to improve execution experience.
- Loading branch information
Jeff Wright
committed
Nov 14, 2021
1 parent
182e7e1
commit d0176aa
Showing
3 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))) | ||
NAME:=$(shell grep -e "^name\s*=\s*" pyproject.toml | cut -d = -f 2 | xargs) | ||
VERSION:=$(shell grep -e "^version\s*=\s*" pyproject.toml | cut -d = -f 2 | xargs) | ||
|
||
build-all: build-run build-test | ||
apg-build: | ||
docker build --target apg-run --tag $(NAME):$(VERSION) . | ||
|
||
build-run: | ||
docker build --target run --tag apg-run . | ||
run: | ||
docker run --rm -it -v $(DIR)/apgfiles:/audio_program_generator/apgfiles apg-run | ||
apg: | ||
docker run --rm -it -v $(DIR)/apgfiles:/audio_program_generator/apgfiles $(NAME):$(VERSION) ${args} | ||
|
||
apg-build-test: | ||
docker build --target apg-test --tag apg-test:$(VERSION) . | ||
|
||
build-test: | ||
docker build --target test --tag apg-test . | ||
test: | ||
docker run --rm -it -v $(DIR)/apgfiles:/audio_program_generator/apgfiles apg-test | ||
docker run --rm -it -v $(DIR)/apgfiles:/audio_program_generator/apgfiles apg-test:$(VERSION) | ||
|
||
.PHONY : clean | ||
clean: | ||
docker container rm -f $(NAME):$(VERSION) | ||
docker image rm -f $(NAME):$(VERSION) |
This file was deleted.
Oops, something went wrong.