Skip to content

Commit 3f9f4cd

Browse files
Update to 4.0.21
1 parent 847dd2d commit 3f9f4cd

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

4.0/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,23 @@ ARG MONGO_REPO=repo.mongodb.org
7979
ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
8080

8181
ENV MONGO_MAJOR 4.0
82-
ENV MONGO_VERSION 4.0.20
82+
ENV MONGO_VERSION 4.0.21
8383
# bashbrew-architectures:amd64 arm64v8
8484
RUN echo "deb http://$MONGO_REPO/apt/ubuntu xenial/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list"
8585

8686
RUN set -x \
8787
# installing "mongodb-enterprise" pulls in "tzdata" which prompts for input
8888
&& export DEBIAN_FRONTEND=noninteractive \
8989
&& apt-get update \
90+
# starting with MongoDB 4.3, the postinst for server includes "systemctl daemon-reload" (and we don't have "systemctl")
91+
&& ln -s /bin/true /usr/local/bin/systemctl \
9092
&& apt-get install -y \
9193
${MONGO_PACKAGE}=$MONGO_VERSION \
9294
${MONGO_PACKAGE}-server=$MONGO_VERSION \
9395
${MONGO_PACKAGE}-shell=$MONGO_VERSION \
9496
${MONGO_PACKAGE}-mongos=$MONGO_VERSION \
9597
${MONGO_PACKAGE}-tools=$MONGO_VERSION \
98+
&& rm -f /usr/local/bin/systemctl \
9699
&& rm -rf /var/lib/apt/lists/* \
97100
&& rm -rf /var/lib/mongodb \
98101
&& mv /etc/mongod.conf /etc/mongod.conf.orig

4.0/windows/windowsservercore-1809/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ FROM mcr.microsoft.com/windows/servercore:1809
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
44

5-
ENV MONGO_VERSION 4.0.20
6-
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.20-signed.msi
7-
ENV MONGO_DOWNLOAD_SHA256=f7e29506ed39ee7c0116c192f7e65a61f7c7decbe4c723aa8c6343079f28a7bb
5+
ENV MONGO_VERSION 4.0.21
6+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.21-signed.msi
7+
ENV MONGO_DOWNLOAD_SHA256=6dcb6a76e19e7bcbdc0d97155c29f50e0ab3f6bd6c6f77d4b9003ee3cd474ef0
88

99
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
1010
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \

4.0/windows/windowsservercore-ltsc2016/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2016
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
44

5-
ENV MONGO_VERSION 4.0.20
6-
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.20-signed.msi
7-
ENV MONGO_DOWNLOAD_SHA256=f7e29506ed39ee7c0116c192f7e65a61f7c7decbe4c723aa8c6343079f28a7bb
5+
ENV MONGO_VERSION 4.0.21
6+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.21-signed.msi
7+
ENV MONGO_DOWNLOAD_SHA256=6dcb6a76e19e7bcbdc0d97155c29f50e0ab3f6bd6c6f77d4b9003ee3cd474ef0
88

99
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
1010
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \

0 commit comments

Comments
 (0)