-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from crim-ca/fix-nlp-docker
- Loading branch information
Showing
3 changed files
with
47 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,6 @@ | |
# disallow notebooks at root | ||
./*.ipynb | ||
**/.ipynb_checkpoints/ | ||
|
||
### Outputs | ||
*.log |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Included custom configs change the value of MAKEFILE_LIST | ||
# Extract the required reference beforehand so we can use it for help target | ||
MAKEFILE_NAME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) | ||
# Include custom config if it is available | ||
-include Makefile.config | ||
|
||
# Application | ||
APP_ROOT := $(abspath $(lastword $(MAKEFILE_NAME))/..) | ||
APP_NAME := $(shell basename $(APP_ROOT)) | ||
APP_DOMAINS ?= eo nlp | ||
DOCKER_REPO ?= crim-ca/pavics-jupyter-images | ||
|
||
DOCKER_BUILDS := $(addprefix docker-build-, $(APP_DOMAINS)) | ||
$(DOCKER_BUILDS): docker-build-%: | ||
docker build -t $(DOCKER_REPO)/$*:latest "$(APP_ROOT)/$(*)" 2>&1 | tee "$(APP_ROOT)/make-$@.log" | ||
|
||
.PHONY: docker-build | ||
docker-build: $(DOCKER_BUILDS) |
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