Dockerfile + makefile, #6

This commit is contained in:
Mario Fink
2021-03-02 11:12:22 +01:00
parent 31471106bc
commit c10fd1c488
2 changed files with 33 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
# --------------------------------------------------------------------------- #
SHELL := /bin/bash
# declare name of executable
EXE = tdmtermite
@@ -23,8 +25,9 @@ GHSH := $(shell git rev-parse HEAD | head -c8)
# define install location
INST := /usr/local/bin
# platform
# platform and current working directory
OST := $(shell uname)
CWD := $(shell pwd)
# --------------------------------------------------------------------------- #
# CLI tool
@@ -89,6 +92,16 @@ clean-cython :
rm -vf tdm_termite.cpython-*.so python/tdm_termite.cpython-*.so
rm -rf build
# --------------------------------------------------------------------------- #
# docker
docker-build:
docker build . --tag tdmtermite:latest
docker-run:
mkdir -pv data/{input,output}
docker run -it --rm --volume $(CWD)/data:/home/data tdmtermite:latest /bin/bash
# --------------------------------------------------------------------------- #
clean : clean-cpp clean-cython