Skip to content

Commit 2aabf22

Browse files
author
lucasdavid
committed
Update settings
1 parent 0c6479c commit 2aabf22

22 files changed

+5149
-4655
lines changed

.dockerignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ dmypy.json
128128
# Pyre type checker
129129
.pyre/
130130

131-
data/
132-
logs/
131+
data**
132+
logs**
133133

134+
.idea/
135+
.vscode/

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ dmypy.json
130130
# Pyre type checker
131131
.pyre/
132132

133-
data/
133+
data
134134
logs/
135135
secrets/
136136
datasets
137+
138+
.idea/
139+
.vscode/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [![Tensorflow Logo](data/tf.png)](https://tensorflow.org) Algorithms in Tensorflow
1+
# [![Tensorflow Logo](assets/tf.png)](https://tensorflow.org) Algorithms in Tensorflow
22

33
Experiments with tensorflow 2.0, gpu support, persistent logging and stable docker env.
44

actions/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

3-
apt-get -qq update
4-
apt-get -qq install -y python-pydot python-pydot-ng graphviz
3+
apt-get update
4+
apt-get install -y python-pydot python-pydot-ng graphviz libgl1-mesa-glx

actions/run.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#!/bin/bash
1+
#!/bin/bash -ex
22

33
run()
44
{
55
CMD=${1:-up}
66

77
if [[ "$CMD" == "up" ]]; then
8-
docker-compose --env-file config/.env -f config/docker-compose.yml up
8+
docker-compose -f config/docker-compose.yml up
99
elif [[ "$CMD" == "tensorboard" ]]; then
10-
docker-compose --env-file config/.env -f config/docker-compose.yml \
10+
docker-compose -f config/docker-compose.yml \
1111
exec experiments \
1212
tensorboard --logdir "${2:-/tf/logs/}" --bind_all
1313
else
14-
docker-compose --env-file config/.env -f config/docker-compose.yml ${@:1}
14+
docker-compose -f config/docker-compose.yml ${@:1}
1515
fi
1616
}
1717

File renamed without changes.

config/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ RUN pip install -qr /tmp/requirements.txt
1212
ADD config/notebook.json /root/.jupyter/nbconfig/notebook.json
1313

1414
ARG jupyter_theme
15-
RUN jt -t $jupyter_theme
15+
RUN jt -t ${jupyter_theme}

config/docker-compose.yml

-24
This file was deleted.
+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
IMAGE_BASE=tensorflow/tensorflow:latest-gpu-jupyter
2-
JUPYTER_THEME=grade3 -T -f roboto -fs 10
1+
RUNTIME=nvidia
2+
3+
IMAGE_BASE=tensorflow/tensorflow:latest-jupyter
34
IMAGE=ldavid/experiments
45
NVIDIA_VISIBLE_DEVICES=all
56
NVIDIA_DRIVER_CAPABILITIES=all
67
TF_FORCE_GPU_ALLOW_GROWTH=true
8+
9+
JUPYTER_THEME=grade3 -T -f roboto -fs 10

data/.keep

Whitespace-only changes.

docker-compose.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: '3'
2+
services:
3+
experiments:
4+
runtime: "${RUNTIME}"
5+
build:
6+
context: .
7+
dockerfile: config/Dockerfile
8+
args:
9+
base_image: "${IMAGE_BASE}"
10+
jupyter_theme: "${JUPYTER_THEME}"
11+
image: "${IMAGE}"
12+
mem_limit: 12g
13+
ports:
14+
- 8888:8888
15+
- 6006:6006
16+
volumes:
17+
- ./notebooks:/tf
18+
- ./logs:/tf/logs
19+
- ./data:/data
20+
- ./data/cached/keras:/root/.keras
21+
- ./data/cached/tfds:/root/tensorflow_datasets
22+
- ./secrets/kaggle:/root/.kaggle

0 commit comments

Comments
 (0)