Skip to content

Commit a8bda3a

Browse files
gregturnchristophstrobl
authored andcommitted
Buld a MongoDB 5.0.0 container.
MongoDB has alpha releases in a slightly different location on their distribution server. And they use different keys for signing these alpha releases compared to the overall package listing.
1 parent 364346e commit a8bda3a

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

Jenkinsfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ pipeline {
1515
stage("Docker images") {
1616
parallel {
1717
stage('Publish JDK 8 + MongoDB 5.0') {
18-
when {
19-
changeset "ci/openjdk8-mongodb-5.0/**"
20-
}
21-
agent { label 'data' }
22-
options { timeout(time: 30, unit: 'MINUTES') }
18+
when {
19+
changeset "ci/openjdk8-mongodb-5.0/**"
20+
}
21+
agent { label 'data' }
22+
options { timeout(time: 30, unit: 'MINUTES') }
2323

24-
steps {
25-
script {
26-
def image = docker.build("springci/spring-data-openjdk8-with-mongodb-5.0.0", "ci/openjdk8-mongodb-5.0/")
27-
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
28-
image.push()
29-
}
30-
}
31-
}
32-
}
24+
steps {
25+
script {
26+
def image = docker.build("springci/spring-data-openjdk8-with-mongodb-5.0.0", "ci/openjdk8-mongodb-5.0/")
27+
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
28+
image.push()
29+
}
30+
}
31+
}
32+
}
3333
stage('Publish JDK 8 + MongoDB 4.0') {
3434
when {
3535
changeset "ci/openjdk8-mongodb-4.0/**"

ci/openjdk8-mongodb-5.0/Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ FROM adoptopenjdk/openjdk8:latest
33
ENV TZ=Etc/UTC
44
ENV DEBIAN_FRONTEND=noninteractive
55

6-
RUN RUN set -eux; \
7-
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 ; \
8-
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 ; \
6+
RUN set -eux; \
7+
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 wget ; \
8+
# MongoDB 4.0 release signing key, needed to validate development's Release bundle
9+
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 68818C72E52529D4 ; \
10+
# MongoDB 5.0 release signing key
11+
apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv B00A0BD1E2C63C11 ; \
12+
# Needed when MongoDB creates a 5.0 folder.
913
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list; \
14+
# Needed to get MongoDB's development releases.
15+
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/development multiverse" | tee /etc/apt/sources.list.d/mongodb-org-development.list; \
1016
echo ${TZ} > /etc/timezone;
1117

12-
RUN apt-get update ; \
13-
apt-get install -y mongodb-org=5.0.0 mongodb-org-server=5.0.0 mongodb-org-shell=5.0.0 mongodb-org-mongos=5.0.0 mongodb-org-tools=5.0.0 ; \
18+
RUN apt-get update; \
19+
apt-get install -y mongodb-org=5.0.0~latest mongodb-org-server=5.0.0~latest mongodb-org-shell=5.0.0~latest mongodb-org-mongos=5.0.0~latest mongodb-org-tools=5.0.0~latest ; \
1420
apt-get clean; \
1521
rm -rf /var/lib/apt/lists/*;
16-

0 commit comments

Comments
 (0)