From e78ff3ea7b0759ba80f9c509204a2e93462076f3 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 4 Apr 2022 21:20:18 +0000 Subject: [PATCH 1/2] fix: docker/test/integration/mysql_js_client/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN9-PYTHON27-341379 - https://snyk.io/vuln/SNYK-DEBIAN9-PYTHON35-1063181 - https://snyk.io/vuln/SNYK-DEBIAN9-PYTHON35-340072 - https://snyk.io/vuln/SNYK-DEBIAN9-PYTHON35-453739 - https://snyk.io/vuln/SNYK-DEBIAN9-PYTHON35-584435 --- docker/test/integration/mysql_js_client/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/test/integration/mysql_js_client/Dockerfile b/docker/test/integration/mysql_js_client/Dockerfile index b1397b40d38..14e0a20e87f 100644 --- a/docker/test/integration/mysql_js_client/Dockerfile +++ b/docker/test/integration/mysql_js_client/Dockerfile @@ -1,7 +1,7 @@ # docker build -t clickhouse/mysql-js-client . # MySQL JavaScript client docker container -FROM node:8 +FROM node:16.14.2 RUN npm install mysql From 4d7618585b7a5235e820663556932e004ee601ba Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Tue, 5 Apr 2022 00:10:33 +0200 Subject: [PATCH 2/2] Fix WORKDIR issue after upgrading npm --- docker/test/integration/mysql_js_client/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/test/integration/mysql_js_client/Dockerfile b/docker/test/integration/mysql_js_client/Dockerfile index 14e0a20e87f..4c9df10ace1 100644 --- a/docker/test/integration/mysql_js_client/Dockerfile +++ b/docker/test/integration/mysql_js_client/Dockerfile @@ -3,6 +3,8 @@ FROM node:16.14.2 +WORKDIR /usr/app + RUN npm install mysql -COPY ./test.js test.js +COPY ./test.js ./test.js