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

@@ -8,10 +8,9 @@ STACKNAME = dbstack
.PHONY: start_db FORCE
all: build_mongo run_stack create_users
all: build_run create_users
info:
echo "[*] RUN THIS A FEW TIMES (THE STACK NEEDS TIME TO CLEAN UP AND TO SPIN UP THE NODES)"
build_run: build_mongo run_stack
create.js: FORCE

View File

@@ -5,6 +5,8 @@ services:
my-mongo:
image: my-mongo
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_ADM_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_ADM_PASS}

View File

@@ -12,6 +12,10 @@ RUN pip3 install \
pandas \
sklearn \
argparse \
pathlib
pathlib \
pymongo
RUN apt-get install -y \
curl
ENV PYTHONIOENCODING UTF-8

View File

@@ -1,4 +1,4 @@
IMAGE_NAME="cjvt-dev-env"
IMAGE_NAME="cjvt-python-env"
all: build run
@@ -14,5 +14,6 @@ run:
-v /etc/group:/etc/group \
-v $(MAKE_ROOT):/project \
-w /project \
--net host \
$(IMAGE_NAME) \
/bin/bash