Skip to content

Commit 01c5fd0

Browse files
committed
Small updates and changes
1 parent 32e8f12 commit 01c5fd0

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

src/base.Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ RUN cd /tmp/ && \
115115
$CONDA_DIR/bin/conda config --system --prepend channels conda-forge && \
116116
$CONDA_DIR/bin/conda config --system --set auto_update_conda false && \
117117
$CONDA_DIR/bin/conda config --system --set show_channel_urls true && \
118-
#$CONDA_DIR/bin/conda install --quiet --yes conda="${MINICONDA_VERSION%.*}.*" && \
119118
$CONDA_DIR/bin/conda update --all --quiet --yes && \
120119
echo "Installing packages" && \
121120
conda install -n root conda-build=3.18.* && \
@@ -139,8 +138,9 @@ RUN cd /tmp/ && \
139138
rm $HOME/requirements.txt && \
140139
cd /tmp/ && \
141140
git clone --depth 1 https://github.com/huggingface/transformers && \
142-
cd /tmp/transformers && pip install . && \
143-
cd $HOME && rm -rf /tmp/* && \
141+
cd /tmp/transformers && \
142+
pip install . && \
143+
cd $HOME && \
144144
pip uninstall opencv-python opencv-contrib-python -y && \
145145
pip install --no-cache-dir opencv-contrib-python && \
146146
pip uninstall pillow -y && \
@@ -158,7 +158,6 @@ RUN cd /tmp/ && \
158158
jupyter serverextension enable --py --sys-prefix jupyterlab_git && \
159159
jupyter labextension install jupyterlab_bokeh && \
160160
echo "Installing jupyterlab-server-proxy" && \
161-
#jupyter labextension install jupyterlab-server-proxy && \
162161
cd /tmp/ && \
163162
git clone --depth 1 https://github.com/jupyterhub/jupyter-server-proxy && \
164163
cd jupyter-server-proxy/jupyterlab-server-proxy && \

src/full.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN conda install -c pytorch --quiet --yes \
1818
'pytorch' \
1919
'torchvision' \
2020
'cudatoolkit=10.0' && \
21-
pip install --no-cache-dir torchtext pytorch-transformers && \
21+
pip install --no-cache-dir torchtext && \
2222
conda install -c pytorch -c fastai --quiet --yes \
2323
'python=3.6' \
2424
'numpy=1.16.1' \

src/jupyter_notebook_config.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
import errno
77
import stat
8-
98
from jupyter_core.paths import jupyter_data_dir
109
from notebook.auth import passwd
1110

@@ -14,10 +13,9 @@
1413
c.NotebookApp.port = 8888
1514
c.NotebookApp.open_browser = False
1615
c.NotebookApp.token = ""
17-
c.NotebookApp.allow_origin="*"
16+
c.NotebookApp.allow_origin = "*"
1817

1918
nb_password = os.getenv("NB_PASSWD", "")
20-
2119
c.NotebookApp.password = passwd(nb_password)
2220

2321
c.FileContentsManager.delete_to_trash = False

src/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ hyperopt
3939
hyperas
4040
imgaug
4141
Augmentor
42-
transformers
42+
4343

src/tf2.Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ RUN cd $HOME/ && \
4444
jupyter tensorboard enable --sys-prefix && \
4545
jupyter labextension install jupyterlab_tensorboard && \
4646
jupyter lab clean && \
47-
cd /tmp/ && git clone --depth 1 https://github.com/keras-team/keras-tuner && \
47+
cd /tmp/ && \
48+
git clone --depth 1 https://github.com/keras-team/keras-tuner && \
4849
cd keras-tuner && pip install . && cd $HOME \
4950
conda clean -tipsy && \
5051
conda build purge-all && \

0 commit comments

Comments
 (0)