-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MongoDB Server compatibility matrix.
- Loading branch information
1 parent
a84b3c2
commit 7fd7fd4
Showing
5 changed files
with
99 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG BASE | ||
FROM ${BASE} | ||
# Any ARG statements before FROM are cleared. | ||
ARG MONGODB | ||
|
||
ENV TZ=Etc/UTC | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV MONGO_VERSION=${MONGODB} | ||
|
||
RUN set -eux; \ | ||
sed -i -e 's/archive.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list && \ | ||
sed -i -e 's/security.ubuntu.com/mirror.one.com/g' /etc/apt/sources.list && \ | ||
sed -i -e 's/ports.ubuntu.com/mirrors.ocf.berkeley.edu/g' /etc/apt/sources.list && \ | ||
sed -i -e 's/http/https/g' /etc/apt/sources.list && \ | ||
apt-get update && apt-get install -y apt-transport-https apt-utils gnupg2 wget && \ | ||
# MongoDB 8.0 release signing key | ||
wget -qO - https://www.mongodb.org/static/pgp/server-8.0.asc | apt-key add - && \ | ||
# Needed when MongoDB creates a 8.0 folder. | ||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list && \ | ||
echo ${TZ} > /etc/timezone | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y mongodb-org=${MONGODB} mongodb-org-server=${MONGODB} mongodb-org-shell=${MONGODB} mongodb-org-mongos=${MONGODB} mongodb-org-tools=${MONGODB} && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters