Skip to content

Commit f2ab09a

Browse files
authored
fix(ci): use Rocky Linux 8 instead of CentOS 7 for packaging (#1218)
Rocky Linux 8 comes with a newer version of rpm, which also provides SHA256 rpm signing, which is being requested in HELP-31642.
1 parent cc12fbf commit f2ab09a

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.evergreen/package-and-upload-artifact.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ tar xvzf dist.tgz
1212
if [ "$(uname)" == Linux ]; then
1313
mkdir -p tmp
1414
cp "$(pwd)/../tmp/expansions.yaml" tmp/expansions.yaml
15-
(cd scripts/docker && docker build -t centos7-package -f centos7-package.Dockerfile .)
15+
(cd scripts/docker && docker build -t rocky8-package -f rocky8-package.Dockerfile .)
1616
echo Starting Docker container packaging
1717
docker run -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD \
1818
-e EVERGREEN_EXPANSIONS_PATH=/tmp/build/tmp/expansions.yaml \
1919
-e NODE_JS_VERSION \
2020
-e DISTRIBUTION_BUILD_VARIANT \
2121
-e ARTIFACT_URL_FILE="/tmp/build/artifact-url.txt" \
22-
--rm -v $PWD:/tmp/build --network host centos7-package \
22+
--rm -v $PWD:/tmp/build --network host rocky8-package \
2323
-c 'cd /tmp/build && npm run evergreen-release package && npm run evergreen-release upload'
2424
else
2525
if [[ "$OS" == "Windows_NT" && "$DISTRIBUTION_BUILD_VARIANT" == "win32msi-x64" ]]; then

scripts/docker/centos7-package.Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM rockylinux:8
2+
3+
RUN dnf repolist
4+
RUN dnf -y install 'dnf-command(config-manager)'
5+
RUN dnf config-manager --set-enabled powertools
6+
RUN dnf -y install epel-release
7+
RUN dnf -y install python3 rpm-build dpkg-devel dpkg-dev git
8+
9+
# Add Node.js
10+
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash -
11+
RUN dnf install -y nodejs
12+
13+
ENTRYPOINT [ "bash" ]

0 commit comments

Comments
 (0)