From a488ea60230857ed064d2797887d5e10246be651 Mon Sep 17 00:00:00 2001 From: souheil-yazji Date: Tue, 24 Oct 2023 17:33:11 +0000 Subject: [PATCH] fix(cve): force babel/traverse installation --- docker-bits/6_jupyterlab.Dockerfile | 2 +- output/jupyterlab-cpu/Dockerfile | 2 +- output/jupyterlab-pytorch/Dockerfile | 2 +- output/jupyterlab-tensorflow/Dockerfile | 2 +- output/sas/Dockerfile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-bits/6_jupyterlab.Dockerfile b/docker-bits/6_jupyterlab.Dockerfile index e5713b782..bd4c4741b 100644 --- a/docker-bits/6_jupyterlab.Dockerfile +++ b/docker-bits/6_jupyterlab.Dockerfile @@ -123,7 +123,7 @@ RUN apt-get update --yes \ ARG NODE_OPTIONS=--openssl-legacy-provider RUN sed -i -e 's/history/hash/' ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ && sed -i -e "s/OMS_URL:.*''/OMS_URL: '.'/" ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ - && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ + && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui @babel/traverse@7.23.2\ && npm run build --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ && rm -r ${OMPP_INSTALL_DIR}/html \ && mv ${OMPP_INSTALL_DIR}/ompp-ui/dist/spa ${OMPP_INSTALL_DIR}/html \ diff --git a/output/jupyterlab-cpu/Dockerfile b/output/jupyterlab-cpu/Dockerfile index 4288c5b58..897e49a30 100644 --- a/output/jupyterlab-cpu/Dockerfile +++ b/output/jupyterlab-cpu/Dockerfile @@ -275,7 +275,7 @@ RUN apt-get update --yes \ ARG NODE_OPTIONS=--openssl-legacy-provider RUN sed -i -e 's/history/hash/' ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ && sed -i -e "s/OMS_URL:.*''/OMS_URL: '.'/" ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ - && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ + && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui @babel/traverse@7.23.2\ && npm run build --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ && rm -r ${OMPP_INSTALL_DIR}/html \ && mv ${OMPP_INSTALL_DIR}/ompp-ui/dist/spa ${OMPP_INSTALL_DIR}/html \ diff --git a/output/jupyterlab-pytorch/Dockerfile b/output/jupyterlab-pytorch/Dockerfile index efdcfc9c6..5b76fe323 100644 --- a/output/jupyterlab-pytorch/Dockerfile +++ b/output/jupyterlab-pytorch/Dockerfile @@ -297,7 +297,7 @@ RUN apt-get update --yes \ ARG NODE_OPTIONS=--openssl-legacy-provider RUN sed -i -e 's/history/hash/' ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ && sed -i -e "s/OMS_URL:.*''/OMS_URL: '.'/" ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ - && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ + && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui @babel/traverse@7.23.2\ && npm run build --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ && rm -r ${OMPP_INSTALL_DIR}/html \ && mv ${OMPP_INSTALL_DIR}/ompp-ui/dist/spa ${OMPP_INSTALL_DIR}/html \ diff --git a/output/jupyterlab-tensorflow/Dockerfile b/output/jupyterlab-tensorflow/Dockerfile index b60c1dbf2..e22a968f1 100644 --- a/output/jupyterlab-tensorflow/Dockerfile +++ b/output/jupyterlab-tensorflow/Dockerfile @@ -404,7 +404,7 @@ RUN apt-get update --yes \ ARG NODE_OPTIONS=--openssl-legacy-provider RUN sed -i -e 's/history/hash/' ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ && sed -i -e "s/OMS_URL:.*''/OMS_URL: '.'/" ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ - && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ + && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui @babel/traverse@7.23.2\ && npm run build --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ && rm -r ${OMPP_INSTALL_DIR}/html \ && mv ${OMPP_INSTALL_DIR}/ompp-ui/dist/spa ${OMPP_INSTALL_DIR}/html \ diff --git a/output/sas/Dockerfile b/output/sas/Dockerfile index 079639426..8cb156361 100644 --- a/output/sas/Dockerfile +++ b/output/sas/Dockerfile @@ -277,7 +277,7 @@ RUN apt-get update --yes \ ARG NODE_OPTIONS=--openssl-legacy-provider RUN sed -i -e 's/history/hash/' ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ && sed -i -e "s/OMS_URL:.*''/OMS_URL: '.'/" ${OMPP_INSTALL_DIR}/ompp-ui/quasar.conf.js \ - && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ + && npm install --prefix ${OMPP_INSTALL_DIR}/ompp-ui @babel/traverse@7.23.2\ && npm run build --prefix ${OMPP_INSTALL_DIR}/ompp-ui \ && rm -r ${OMPP_INSTALL_DIR}/html \ && mv ${OMPP_INSTALL_DIR}/ompp-ui/dist/spa ${OMPP_INSTALL_DIR}/html \