Skip to content

Commit

Permalink
Merge pull request #867 from echowhisky/issue-861
Browse files Browse the repository at this point in the history
Changed `conda clean` flags to `--all -f -y`
  • Loading branch information
parente authored May 9, 2019
2 parents 2662627 + 167c686 commit 4d7dd95
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions all-spark-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN conda install --quiet --yes \
'r-ggplot2=3.1*' \
'r-sparklyr=0.9*' \
'r-rcurl=1.95*' && \
conda clean -tipsy && \
conda clean --all -f -y && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

Expand All @@ -43,7 +43,7 @@ RUN pip install --no-cache-dir \

# Spylon-kernel
RUN conda install --quiet --yes 'spylon-kernel=0.4*' && \
conda clean -tipsy && \
conda clean --all -f -y && \
python -m spylon_kernel install --sys-prefix && \
rm -rf /home/$NB_USER/.local && \
fix-permissions $CONDA_DIR && \
Expand Down
6 changes: 3 additions & 3 deletions base-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ RUN cd /tmp && \
$CONDA_DIR/bin/conda install --quiet --yes conda="${CONDA_VERSION%.*}.*" && \
$CONDA_DIR/bin/conda update --all --quiet --yes && \
conda list python | grep '^python ' | tr -s ' ' | cut -d '.' -f 1,2 | sed 's/$/.*/' >> $CONDA_DIR/conda-meta/pinned && \
conda clean -tipsy && \
conda clean --all -f -y && \
rm -rf /home/$NB_USER/.cache/yarn && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# Install Tini
RUN conda install --quiet --yes 'tini=0.18.0' && \
conda list tini | grep tini | tr -s ' ' | cut -d ' ' -f 1,2 >> $CONDA_DIR/conda-meta/pinned && \
conda clean -tipsy && \
conda clean --all -f -y && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

Expand All @@ -102,7 +102,7 @@ RUN conda install --quiet --yes \
'notebook=5.7.8' \
'jupyterhub=0.9.6' \
'jupyterlab=0.35.5' && \
conda clean -tipsy && \
conda clean --all -f -y && \
jupyter labextension install @jupyterlab/hub-extension@^0.12.0 && \
npm cache clean --force && \
jupyter notebook --generate-config && \
Expand Down
2 changes: 1 addition & 1 deletion base-notebook/Dockerfile.ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RUN cd /tmp && \
$CONDA_DIR/bin/conda install --quiet --yes conda=4.2.12 && \
$CONDA_DIR/bin/conda config --system --add channels conda-forge && \
$CONDA_DIR/bin/conda config --system --set auto_update_conda false && \
conda clean -tipsy
conda clean --all -f -y

# Install Jupyter notebook and Hub
RUN yes | pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions base-notebook/Dockerfile.ppc64le.patch
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@
+ $CONDA_DIR/bin/conda install --quiet --yes conda=4.2.12 && \
$CONDA_DIR/bin/conda config --system --add channels conda-forge && \
$CONDA_DIR/bin/conda config --system --set auto_update_conda false && \
conda clean -tipsy
conda clean --all -f -y

-# Install Jupyter Notebook and Hub
-RUN conda install --quiet --yes \
- 'notebook=5.2.*' \
- 'jupyterhub=0.7.*' \
- 'jupyterlab=0.18.*' \
- && conda clean -tipsy
- && conda clean --all -f -y
+# Install Jupyter notebook and Hub
+RUN yes | pip install --upgrade pip
+RUN yes | pip install --quiet --no-cache-dir \
Expand Down
2 changes: 1 addition & 1 deletion datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ RUN conda install --quiet --yes \
'r-sparklyr=0.9*' \
'r-htmlwidgets=1.2*' \
'r-hexbin=1.27*' && \
conda clean -tipsy && \
conda clean --all -f -y && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

Expand Down
2 changes: 1 addition & 1 deletion docs/using/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ FROM jupyter/scipy-notebook:latest
# and the kernda utility. Add any additional packages you want available for use
# in a Python 2 notebook to the first line here (e.g., pandas, matplotlib, etc.)
RUN conda create --quiet --yes -p $CONDA_DIR/envs/python2 python=2.7 ipython ipykernel kernda && \
conda clean -tipsy
conda clean --all -f -y
USER root
Expand Down
2 changes: 1 addition & 1 deletion examples/source-to-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The next steps are:
```
if [ -f /home/$NB_USER/environment.yml ]; then
conda env update --name root --file /home/$NB_USER/environment.yml
conda clean -tipsy
conda clean --all -f -y
else
if [ -f /home/$NB_USER/requirements.txt ]; then
pip --no-cache-dir install -r /home/$NB_USER/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion examples/source-to-image/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rm -rf /tmp/src

if [ -f /home/$NB_USER/environment.yml ]; then
conda env update --name root --file /home/$NB_USER/environment.yml
conda clean -tipsy
conda clean --all -f -y
else
if [ -f /home/$NB_USER/requirements.txt ]; then
pip --no-cache-dir install -r /home/$NB_USER/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion pyspark-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ USER $NB_UID

# Install pyarrow
RUN conda install --quiet -y 'pyarrow' && \
conda clean -tipsy && \
conda clean --all -f -y && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
2 changes: 1 addition & 1 deletion r-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ RUN conda install --quiet --yes \
'r-sparklyr=0.9*' \
'r-htmlwidgets=1.2*' \
'r-hexbin=1.27*' && \
conda clean -tipsy && \
conda clean --all -f -y && \
fix-permissions $CONDA_DIR
2 changes: 1 addition & 1 deletion scipy-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN conda install --quiet --yes \
'protobuf=3.7.*' \
'xlrd' && \
conda remove --quiet --yes --force qt pyqt && \
conda clean -tipsy && \
conda clean --all -f -y && \
# Activate ipywidgets extension in the environment that runs the notebook server
jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
# Also activate ipywidgets extension for JupyterLab
Expand Down
2 changes: 1 addition & 1 deletion tensorflow-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
RUN conda install --quiet --yes \
'tensorflow=1.13*' \
'keras=2.2*' && \
conda clean -tipsy && \
conda clean --all -f -y && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

0 comments on commit 4d7dd95

Please sign in to comment.