cjvt-valency/dockerfiles/python-env/Makefile

25 lines
429 B
Makefile
Raw Normal View History

2019-03-17 16:25:59 +00:00
IMAGE_NAME="cjvt-python-env"
2019-04-21 17:18:40 +00:00
CNNAME="python-env"
2019-03-10 21:11:18 +00:00
all: build run
build:
docker build . -t $(IMAGE_NAME)
run:
2019-04-21 17:18:40 +00:00
- docker kill $(CNNAME)
- docker rm $(CNNAME)
2019-03-10 21:11:18 +00:00
docker run \
2019-04-21 17:18:40 +00:00
-it \
2019-03-10 21:11:18 +00:00
-v $(MAKE_ROOT):/project \
-w /project \
2019-03-17 16:25:59 +00:00
--net host \
2019-04-21 17:18:40 +00:00
--name $(CNNAME) \
2019-03-10 21:11:18 +00:00
$(IMAGE_NAME) \
2019-04-21 17:18:40 +00:00
/bin/bash
2019-04-22 18:32:06 +00:00
# --user $(shell id -u):$(shell id -g) \
# -v /home/${USER}:/home/${USER} \
# -v /etc/passwd:/etc/passwd \
# -v /etc/group:/etc/group \