Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
dockers -> docker


Former-commit-id: ba64807
  • Loading branch information
hjwilli committed May 5, 2020
1 parent 66f711d commit 28645dc
Show file tree
Hide file tree
Showing 32 changed files with 45 additions and 133 deletions.
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Allow files and directories
!**/package.json
!**/package-lock.json
!/dockers/dbmongo/files/**
!/dockers/lab/files/**
!/dockers/machine/files/**
!/docker/dbmongo/files/**
!/docker/lab/files/**
!/docker/machine/files/**

# Ignore unnecessary files inside allowed directories
# This should go after the allowed directories
Expand Down
2 changes: 1 addition & 1 deletion config/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Environment Configuration

# Algorithm Configuration
Machine learning algorithm parameters and UI settings are defined in `/dockers/dbmongo/files/projects.json`
Machine learning algorithm parameters and UI settings are defined in `/docker/dbmongo/files/projects.json`

## Schema
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"from json import JSONDecoder \n",
"from functools import partial \n",
" \n",
"alldata= json.load(open('../../../dockers/dbmongo/files/projects.json'),encoding=\"utf-8\")\n",
"alldata= json.load(open('../../../docker/dbmongo/files/projects.json'),encoding=\"utf-8\")\n",
"\n",
"# path = 'projects_newlines.json' \n",
"# data,alldata=[],[] \n",
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-int-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
lab:
build:
context: .
dockerfile: dockers/lab/Dockerfile
dockerfile: docker/lab/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -43,7 +43,7 @@ services:
machine:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -62,7 +62,7 @@ services:
dbmongo:
build:
context: .
dockerfile: dockers/dbmongo/Dockerfile
dockerfile: docker/dbmongo/Dockerfile
tty: true
stdin_open: true
ports:
Expand Down
16 changes: 8 additions & 8 deletions docker-compose-multi-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
lab:
build:
context: .
dockerfile: dockers/lab/Dockerfile
dockerfile: docker/lab/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -23,7 +23,7 @@ services:
machine_1:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -42,7 +42,7 @@ services:
machine_2:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -61,7 +61,7 @@ services:
machine_3:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -80,7 +80,7 @@ services:
machine_4:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -98,7 +98,7 @@ services:
machine_5:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -117,7 +117,7 @@ services:
machine_6:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -136,7 +136,7 @@ services:
dbmongo:
build:
context: .
dockerfile: dockers/dbmongo/Dockerfile
dockerfile: docker/dbmongo/Dockerfile
tty: true
stdin_open: true
ports:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
lab:
build:
context: .
dockerfile: dockers/lab/Dockerfile_production
dockerfile: docker/lab/Dockerfile_production
image: "pennai_lab:${TAG}"
tty: true
stdin_open: true
Expand All @@ -24,7 +24,7 @@ services:
machine:
build:
context: .
dockerfile: dockers/machine/Dockerfile_production
dockerfile: docker/machine/Dockerfile_production
image: "pennai_machine:${TAG}"
tty: true
stdin_open: true
Expand All @@ -43,7 +43,7 @@ services:
dbmongo:
build:
context: .
dockerfile: dockers/dbmongo/Dockerfile
dockerfile: docker/dbmongo/Dockerfile
image: "pennai_dbmongo:${TAG}"
tty: true
stdin_open: true
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
lab:
build:
context: .
dockerfile: dockers/lab/Dockerfile
dockerfile: docker/lab/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -22,7 +22,7 @@ services:
machine:
build:
context: .
dockerfile: dockers/machine/Dockerfile
dockerfile: docker/machine/Dockerfile
tty: true
stdin_open: true
volumes:
Expand All @@ -40,7 +40,7 @@ services:
dbmongo:
build:
context: .
dockerfile: dockers/dbmongo/Dockerfile
dockerfile: docker/dbmongo/Dockerfile
tty: true
stdin_open: true
ports:
Expand Down
2 changes: 1 addition & 1 deletion dockers/dbmongo/Dockerfile → docker/dbmongo/Dockerfile
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:xenial
WORKDIR /opt/

ARG docker_filepath=dockers/dbmongo/files
ARG docker_filepath=docker/dbmongo/files

#add repo for mongodb
RUN echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dockers/lab/Dockerfile → docker/lab/Dockerfile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN wget --quiet https://nodejs.org/dist/v11.14.0/node-v11.14.0-linux-x64.tar.xz
rm ~/node.tar.xz
ENV PATH /opt/node-v11.14.0-linux-x64/bin:$PATH

ARG docker_filepath=dockers/lab/files
ARG docker_filepath=docker/lab/files

RUN apt-get update --fix-missing && apt-get install -y \
vim openssh-client openssh-server telnet apache2 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN wget --quiet https://nodejs.org/dist/v11.14.0/node-v11.14.0-linux-x64.tar.xz
rm ~/node.tar.xz
ENV PATH /opt/node-v11.14.0-linux-x64/bin:$PATH

ARG docker_filepath=dockers/lab/files
ARG docker_filepath=docker/lab/files

RUN apt-get update --fix-missing && apt-get install -y \
vim openssh-client openssh-server telnet apache2 \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
scikit-learn==0.22.1
tqdm==4.32.2
pymongo==3.8.0
pandas==1.0.3
cython==0.29.2
xgboost==0.82
simplejson==3.16.0
requests==2.22.0
scikit-learn==0.22.1
tqdm==4.32.2
pymongo==3.8.0
pandas==1.0.3
cython==0.29.2
xgboost==0.82
simplejson==3.16.0
requests==2.22.0
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dockers/machine/Dockerfile → docker/machine/Dockerfile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN wget --quiet https://nodejs.org/dist/v11.14.0/node-v11.14.0-linux-x64.tar.xz
rm ~/node.tar.xz
ENV PATH /opt/node-v11.14.0-linux-x64/bin:$PATH

ARG docker_filepath=dockers/machine/files
ARG docker_filepath=docker/machine/files

RUN apt-get update --fix-missing && apt-get install -y \
vim openssh-client openssh-server graphviz \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN wget --quiet https://nodejs.org/dist/v11.14.0/node-v11.14.0-linux-x64.tar.xz
rm ~/node.tar.xz
ENV PATH /opt/node-v11.14.0-linux-x64/bin:$PATH

ARG docker_filepath=dockers/machine/files
ARG docker_filepath=docker/machine/files

RUN apt-get update --fix-missing && apt-get install -y \
vim openssh-client openssh-server graphviz \
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
scikit-learn==0.22.1
tqdm==4.32.2
pymongo==3.8.0
pandas==1.0.3
matplotlib==3.1.0
mlxtend==0.16.0
pydot==1.4.1
requests==2.22.0
xgboost==0.90
scikit-learn==0.22.1
tqdm==4.32.2
pymongo==3.8.0
pandas==1.0.3
matplotlib==3.1.0
mlxtend==0.16.0
pydot==1.4.1
requests==2.22.0
xgboost==0.90
File renamed without changes.
34 changes: 0 additions & 34 deletions dockers/lab/files/certs/cert.pem

This file was deleted.

51 changes: 0 additions & 51 deletions dockers/lab/files/certs/key.pem

This file was deleted.

3 changes: 0 additions & 3 deletions dockers/lab/files/htpasswd

This file was deleted.

2 changes: 1 addition & 1 deletion machine/test/learn_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def make_train_test_split(input_data, target_name, random_state):
test_gbc = GradientBoostingClassifier()
test_reg = DecisionTreeRegressor()
# projects information
projects_json = "dockers/dbmongo/files/projects.json"
projects_json = "docker/dbmongo/files/projects.json"
# json_file = open(projects_json, encoding="utf8")
# projects_json_data = [obj for obj in decode_stacked(json_file.read())]

Expand Down

0 comments on commit 28645dc

Please sign in to comment.