-
Notifications
You must be signed in to change notification settings - Fork 208
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 #234 from soodrohit/scratch/makefile
Added makefile
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 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 |
---|---|---|
|
@@ -9,3 +9,4 @@ stock*.pkl | |
results*.pkl | ||
*.spec | ||
.DS_Store | ||
.history/ |
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,30 @@ | ||
build: | ||
docker build -t screeni-py . | ||
|
||
run: | ||
docker run -d --name screeni-py -p 8501:8501 screeni-py | ||
|
||
interactive-run: | ||
docker run -p 8501:8501 screeni-py | ||
|
||
shell: | ||
docker run -it --entrypoint /bin/bash screeni-py | ||
|
||
stop-container: | ||
@if [ "$(shell docker ps -q -f name=screeni-py)" ]; then \ | ||
docker stop screeni-py; \ | ||
else \ | ||
echo "Container screeni-py is not running."; \ | ||
fi | ||
|
||
remove-container: | ||
@if [ "$(shell docker ps -a -q -f name=screeni-py)" ]; then \ | ||
docker rm screeni-py; \ | ||
else \ | ||
echo "Container screeni-py does not exist."; \ | ||
fi | ||
|
||
system-clean: | ||
docker system prune --force | ||
|
||
rebuild: stop-container remove-container build system-clean |