2019-02-13 07:49:37 +00:00
|
|
|
IMAGE_NAME="python-java"
|
|
|
|
|
|
|
|
all: build run
|
|
|
|
|
|
|
|
build:
|
|
|
|
docker build . -t $(IMAGE_NAME)
|
|
|
|
|
2019-02-28 08:40:25 +00:00
|
|
|
|
2019-02-13 07:49:37 +00:00
|
|
|
run:
|
|
|
|
docker run \
|
2019-02-28 08:40:25 +00:00
|
|
|
-it \
|
2019-02-24 15:13:46 +00:00
|
|
|
-v /home/${USER}:/home/${USER} \
|
2019-02-28 08:40:25 +00:00
|
|
|
--user $(shell id -u):$(shell id -g) \
|
2019-02-24 15:13:46 +00:00
|
|
|
-v /etc/passwd:/etc/passwd \
|
|
|
|
-v /etc/group:/etc/group \
|
2019-02-28 08:40:25 +00:00
|
|
|
-v $(shell pwd)/../../:/cjvt-srl-tagging \
|
2019-02-24 15:13:46 +00:00
|
|
|
-w /cjvt-srl-tagging \
|
2019-02-28 08:40:25 +00:00
|
|
|
-v /home/kristjan/kres_mount:/kres_mount:ro \
|
|
|
|
python-java \
|
|
|
|
/bin/bash
|