-
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.
Adding a container and working on methods.
- Loading branch information
Showing
4 changed files
with
187 additions
and
125 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ifndef CNTR | ||
CNTR=podman | ||
endif | ||
|
||
ifdef SSH_AUTH | ||
SSH_AUTH_OPT=--mount type=bind,source=$(SSH_AUTH),target=/root/.ssh | ||
endif | ||
|
||
help: | ||
@echo "Makefile for epiforecasts" | ||
@echo "" | ||
@echo " help : show this help." | ||
@echo " build : build the container." | ||
@echo " run : run the container." | ||
|
||
|
||
build: | ||
$(CNTR) build -t epiforecasts -f .devcontainer/Dockerfile | ||
|
||
run: | ||
$(CNTR) run -it --rm \ | ||
--mount type=bind,source=$(shell pwd),target=/workspace \ | ||
$(SSH_AUTH_OPT) \ | ||
-w/workspace epiforecasts | ||
|
||
run_git: | ||
$(MAKE) run SSH_AUTH=$(HOME)/.ssh | ||
|
||
.PHONY: help build run |
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