Hannes Kuchelmeister
commited on
Commit
·
1486604
1
Parent(s):
d2e7940
add docker setup for training with tensorboard status
Browse files- models/.dockerignore +4 -0
- models/Dockerfile +11 -0
- models/docker-compose.yml +16 -0
models/.dockerignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.env
|
2 |
+
data
|
3 |
+
logs
|
4 |
+
configs
|
models/Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.7
|
2 |
+
|
3 |
+
WORKDIR /usr/src/app
|
4 |
+
|
5 |
+
RUN apt-get update
|
6 |
+
RUN apt-get install libgl1 -y
|
7 |
+
|
8 |
+
COPY requirements.txt ./
|
9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
+
|
11 |
+
COPY . .
|
models/docker-compose.yml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: "3"
|
2 |
+
services:
|
3 |
+
model:
|
4 |
+
build: .
|
5 |
+
volumes:
|
6 |
+
- ./logs/:/usr/src/app/logs:z
|
7 |
+
- ./data/:/usr/src/app/data:z
|
8 |
+
- ./configs:/usr/src/app/configs:z
|
9 |
+
command: sh -c "python train.py logger=tensorboard"
|
10 |
+
tensorboard:
|
11 |
+
image: tensorflow/tensorflow
|
12 |
+
volumes:
|
13 |
+
- ./logs:/logs:z
|
14 |
+
command: sh -c "tensorboard --logdir /logs --bind_all"
|
15 |
+
ports:
|
16 |
+
- 6006:6006
|