Skip to content

Commit 8dbeaa5

Browse files
authored
Remove --quiet flag when not needed (#1887)
1 parent 60a7907 commit 8dbeaa5

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

all-spark-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN apt-get update --yes && \
2727
USER ${NB_UID}
2828

2929
# R packages including IRKernel which gets installed globally.
30-
RUN mamba install --quiet --yes \
30+
RUN mamba install --yes \
3131
'r-base' \
3232
'r-ggplot2' \
3333
'r-irkernel' \

base-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ USER ${NB_UID}
3535
# Do all this in a single RUN command to avoid duplicating all of the
3636
# files across image layers when the permissions change
3737
WORKDIR /tmp
38-
RUN mamba install --quiet --yes \
38+
RUN mamba install --yes \
3939
'notebook' \
4040
'jupyterhub' \
4141
'jupyterlab' && \

datascience-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ USER ${NB_UID}
6161

6262
# R packages including IRKernel which gets installed globally.
6363
# r-e1071: dependency of the caret R package
64-
RUN mamba install --quiet --yes \
64+
RUN mamba install --yes \
6565
'r-base' \
6666
'r-caret' \
6767
'r-crayon' \

docs/using/common.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,16 @@ You can use either `mamba`, `pip` or `conda` (`mamba` is recommended) to install
245245
```bash
246246
# install a package into the default (python 3.x) environment and cleanup it after
247247
# the installation
248-
mamba install --quiet --yes some-package && \
248+
mamba install --yes some-package && \
249249
mamba clean --all -f -y && \
250250
fix-permissions "${CONDA_DIR}" && \
251251
fix-permissions "/home/${NB_USER}"
252252

253-
pip install --quiet --no-cache-dir some-package && \
253+
pip install --no-cache-dir some-package && \
254254
fix-permissions "${CONDA_DIR}" && \
255255
fix-permissions "/home/${NB_USER}"
256256

257-
conda install --quiet --yes some-package && \
257+
conda install --yes some-package && \
258258
conda clean --all -f -y && \
259259
fix-permissions "${CONDA_DIR}" && \
260260
fix-permissions "/home/${NB_USER}"
@@ -274,7 +274,7 @@ mamba install --channel defaults humanize
274274
conda config --system --prepend channels defaults
275275

276276
# install a package
277-
mamba install --quiet --yes humanize && \
277+
mamba install --yes humanize && \
278278
mamba clean --all -f -y && \
279279
fix-permissions "${CONDA_DIR}" && \
280280
fix-permissions "/home/${NB_USER}"

docs/using/recipes.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Create a new Dockerfile like the one shown below.
3131
# Start from a core stack version
3232
FROM jupyter/datascience-notebook:2023-02-28
3333
# Install in the default python3 environment
34-
RUN pip install --quiet --no-cache-dir 'flake8==3.9.2' && \
34+
RUN pip install --no-cache-dir 'flake8==3.9.2' && \
3535
fix-permissions "${CONDA_DIR}" && \
3636
fix-permissions "/home/${NB_USER}"
3737
```
@@ -51,7 +51,7 @@ Next, create a new Dockerfile like the one shown below.
5151
FROM jupyter/datascience-notebook:2023-02-28
5252
# Install from the requirements.txt file
5353
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
54-
RUN pip install --quiet --no-cache-dir --requirement /tmp/requirements.txt && \
54+
RUN pip install --no-cache-dir --requirement /tmp/requirements.txt && \
5555
fix-permissions "${CONDA_DIR}" && \
5656
fix-permissions "/home/${NB_USER}"
5757
```
@@ -85,7 +85,7 @@ ARG conda_env=python37
8585
ARG py_ver=3.7
8686

8787
# you can add additional libraries you want mamba to install by listing them below the first line and ending with "&& \"
88-
RUN mamba create --quiet --yes -p "${CONDA_DIR}/envs/${conda_env}" python=${py_ver} ipython ipykernel && \
88+
RUN mamba create --yes -p "${CONDA_DIR}/envs/${conda_env}" python=${py_ver} ipython ipykernel && \
8989
mamba clean --all -f -y
9090

9191
# alternatively, you can comment out the lines above and uncomment those below
@@ -102,7 +102,7 @@ RUN "${CONDA_DIR}/envs/${conda_env}/bin/python" -m ipykernel install --user --na
102102
fix-permissions "/home/${NB_USER}"
103103

104104
# any additional pip installs can be added by uncommenting the following line
105-
# RUN "${CONDA_DIR}/envs/${conda_env}/bin/pip" install --quiet --no-cache-dir
105+
# RUN "${CONDA_DIR}/envs/${conda_env}/bin/pip" install --no-cache-dir
106106

107107
# if you want this environment to be the default one, uncomment the following line:
108108
# RUN echo "conda activate ${conda_env}" >> "${HOME}/.bashrc"
@@ -118,7 +118,7 @@ Create the Dockerfile as:
118118
FROM jupyter/scipy-notebook:latest
119119

120120
# Install the Dask dashboard
121-
RUN pip install --quiet --no-cache-dir dask-labextension && \
121+
RUN pip install --no-cache-dir dask-labextension && \
122122
fix-permissions "${CONDA_DIR}" && \
123123
fix-permissions "/home/${NB_USER}"
124124

@@ -160,7 +160,7 @@ notebooks, with no conversion, adding javascript Reveal.js:
160160

161161
```bash
162162
# Add Live slideshows with RISE
163-
RUN mamba install --quiet --yes -c damianavila82 rise && \
163+
RUN mamba install --yes -c damianavila82 rise && \
164164
mamba clean --all -f -y && \
165165
fix-permissions "${CONDA_DIR}" && \
166166
fix-permissions "/home/${NB_USER}"
@@ -175,12 +175,12 @@ You need to install conda-forge's gcc for Python xgboost to work correctly.
175175
Otherwise, you'll get an exception about libgomp.so.1 missing GOMP_4.0.
176176

177177
```bash
178-
mamba install --quiet --yes gcc && \
178+
mamba install --yes gcc && \
179179
mamba clean --all -f -y && \
180180
fix-permissions "${CONDA_DIR}" && \
181181
fix-permissions "/home/${NB_USER}"
182182

183-
pip install --quiet --no-cache-dir xgboost && \
183+
pip install --no-cache-dir xgboost && \
184184
fix-permissions "${CONDA_DIR}" && \
185185
fix-permissions "/home/${NB_USER}"
186186

@@ -284,7 +284,7 @@ version in the Hub itself.
284284

285285
```dockerfile
286286
FROM jupyter/base-notebook:2023-02-28
287-
RUN pip install --quiet --no-cache-dir jupyterhub==1.4.1 && \
287+
RUN pip install --no-cache-dir jupyterhub==1.4.1 && \
288288
fix-permissions "${CONDA_DIR}" && \
289289
fix-permissions "/home/${NB_USER}"
290290
```
@@ -438,9 +438,9 @@ USER ${NB_UID}
438438
# - Dashboards
439439
# - PyDoop
440440
# - PyHive
441-
RUN pip install --quiet --no-cache-dir jupyter_dashboards faker && \
441+
RUN pip install --no-cache-dir jupyter_dashboards faker && \
442442
jupyter dashboards quick-setup --sys-prefix && \
443-
pip2 install --quiet --no-cache-dir pyhive pydoop thrift sasl thrift_sasl faker && \
443+
pip2 install --no-cache-dir pyhive pydoop thrift sasl thrift_sasl faker && \
444444
fix-permissions "${CONDA_DIR}" && \
445445
fix-permissions "/home/${NB_USER}"
446446

@@ -496,7 +496,7 @@ FROM jupyter/minimal-notebook:latest
496496

497497
USER ${NB_UID}
498498

499-
RUN pip install --quiet --no-cache-dir jupyter_contrib_nbextensions && \
499+
RUN pip install --no-cache-dir jupyter_contrib_nbextensions && \
500500
jupyter contrib nbextension install --user && \
501501
# can modify or enable additional extensions here
502502
jupyter nbextension enable spellchecker/main --user && \
@@ -515,7 +515,7 @@ By adding the properties to `spark-defaults.conf`, the user no longer needs to e
515515
FROM jupyter/pyspark-notebook:latest
516516

517517
ARG DELTA_CORE_VERSION="1.2.1"
518-
RUN pip install --quiet --no-cache-dir delta-spark==${DELTA_CORE_VERSION} && \
518+
RUN pip install --no-cache-dir delta-spark==${DELTA_CORE_VERSION} && \
519519
fix-permissions "${HOME}" && \
520520
fix-permissions "${CONDA_DIR}"
521521

@@ -608,7 +608,7 @@ RUN apt-get update --yes && \
608608
# Switch back to jovyan to avoid accidental container runs as root
609609
USER ${NB_UID}
610610

611-
RUN pip install --quiet --no-cache-dir pyodbc
611+
RUN pip install --no-cache-dir pyodbc
612612
```
613613

614614
You can now use `pyodbc` and `sqlalchemy` to interact with the database.

examples/docker-compose/notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ USER ${NB_UID}
1313

1414
# Switch back to jovyan to avoid accidental container runs as root
1515
# Add permanent mamba/pip/conda installs, data files, other user libs here
16-
# e.g., RUN pip install --quiet --no-cache-dir flake8
16+
# e.g., RUN pip install --no-cache-dir flake8

examples/make-deploy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ USER ${NB_UID}
1313

1414
# Switch back to jovyan to avoid accidental container runs as root
1515
# Add permanent mamba/pip/conda installs, data files, other user libs here
16-
# e.g., RUN pip install --quiet --no-cache-dir flake8
16+
# e.g., RUN pip install --no-cache-dir flake8

pyspark-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN fix-permissions "/etc/ipython/"
6565
USER ${NB_UID}
6666

6767
# Install pyarrow
68-
RUN mamba install --quiet --yes \
68+
RUN mamba install --yes \
6969
'pyarrow' && \
7070
mamba clean --all -f -y && \
7171
fix-permissions "${CONDA_DIR}" && \

r-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ USER ${NB_UID}
2727

2828
# R packages including IRKernel which gets installed globally.
2929
# r-e1071: dependency of the caret R package
30-
RUN mamba install --quiet --yes \
30+
RUN mamba install --yes \
3131
'r-base' \
3232
'r-caret' \
3333
'r-crayon' \

scipy-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN apt-get update --yes && \
2626
USER ${NB_UID}
2727

2828
# Install Python 3 packages
29-
RUN mamba install --quiet --yes \
29+
RUN mamba install --yes \
3030
'altair' \
3131
'beautifulsoup4' \
3232
'bokeh' \

tensorflow-notebook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LABEL maintainer="Jupyter Project <[email protected]>"
1111
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1212

1313
# Install Tensorflow
14-
RUN mamba install --quiet --yes \
14+
RUN mamba install --yes \
1515
'tensorflow' && \
1616
mamba clean --all -f -y && \
1717
fix-permissions "${CONDA_DIR}" && \

0 commit comments

Comments
 (0)