make fill_database

This commit is contained in:
2019-03-17 17:25:59 +01:00
parent d8fd3ad30b
commit 2d4a6a152a
13 changed files with 72 additions and 373 deletions

View File

@@ -0,0 +1,21 @@
FROM ubuntu:16.04
RUN apt-get update --fix-missing
RUN apt-get install -y \
vim \
python3 \
python3-pip \
sshfs
RUN pip3 install \
lxml \
pandas \
sklearn \
argparse \
pathlib \
pymongo
RUN apt-get install -y \
curl
ENV PYTHONIOENCODING UTF-8

View File

@@ -0,0 +1,19 @@
IMAGE_NAME="cjvt-python-env"
all: build run
build:
docker build . -t $(IMAGE_NAME)
run:
docker run \
-it \
-v /home/${USER}:/home/${USER} \
--user $(shell id -u):$(shell id -g) \
-v /etc/passwd:/etc/passwd \
-v /etc/group:/etc/group \
-v $(MAKE_ROOT):/project \
-w /project \
--net host \
$(IMAGE_NAME) \
/bin/bash