Skip to content

Commit

Permalink
Merge pull request #313 from rapidsai/branch-0.19
Browse files Browse the repository at this point in the history
[HOTFIX] Clean cache to remove vulnerable npm packages
  • Loading branch information
ajschmidt8 committed Apr 23, 2021
2 parents 7619793 + a3911db commit d5a6466
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 43 deletions.
3 changes: 1 addition & 2 deletions generated-dockerfiles/rapidsai-core_centos7-base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN yum -y upgrade \
&& yum clean all
Expand Down
7 changes: 4 additions & 3 deletions generated-dockerfiles/rapidsai-core_centos7-devel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN yum -y upgrade \
&& yum clean all
Expand All @@ -70,7 +69,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN yum -y upgrade \
&& yum clean all
Expand All @@ -57,7 +56,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
3 changes: 1 addition & 2 deletions generated-dockerfiles/rapidsai-core_centos8-base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN yum -y upgrade \
&& yum clean all
Expand Down
7 changes: 4 additions & 3 deletions generated-dockerfiles/rapidsai-core_centos8-devel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN yum -y upgrade \
&& yum clean all
Expand All @@ -70,7 +69,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN yum -y upgrade \
&& yum clean all
Expand All @@ -57,7 +56,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand All @@ -73,7 +72,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand All @@ -59,7 +58,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand All @@ -73,7 +72,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand All @@ -59,7 +58,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand All @@ -73,7 +72,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ RUN gpuci_conda_retry install -y -n rapids \


RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"

RUN apt-get update \
&& apt-get -y upgrade \
Expand All @@ -59,7 +58,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
ENV DASK_LABEXTENSION__FACTORY__CLASS="LocalCUDACluster"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ RUN gpuci_conda_retry install -y -n rapids \
RUN gpuci_conda_retry install -y -n rapids jupyterlab-nvdashboard

RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager dask-labextension jupyterlab-nvdashboard \
&& jupyter lab clean \
&& jlpm cache clean

{# Configure Dask Jupyter Lab Extension to use dask_cuda by default #}
ENV DASK_LABEXTENSION__FACTORY__MODULE="dask_cuda"
Expand Down
3 changes: 1 addition & 2 deletions templates/rapidsai-core/partials/patch.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

{# Patch for CVE-2020-8116 https://github.com/advisories/GHSA-ff7x-qrg7-qggm #}
RUN source activate rapids \
&& npm i -g npm@">=7" \
&& rm -rf /tmp/yarn* # Removes cached yarn directories from tmp that have outdated ssri/y18n packages
&& npm i -g npm@">=7.0 <7.11"
{% if "centos" in os %}
RUN yum -y upgrade \
Expand Down

0 comments on commit d5a6466

Please sign in to comment.