Skip to content

Commit 080cc42

Browse files
authored
Apply workaround for tls in https://npm.sap.com (#10)
1 parent 695723d commit 080cc42

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
FROM node:10-buster
33

44
RUN apt-get update && \
5-
apt-get install -y chromium=78.0.3904.97-1~deb10u1 firefox-esr=68.2.0esr-1~deb10u1 xvfb libxi6 libgconf-2-4 openjdk-11-jre && \
5+
apt-get install -y chromium=78.0.3904.108-1~deb10u1 firefox-esr=68.2.0esr-1~deb10u1 xvfb libxi6 libgconf-2-4 openjdk-11-jre && \
66
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
77

88
RUN ln -s /usr/bin/chromium /usr/bin/google-chrome
99

1010
RUN npm config set @sap:registry https://npm.sap.com --global
1111

12+
# Workaround for https://npm.sap.com issue with open SSL in Debian Buster
13+
RUN CIPHERS="$(openssl ciphers)" && sed -i "s/DEFAULT@SECLEVEL=2/$CIPHERS:DH-RSA-AES256-SHA256/g" /etc/ssl/openssl.cnf
14+
1215
USER node

node12/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM node:12-buster
22

33
RUN apt-get update && \
4-
apt-get install -y chromium=78.0.3904.97-1~deb10u1 firefox-esr=68.2.0esr-1~deb10u1 xvfb libxi6 libgconf-2-4 openjdk-11-jre && \
4+
apt-get install -y chromium=78.0.3904.108-1~deb10u1 firefox-esr=68.2.0esr-1~deb10u1 xvfb libxi6 libgconf-2-4 openjdk-11-jre && \
55
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
66

77
RUN ln -s /usr/bin/chromium /usr/bin/google-chrome
88

99
RUN npm config set @sap:registry https://npm.sap.com --global
1010

11+
# Workaround for https://npm.sap.com issue with open SSL in Debian Buster
12+
RUN CIPHERS="$(openssl ciphers)" && sed -i "s/DEFAULT@SECLEVEL=2/$CIPHERS:DH-RSA-AES256-SHA256/g" /etc/ssl/openssl.cnf
13+
1114
USER node

0 commit comments

Comments
 (0)