Skip to content
This repository was archived by the owner on Jul 23, 2020. It is now read-only.

Commit 8117db8

Browse files
authored
fix(CI): add required gpg keys in foler (#4377)
1 parent ff282b9 commit 8117db8

10 files changed

+36
-10
lines changed

Dockerfile.builder

+18-10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ FROM centos:7
22
MAINTAINER "Konrad Kleine <[email protected]>"
33
ENV LANG=en_US.utf8
44

5+
# load the gpg keys
6+
COPY gpg /gpg
7+
58
# gpg keys listed at https://github.com/nodejs/node
69
RUN set -ex \
710
&& for key in \
@@ -14,23 +17,28 @@ RUN set -ex \
1417
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
1518
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
1619
; do \
17-
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || \
18-
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
19-
gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \
20+
gpg --import "/gpg/${key}.gpg" ; \
2021
done
2122

2223
#ENV NPM_CONFIG_LOGLEVEL info
23-
ENV NODE_VERSION 6.9.2
24-
25-
RUN yum install -y bzip2 fontconfig java-1.8.0-openjdk nmap-ncat psmisc \
26-
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
24+
ENV NODE_VERSION 8.3.0
25+
26+
RUN yum -y update && \
27+
yum install -y bzip2 fontconfig tar gcc-c++ java-1.8.0-openjdk nmap-ncat psmisc gtk3 git \
28+
python-setuptools xorg-x11-xauth wget unzip which \
29+
xorg-x11-server-Xvfb xfonts-100dpi libXfont GConf2 \
30+
xorg-x11-fonts-75dpi xfonts-scalable xfonts-cyrillic \
31+
ipa-gothic-fonts xorg-x11-utils xorg-x11-fonts-Type1 xorg-x11-fonts-misc \
32+
epel-release libappindicator && \
33+
yum -y clean all
34+
35+
RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
2736
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
2837
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
2938
&& grep " node-v$NODE_VERSION-linux-x64.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
3039
&& tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 \
3140
&& rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
32-
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
33-
&& yum clean all
41+
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
3442

3543
ENV FABRIC8_USER_NAME=fabric8
3644

@@ -51,4 +59,4 @@ VOLUME /dist
5159

5260
ENV ANALYTICS_WRITE_KEY="B1ASbgoKVpsyv9mcnmbmO7YoggygHq9H"
5361

54-
ENTRYPOINT ["/bin/bash"]
62+
ENTRYPOINT ["/bin/bash"]
2.46 KB
Binary file not shown.
18.6 KB
Binary file not shown.
3.51 KB
Binary file not shown.
2.53 KB
Binary file not shown.
6.58 KB
Binary file not shown.
13.7 KB
Binary file not shown.
3.61 KB
Binary file not shown.
7.42 KB
Binary file not shown.

gpg/fetch_gpg_keys.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# gpg keys listed at https://github.com/nodejs/node
4+
for key in \
5+
9554F04D7259F04124DE6B476D5A82AC7E37093B \
6+
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
7+
0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
8+
FD3A5288F042B6850C66B31F09FE44734EB7990E \
9+
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
10+
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
11+
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
12+
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
13+
; do \
14+
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || \
15+
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
16+
gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \
17+
gpg --export "$key" > $key.gpg;
18+
done

0 commit comments

Comments
 (0)