Skip to content

Commit b6abf6f

Browse files
committed
testkit: Update NodeJS version in the Dockerfile
The support for the `NodeJS 8.x` was dropped and the `npm update` was failing because of that. The NodeJS updagrade is being done to `10.x` since it's the oldest version in maintenance. This update was done by updating the Ubuntu version since the other of updates was broken the TLS configuration. Along with this, the TLS 1.0 was enable in the OpenSSL config since it's disable by default in this ubuntu's version.
1 parent ab2f679 commit b6abf6f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

testkit/Dockerfile

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
24

35
RUN apt-get update && \
46
apt-get install -y \
57
git \
68
curl \
79
python3 \
8-
firefox \
910
nodejs \
10-
npm \
11+
npm \
12+
firefox \
1113
&& rm -rf /var/lib/apt/lists/*
1214

1315
RUN npm install -g npm \
1416
&& /bin/bash -c 'hash -d npm'
1517
RUN npm install -g gulp
1618

19+
# Enable tls v1.0
20+
RUN echo "openssl_conf = openssl_configuration\n"|cat - /etc/ssl/openssl.cnf > /tmp/openssl_conf.cnf \
21+
&& mv /tmp/openssl_conf.cnf /etc/ssl/openssl.cnf
22+
RUN echo "[openssl_configuration]\n\
23+
ssl_conf = ssl_configuration\n\
24+
[ssl_configuration]\n\
25+
system_default = tls_system_default\n\
26+
[tls_system_default]\n\
27+
CipherString = DEFAULT:@SECLEVEL=1" >> /etc/ssl/openssl.cnf
28+
1729
# Install our own CAs on the image.
1830
# Assumes Linux Debian based image.
1931
COPY CAs/* /usr/local/share/ca-certificates/

0 commit comments

Comments
 (0)