-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mongo #10185
Merged
Merged
Update mongo #10185
Conversation
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
Changes: - docker-library/mongo@6377a52: Fix Constraints again - docker-library/mongo@7dadfcc: Add missing Constraints - docker-library/mongo@dc35ba5: Add nanoserver-1809 container images using multi-stage builds (docker-library/mongo#470) - docker-library/mongo@b3edd5a: Merge pull request docker-library/mongo#472 from infosiftr/4.9-rc - docker-library/mongo@2e9ea18: Add 4.9-rc - docker-library/mongo@7ae285a: Merge pull request docker-library/mongo#471 from infosiftr/jq-template - docker-library/mongo@791d400: Add initial jq-based templating engine - docker-library/mongo@77e6657: Remove 3.6 (EOL)
Diff for a037984:diff --git a/_bashbrew-cat b/_bashbrew-cat
index f4d45a7..f83c2db 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -1,62 +1,110 @@
Maintainers: Tianon Gravi <admwiggin@gmail.com> (@tianon), Joseph Ferguson <yosifkit@gmail.com> (@yosifkit)
GitRepo: https://github.com/docker-library/mongo.git
+Tags: 4.0.24-nanoserver-1809, 4.0-nanoserver-1809
+SharedTags: 4.0.24-nanoserver, 4.0-nanoserver
+Architectures: windows-amd64
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
+Directory: 4.0/windows/nanoserver-1809
+Constraints: nanoserver-1809, windowsservercore-1809
+
Tags: 4.0.24-windowsservercore-1809, 4.0-windowsservercore-1809
SharedTags: 4.0.24-windowsservercore, 4.0-windowsservercore, 4.0.24, 4.0
Architectures: windows-amd64
-GitCommit: 8806928aa5596f4b310dc2d9371a6e153f18d3b4
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
Directory: 4.0/windows/windowsservercore-1809
Constraints: windowsservercore-1809
Tags: 4.0.24-windowsservercore-ltsc2016, 4.0-windowsservercore-ltsc2016
SharedTags: 4.0.24-windowsservercore, 4.0-windowsservercore, 4.0.24, 4.0
Architectures: windows-amd64
-GitCommit: 8806928aa5596f4b310dc2d9371a6e153f18d3b4
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
Directory: 4.0/windows/windowsservercore-ltsc2016
Constraints: windowsservercore-ltsc2016
Tags: 4.0.24-xenial, 4.0-xenial
SharedTags: 4.0.24, 4.0
Architectures: amd64, arm64v8
-GitCommit: b9073238e2a724f76e5f587a663baa55ab902e26
+GitCommit: 791d400b9e84a298356b78db01956d98db973b9d
Directory: 4.0
Tags: 4.2.14-bionic, 4.2-bionic
SharedTags: 4.2.14, 4.2
Architectures: amd64, arm64v8
-GitCommit: b9073238e2a724f76e5f587a663baa55ab902e26
+GitCommit: 791d400b9e84a298356b78db01956d98db973b9d
Directory: 4.2
+Tags: 4.2.14-nanoserver-1809, 4.2-nanoserver-1809
+SharedTags: 4.2.14-nanoserver, 4.2-nanoserver
+Architectures: windows-amd64
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
+Directory: 4.2/windows/nanoserver-1809
+Constraints: nanoserver-1809, windowsservercore-1809
+
Tags: 4.2.14-windowsservercore-1809, 4.2-windowsservercore-1809
SharedTags: 4.2.14-windowsservercore, 4.2-windowsservercore, 4.2.14, 4.2
Architectures: windows-amd64
-GitCommit: d328982a097f4f1224a95097ede86a5b23b32ac8
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
Directory: 4.2/windows/windowsservercore-1809
Constraints: windowsservercore-1809
Tags: 4.2.14-windowsservercore-ltsc2016, 4.2-windowsservercore-ltsc2016
SharedTags: 4.2.14-windowsservercore, 4.2-windowsservercore, 4.2.14, 4.2
Architectures: windows-amd64
-GitCommit: d328982a097f4f1224a95097ede86a5b23b32ac8
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
Directory: 4.2/windows/windowsservercore-ltsc2016
Constraints: windowsservercore-ltsc2016
Tags: 4.4.6-bionic, 4.4-bionic, 4-bionic, bionic
SharedTags: 4.4.6, 4.4, 4, latest
Architectures: amd64, arm64v8, s390x
-GitCommit: 447e058c5615b47aae283110c4f36c7ea48ccc2f
+GitCommit: 791d400b9e84a298356b78db01956d98db973b9d
Directory: 4.4
+Tags: 4.4.6-nanoserver-1809, 4.4-nanoserver-1809, 4-nanoserver-1809, nanoserver-1809
+SharedTags: 4.4.6-nanoserver, 4.4-nanoserver, 4-nanoserver, nanoserver
+Architectures: windows-amd64
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
+Directory: 4.4/windows/nanoserver-1809
+Constraints: nanoserver-1809, windowsservercore-1809
+
Tags: 4.4.6-windowsservercore-1809, 4.4-windowsservercore-1809, 4-windowsservercore-1809, windowsservercore-1809
SharedTags: 4.4.6-windowsservercore, 4.4-windowsservercore, 4-windowsservercore, windowsservercore, 4.4.6, 4.4, 4, latest
Architectures: windows-amd64
-GitCommit: 447e058c5615b47aae283110c4f36c7ea48ccc2f
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
Directory: 4.4/windows/windowsservercore-1809
Constraints: windowsservercore-1809
Tags: 4.4.6-windowsservercore-ltsc2016, 4.4-windowsservercore-ltsc2016, 4-windowsservercore-ltsc2016, windowsservercore-ltsc2016
SharedTags: 4.4.6-windowsservercore, 4.4-windowsservercore, 4-windowsservercore, windowsservercore, 4.4.6, 4.4, 4, latest
Architectures: windows-amd64
-GitCommit: 447e058c5615b47aae283110c4f36c7ea48ccc2f
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
Directory: 4.4/windows/windowsservercore-ltsc2016
Constraints: windowsservercore-ltsc2016
+
+Tags: 4.9.0-rc1-focal, 4.9-rc-focal
+SharedTags: 4.9.0-rc1, 4.9-rc
+Architectures: amd64, arm64v8
+GitCommit: 2e9ea18db4f51698949cbc0416fea3bf89aa1e03
+Directory: 4.9-rc
+
+Tags: 4.9.0-rc1-nanoserver-1809, 4.9-rc-nanoserver-1809
+SharedTags: 4.9.0-rc1-nanoserver, 4.9-rc-nanoserver
+Architectures: windows-amd64
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
+Directory: 4.9-rc/windows/nanoserver-1809
+Constraints: nanoserver-1809, windowsservercore-1809
+
+Tags: 4.9.0-rc1-windowsservercore-1809, 4.9-rc-windowsservercore-1809
+SharedTags: 4.9.0-rc1-windowsservercore, 4.9-rc-windowsservercore, 4.9.0-rc1, 4.9-rc
+Architectures: windows-amd64
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
+Directory: 4.9-rc/windows/windowsservercore-1809
+Constraints: windowsservercore-1809
+
+Tags: 4.9.0-rc1-windowsservercore-ltsc2016, 4.9-rc-windowsservercore-ltsc2016
+SharedTags: 4.9.0-rc1-windowsservercore, 4.9-rc-windowsservercore, 4.9.0-rc1, 4.9-rc
+Architectures: windows-amd64
+GitCommit: dc35ba55761b2f03ce2f79ff3b79783b15e23dae
+Directory: 4.9-rc/windows/windowsservercore-ltsc2016
+Constraints: windowsservercore-ltsc2016
diff --git a/_bashbrew-list b/_bashbrew-list
index 63b83c0..5b4e5e2 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -1,40 +1,70 @@
mongo:4
mongo:4-bionic
+mongo:4-nanoserver
+mongo:4-nanoserver-1809
mongo:4-windowsservercore
mongo:4-windowsservercore-1809
mongo:4-windowsservercore-ltsc2016
mongo:4.0
+mongo:4.0-nanoserver
+mongo:4.0-nanoserver-1809
mongo:4.0-windowsservercore
mongo:4.0-windowsservercore-1809
mongo:4.0-windowsservercore-ltsc2016
mongo:4.0-xenial
mongo:4.0.24
+mongo:4.0.24-nanoserver
+mongo:4.0.24-nanoserver-1809
mongo:4.0.24-windowsservercore
mongo:4.0.24-windowsservercore-1809
mongo:4.0.24-windowsservercore-ltsc2016
mongo:4.0.24-xenial
mongo:4.2
mongo:4.2-bionic
+mongo:4.2-nanoserver
+mongo:4.2-nanoserver-1809
mongo:4.2-windowsservercore
mongo:4.2-windowsservercore-1809
mongo:4.2-windowsservercore-ltsc2016
mongo:4.2.14
mongo:4.2.14-bionic
+mongo:4.2.14-nanoserver
+mongo:4.2.14-nanoserver-1809
mongo:4.2.14-windowsservercore
mongo:4.2.14-windowsservercore-1809
mongo:4.2.14-windowsservercore-ltsc2016
mongo:4.4
mongo:4.4-bionic
+mongo:4.4-nanoserver
+mongo:4.4-nanoserver-1809
mongo:4.4-windowsservercore
mongo:4.4-windowsservercore-1809
mongo:4.4-windowsservercore-ltsc2016
mongo:4.4.6
mongo:4.4.6-bionic
+mongo:4.4.6-nanoserver
+mongo:4.4.6-nanoserver-1809
mongo:4.4.6-windowsservercore
mongo:4.4.6-windowsservercore-1809
mongo:4.4.6-windowsservercore-ltsc2016
+mongo:4.9-rc
+mongo:4.9-rc-focal
+mongo:4.9-rc-nanoserver
+mongo:4.9-rc-nanoserver-1809
+mongo:4.9-rc-windowsservercore
+mongo:4.9-rc-windowsservercore-1809
+mongo:4.9-rc-windowsservercore-ltsc2016
+mongo:4.9.0-rc1
+mongo:4.9.0-rc1-focal
+mongo:4.9.0-rc1-nanoserver
+mongo:4.9.0-rc1-nanoserver-1809
+mongo:4.9.0-rc1-windowsservercore
+mongo:4.9.0-rc1-windowsservercore-1809
+mongo:4.9.0-rc1-windowsservercore-ltsc2016
mongo:bionic
mongo:latest
+mongo:nanoserver
+mongo:nanoserver-1809
mongo:windowsservercore
mongo:windowsservercore-1809
mongo:windowsservercore-ltsc2016
diff --git a/mongo_4.0-nanoserver-1809/Dockerfile b/mongo_4.0-nanoserver-1809/Dockerfile
new file mode 100644
index 0000000..fa3f876
--- /dev/null
+++ b/mongo_4.0-nanoserver-1809/Dockerfile
@@ -0,0 +1,32 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
+FROM mcr.microsoft.com/windows/nanoserver:1809
+
+SHELL ["cmd", "/S", "/C"]
+
+# PATH isn't actually set in the Docker image, so we have to set it from within the container
+USER ContainerAdministrator
+RUN setx /m PATH "C:\mongodb\bin;%PATH%"
+USER ContainerUser
+# doing this first to share cache across versions more aggressively
+
+COPY --from=mongo:4.0.24-windowsservercore-1809 \
+ C:\\Windows\\System32\\msvcp140.dll \
+ C:\\Windows\\System32\\vcruntime140.dll \
+ C:\\Windows\\System32\\
+
+# http://docs.mongodb.org/master/release-notes/4.0/
+ENV MONGO_VERSION 4.0.24
+# 04/15/2021, https://github.com/mongodb/mongo/tree/9df1b3a80f39cf7e7ccd6264a207518426a524f6
+
+COPY --from=mongo:4.0.24-windowsservercore-1809 C:\\mongodb C:\\mongodb
+RUN mongo --version && mongod --version
+
+VOLUME C:\\data\\db C:\\data\\configdb
+
+EXPOSE 27017
+CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_4.0-windowsservercore-1809/Dockerfile b/mongo_4.0-windowsservercore-1809/Dockerfile
index d76d822..5440d5f 100644
--- a/mongo_4.0-windowsservercore-1809/Dockerfile
+++ b/mongo_4.0-windowsservercore-1809/Dockerfile
@@ -1,8 +1,17 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:1809
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
+# http://docs.mongodb.org/master/release-notes/4.0/
ENV MONGO_VERSION 4.0.24
+# 04/15/2021, https://github.com/mongodb/mongo/tree/9df1b3a80f39cf7e7ccd6264a207518426a524f6
+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.24-signed.msi
ENV MONGO_DOWNLOAD_SHA256=e17a25bc51b6bdcf6da0fe6b0ba22075b43566119c656b454542735133cd9f1e
@@ -29,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools,MonitoringTools,ImportExportTools' \
+ 'ADDLOCAL=Client,ImportExportTools,MiscellaneousTools,MonitoringTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +60,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_4.0-windowsservercore-ltsc2016/Dockerfile b/mongo_4.0-windowsservercore-ltsc2016/Dockerfile
index cd00c42..364770e 100644
--- a/mongo_4.0-windowsservercore-ltsc2016/Dockerfile
+++ b/mongo_4.0-windowsservercore-ltsc2016/Dockerfile
@@ -1,8 +1,17 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
+# http://docs.mongodb.org/master/release-notes/4.0/
ENV MONGO_VERSION 4.0.24
+# 04/15/2021, https://github.com/mongodb/mongo/tree/9df1b3a80f39cf7e7ccd6264a207518426a524f6
+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.24-signed.msi
ENV MONGO_DOWNLOAD_SHA256=e17a25bc51b6bdcf6da0fe6b0ba22075b43566119c656b454542735133cd9f1e
@@ -29,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools,MonitoringTools,ImportExportTools' \
+ 'ADDLOCAL=Client,ImportExportTools,MiscellaneousTools,MonitoringTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +60,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_4.0-xenial/Dockerfile b/mongo_4.0-xenial/Dockerfile
index 0aa425f..d4eede8 100644
--- a/mongo_4.0-xenial/Dockerfile
+++ b/mongo_4.0-xenial/Dockerfile
@@ -1,3 +1,9 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM ubuntu:xenial
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
@@ -59,13 +65,13 @@ RUN set -ex; \
RUN mkdir /docker-entrypoint-initdb.d
-ENV GPG_KEYS 9DA31620334BD75D9DCB49F368818C72E52529D4
RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
- for key in $GPG_KEYS; do \
+ set -- '9DA31620334BD75D9DCB49F368818C72E52529D4'; \
+ for key; do \
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
done; \
- gpg --batch --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
+ gpg --batch --export "$@" > /etc/apt/trusted.gpg.d/mongodb.gpg; \
command -v gpgconf && gpgconf --kill all || :; \
rm -r "$GNUPGHOME"; \
apt-key list
@@ -74,15 +80,16 @@ RUN set -ex; \
# Options for MONGO_PACKAGE: mongodb-org OR mongodb-enterprise
# Options for MONGO_REPO: repo.mongodb.org OR repo.mongodb.com
# Example: docker build --build-arg MONGO_PACKAGE=mongodb-enterprise --build-arg MONGO_REPO=repo.mongodb.com .
-ARG MONGO_PACKAGE=mongodb-org
-ARG MONGO_REPO=repo.mongodb.org
+ARG MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
ENV MONGO_MAJOR 4.0
-ENV MONGO_VERSION 4.0.24
-# bashbrew-architectures:amd64 arm64v8
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"
+# http://docs.mongodb.org/master/release-notes/4.0/
+ENV MONGO_VERSION 4.0.24
+# 04/15/2021, https://github.com/mongodb/mongo/tree/9df1b3a80f39cf7e7ccd6264a207518426a524f6
+
RUN set -x \
# installing "mongodb-enterprise" pulls in "tzdata" which prompts for input
&& export DEBIAN_FRONTEND=noninteractive \
diff --git a/mongo_4.2-bionic/Dockerfile b/mongo_4.2-bionic/Dockerfile
index c766054..9d70862 100644
--- a/mongo_4.2-bionic/Dockerfile
+++ b/mongo_4.2-bionic/Dockerfile
@@ -1,3 +1,9 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM ubuntu:bionic
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
@@ -59,13 +65,13 @@ RUN set -ex; \
RUN mkdir /docker-entrypoint-initdb.d
-ENV GPG_KEYS E162F504A20CDF15827F718D4B7C549A058F8B6B
RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
- for key in $GPG_KEYS; do \
+ set -- 'E162F504A20CDF15827F718D4B7C549A058F8B6B'; \
+ for key; do \
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
done; \
- gpg --batch --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
+ gpg --batch --export "$@" > /etc/apt/trusted.gpg.d/mongodb.gpg; \
command -v gpgconf && gpgconf --kill all || :; \
rm -r "$GNUPGHOME"; \
apt-key list
@@ -74,15 +80,16 @@ RUN set -ex; \
# Options for MONGO_PACKAGE: mongodb-org OR mongodb-enterprise
# Options for MONGO_REPO: repo.mongodb.org OR repo.mongodb.com
# Example: docker build --build-arg MONGO_PACKAGE=mongodb-enterprise --build-arg MONGO_REPO=repo.mongodb.com .
-ARG MONGO_PACKAGE=mongodb-org
-ARG MONGO_REPO=repo.mongodb.org
+ARG MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
ENV MONGO_MAJOR 4.2
-ENV MONGO_VERSION 4.2.14
-# bashbrew-architectures:amd64 arm64v8
RUN echo "deb http://$MONGO_REPO/apt/ubuntu bionic/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list"
+# http://docs.mongodb.org/master/release-notes/4.2/
+ENV MONGO_VERSION 4.2.14
+# 05/03/2021, https://github.com/mongodb/mongo/tree/0e6db36e92d82cc81cbd40ffd607eae88dc1f09d
+
RUN set -x \
# installing "mongodb-enterprise" pulls in "tzdata" which prompts for input
&& export DEBIAN_FRONTEND=noninteractive \
diff --git a/mongo_4.2-nanoserver-1809/Dockerfile b/mongo_4.2-nanoserver-1809/Dockerfile
new file mode 100644
index 0000000..a6ff444
--- /dev/null
+++ b/mongo_4.2-nanoserver-1809/Dockerfile
@@ -0,0 +1,32 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
+FROM mcr.microsoft.com/windows/nanoserver:1809
+
+SHELL ["cmd", "/S", "/C"]
+
+# PATH isn't actually set in the Docker image, so we have to set it from within the container
+USER ContainerAdministrator
+RUN setx /m PATH "C:\mongodb\bin;%PATH%"
+USER ContainerUser
+# doing this first to share cache across versions more aggressively
+
+COPY --from=mongo:4.2.14-windowsservercore-1809 \
+ C:\\Windows\\System32\\msvcp140.dll \
+ C:\\Windows\\System32\\vcruntime140.dll \
+ C:\\Windows\\System32\\
+
+# http://docs.mongodb.org/master/release-notes/4.2/
+ENV MONGO_VERSION 4.2.14
+# 05/03/2021, https://github.com/mongodb/mongo/tree/0e6db36e92d82cc81cbd40ffd607eae88dc1f09d
+
+COPY --from=mongo:4.2.14-windowsservercore-1809 C:\\mongodb C:\\mongodb
+RUN mongo --version && mongod --version
+
+VOLUME C:\\data\\db C:\\data\\configdb
+
+EXPOSE 27017
+CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_4.2-windowsservercore-1809/Dockerfile b/mongo_4.2-windowsservercore-1809/Dockerfile
index df56759..727a117 100644
--- a/mongo_4.2-windowsservercore-1809/Dockerfile
+++ b/mongo_4.2-windowsservercore-1809/Dockerfile
@@ -1,8 +1,17 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:1809
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
+# http://docs.mongodb.org/master/release-notes/4.2/
ENV MONGO_VERSION 4.2.14
+# 05/03/2021, https://github.com/mongodb/mongo/tree/0e6db36e92d82cc81cbd40ffd607eae88dc1f09d
+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.14-signed.msi
ENV MONGO_DOWNLOAD_SHA256=706610f96ae74963d5348aafe34f976e7b1c02ef1a9f3596862e1e5ba3437e76
@@ -29,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools,MonitoringTools,ImportExportTools' \
+ 'ADDLOCAL=Client,ImportExportTools,MiscellaneousTools,MonitoringTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +60,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_4.2-windowsservercore-ltsc2016/Dockerfile b/mongo_4.2-windowsservercore-ltsc2016/Dockerfile
index a7ac6fa..c682efe 100644
--- a/mongo_4.2-windowsservercore-ltsc2016/Dockerfile
+++ b/mongo_4.2-windowsservercore-ltsc2016/Dockerfile
@@ -1,8 +1,17 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
+# http://docs.mongodb.org/master/release-notes/4.2/
ENV MONGO_VERSION 4.2.14
+# 05/03/2021, https://github.com/mongodb/mongo/tree/0e6db36e92d82cc81cbd40ffd607eae88dc1f09d
+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.14-signed.msi
ENV MONGO_DOWNLOAD_SHA256=706610f96ae74963d5348aafe34f976e7b1c02ef1a9f3596862e1e5ba3437e76
@@ -29,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools,MonitoringTools,ImportExportTools' \
+ 'ADDLOCAL=Client,ImportExportTools,MiscellaneousTools,MonitoringTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +60,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_4.2-bionic/Dockerfile b/mongo_4.9-rc-focal/Dockerfile
similarity index 83%
copy from mongo_4.2-bionic/Dockerfile
copy to mongo_4.9-rc-focal/Dockerfile
index c766054..a688a0c 100644
--- a/mongo_4.2-bionic/Dockerfile
+++ b/mongo_4.9-rc-focal/Dockerfile
@@ -1,4 +1,10 @@
-FROM ubuntu:bionic
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
+FROM ubuntu:focal
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN groupadd -r mongodb && useradd -r -g mongodb mongodb
@@ -59,13 +65,13 @@ RUN set -ex; \
RUN mkdir /docker-entrypoint-initdb.d
-ENV GPG_KEYS E162F504A20CDF15827F718D4B7C549A058F8B6B
RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
- for key in $GPG_KEYS; do \
+ set -- '20691EEC35216C63CAF66CE1656408E390CFB1F5' '99DC630F00A2F97F27C6A02A253612A09571B484' '9DA31620334BD75D9DCB49F368818C72E52529D4' 'E162F504A20CDF15827F718D4B7C549A058F8B6B'; \
+ for key; do \
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
done; \
- gpg --batch --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
+ gpg --batch --export "$@" > /etc/apt/trusted.gpg.d/mongodb.gpg; \
command -v gpgconf && gpgconf --kill all || :; \
rm -r "$GNUPGHOME"; \
apt-key list
@@ -74,14 +80,14 @@ RUN set -ex; \
# Options for MONGO_PACKAGE: mongodb-org OR mongodb-enterprise
# Options for MONGO_REPO: repo.mongodb.org OR repo.mongodb.com
# Example: docker build --build-arg MONGO_PACKAGE=mongodb-enterprise --build-arg MONGO_REPO=repo.mongodb.com .
-ARG MONGO_PACKAGE=mongodb-org
-ARG MONGO_REPO=repo.mongodb.org
+ARG MONGO_PACKAGE=mongodb-org-unstable MONGO_REPO=repo.mongodb.org
ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
-ENV MONGO_MAJOR 4.2
-ENV MONGO_VERSION 4.2.14
-# bashbrew-architectures:amd64 arm64v8
-RUN echo "deb http://$MONGO_REPO/apt/ubuntu bionic/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list"
+ENV MONGO_MAJOR testing
+RUN echo "deb http://$MONGO_REPO/apt/ubuntu focal/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list"
+
+ENV MONGO_VERSION 4.9.0~rc1
+# 05/03/2021, https://github.com/mongodb/mongo/tree/a58447691485ec04d39d7b9d42dc28cd6900da6c
RUN set -x \
# installing "mongodb-enterprise" pulls in "tzdata" which prompts for input
diff --git a/mongo_4.0-xenial/docker-entrypoint.sh b/mongo_4.9-rc-focal/docker-entrypoint.sh
similarity index 100%
copy from mongo_4.0-xenial/docker-entrypoint.sh
copy to mongo_4.9-rc-focal/docker-entrypoint.sh
diff --git a/mongo_4.9-rc-nanoserver-1809/Dockerfile b/mongo_4.9-rc-nanoserver-1809/Dockerfile
new file mode 100644
index 0000000..1a0534d
--- /dev/null
+++ b/mongo_4.9-rc-nanoserver-1809/Dockerfile
@@ -0,0 +1,32 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
+FROM mcr.microsoft.com/windows/nanoserver:1809
+
+SHELL ["cmd", "/S", "/C"]
+
+# PATH isn't actually set in the Docker image, so we have to set it from within the container
+USER ContainerAdministrator
+RUN setx /m PATH "C:\mongodb\bin;%PATH%"
+USER ContainerUser
+# doing this first to share cache across versions more aggressively
+
+COPY --from=mongo:4.9.0-rc1-windowsservercore-1809 \
+ C:\\Windows\\System32\\msvcp140.dll \
+ C:\\Windows\\System32\\vcruntime140.dll \
+ C:\\Windows\\System32\\vcruntime140_1.dll \
+ C:\\Windows\\System32\\
+
+ENV MONGO_VERSION 4.9.0-rc1
+# 05/03/2021, https://github.com/mongodb/mongo/tree/a58447691485ec04d39d7b9d42dc28cd6900da6c
+
+COPY --from=mongo:4.9.0-rc1-windowsservercore-1809 C:\\mongodb C:\\mongodb
+RUN mongo --version && mongod --version
+
+VOLUME C:\\data\\db C:\\data\\configdb
+
+EXPOSE 27017
+CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_windowsservercore-1809/Dockerfile b/mongo_4.9-rc-windowsservercore-1809/Dockerfile
similarity index 82%
copy from mongo_windowsservercore-1809/Dockerfile
copy to mongo_4.9-rc-windowsservercore-1809/Dockerfile
index f1bd138..e79799c 100644
--- a/mongo_windowsservercore-1809/Dockerfile
+++ b/mongo_4.9-rc-windowsservercore-1809/Dockerfile
@@ -1,10 +1,18 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:1809
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
-ENV MONGO_VERSION 4.4.6
-ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.6-signed.msi
-ENV MONGO_DOWNLOAD_SHA256=ede50e8f8d8c9d23a8ca2cc1c96cdb9bcc1f617930e8bd1d46f21d95d0b555f8
+ENV MONGO_VERSION 4.9.0-rc1
+# 05/03/2021, https://github.com/mongodb/mongo/tree/a58447691485ec04d39d7b9d42dc28cd6900da6c
+
+ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.9.0-rc1-signed.msi
+ENV MONGO_DOWNLOAD_SHA256=67c8bf03590c7ecbaf793db559f7f7fea44eb0481a2c4e486756ee4ea9ed575c
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
@@ -29,7 +37,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools' \
+ 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +59,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_windowsservercore-ltsc2016/Dockerfile b/mongo_4.9-rc-windowsservercore-ltsc2016/Dockerfile
similarity index 82%
copy from mongo_windowsservercore-ltsc2016/Dockerfile
copy to mongo_4.9-rc-windowsservercore-ltsc2016/Dockerfile
index c672e8e..ecd4aec 100644
--- a/mongo_windowsservercore-ltsc2016/Dockerfile
+++ b/mongo_4.9-rc-windowsservercore-ltsc2016/Dockerfile
@@ -1,10 +1,18 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
-ENV MONGO_VERSION 4.4.6
-ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.6-signed.msi
-ENV MONGO_DOWNLOAD_SHA256=ede50e8f8d8c9d23a8ca2cc1c96cdb9bcc1f617930e8bd1d46f21d95d0b555f8
+ENV MONGO_VERSION 4.9.0-rc1
+# 05/03/2021, https://github.com/mongodb/mongo/tree/a58447691485ec04d39d7b9d42dc28cd6900da6c
+
+ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.9.0-rc1-signed.msi
+ENV MONGO_DOWNLOAD_SHA256=67c8bf03590c7ecbaf793db559f7f7fea44eb0481a2c4e486756ee4ea9ed575c
RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
@@ -29,7 +37,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools' \
+ 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +59,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_bionic/Dockerfile b/mongo_bionic/Dockerfile
index daa59f6..569211c 100644
--- a/mongo_bionic/Dockerfile
+++ b/mongo_bionic/Dockerfile
@@ -1,3 +1,9 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM ubuntu:bionic
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
@@ -59,13 +65,13 @@ RUN set -ex; \
RUN mkdir /docker-entrypoint-initdb.d
-ENV GPG_KEYS 20691EEC35216C63CAF66CE1656408E390CFB1F5
RUN set -ex; \
export GNUPGHOME="$(mktemp -d)"; \
- for key in $GPG_KEYS; do \
+ set -- '20691EEC35216C63CAF66CE1656408E390CFB1F5'; \
+ for key; do \
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
done; \
- gpg --batch --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
+ gpg --batch --export "$@" > /etc/apt/trusted.gpg.d/mongodb.gpg; \
command -v gpgconf && gpgconf --kill all || :; \
rm -r "$GNUPGHOME"; \
apt-key list
@@ -74,15 +80,16 @@ RUN set -ex; \
# Options for MONGO_PACKAGE: mongodb-org OR mongodb-enterprise
# Options for MONGO_REPO: repo.mongodb.org OR repo.mongodb.com
# Example: docker build --build-arg MONGO_PACKAGE=mongodb-enterprise --build-arg MONGO_REPO=repo.mongodb.com .
-ARG MONGO_PACKAGE=mongodb-org
-ARG MONGO_REPO=repo.mongodb.org
+ARG MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
ENV MONGO_PACKAGE=${MONGO_PACKAGE} MONGO_REPO=${MONGO_REPO}
ENV MONGO_MAJOR 4.4
-ENV MONGO_VERSION 4.4.6
-# bashbrew-architectures:amd64 arm64v8 s390x
RUN echo "deb http://$MONGO_REPO/apt/ubuntu bionic/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list"
+# http://docs.mongodb.org/master/release-notes/4.4/
+ENV MONGO_VERSION 4.4.6
+# 05/07/2021, https://github.com/mongodb/mongo/tree/72e66213c2c3eab37d9358d5e78ad7f5c1d0d0d7
+
RUN set -x \
# installing "mongodb-enterprise" pulls in "tzdata" which prompts for input
&& export DEBIAN_FRONTEND=noninteractive \
diff --git a/mongo_nanoserver-1809/Dockerfile b/mongo_nanoserver-1809/Dockerfile
new file mode 100644
index 0000000..ab429ad
--- /dev/null
+++ b/mongo_nanoserver-1809/Dockerfile
@@ -0,0 +1,33 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
+FROM mcr.microsoft.com/windows/nanoserver:1809
+
+SHELL ["cmd", "/S", "/C"]
+
+# PATH isn't actually set in the Docker image, so we have to set it from within the container
+USER ContainerAdministrator
+RUN setx /m PATH "C:\mongodb\bin;%PATH%"
+USER ContainerUser
+# doing this first to share cache across versions more aggressively
+
+COPY --from=mongo:4.4.6-windowsservercore-1809 \
+ C:\\Windows\\System32\\msvcp140.dll \
+ C:\\Windows\\System32\\vcruntime140.dll \
+ C:\\Windows\\System32\\vcruntime140_1.dll \
+ C:\\Windows\\System32\\
+
+# http://docs.mongodb.org/master/release-notes/4.4/
+ENV MONGO_VERSION 4.4.6
+# 05/07/2021, https://github.com/mongodb/mongo/tree/72e66213c2c3eab37d9358d5e78ad7f5c1d0d0d7
+
+COPY --from=mongo:4.4.6-windowsservercore-1809 C:\\mongodb C:\\mongodb
+RUN mongo --version && mongod --version
+
+VOLUME C:\\data\\db C:\\data\\configdb
+
+EXPOSE 27017
+CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_windowsservercore-1809/Dockerfile b/mongo_windowsservercore-1809/Dockerfile
index f1bd138..c362bda 100644
--- a/mongo_windowsservercore-1809/Dockerfile
+++ b/mongo_windowsservercore-1809/Dockerfile
@@ -1,8 +1,17 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:1809
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
+# http://docs.mongodb.org/master/release-notes/4.4/
ENV MONGO_VERSION 4.4.6
+# 05/07/2021, https://github.com/mongodb/mongo/tree/72e66213c2c3eab37d9358d5e78ad7f5c1d0d0d7
+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.6-signed.msi
ENV MONGO_DOWNLOAD_SHA256=ede50e8f8d8c9d23a8ca2cc1c96cdb9bcc1f617930e8bd1d46f21d95d0b555f8
@@ -29,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools' \
+ 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +60,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
diff --git a/mongo_windowsservercore-ltsc2016/Dockerfile b/mongo_windowsservercore-ltsc2016/Dockerfile
index c672e8e..9e29bc3 100644
--- a/mongo_windowsservercore-ltsc2016/Dockerfile
+++ b/mongo_windowsservercore-ltsc2016/Dockerfile
@@ -1,8 +1,17 @@
+#
+# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
+#
+# PLEASE DO NOT EDIT IT DIRECTLY.
+#
+
FROM mcr.microsoft.com/windows/servercore:ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
+# http://docs.mongodb.org/master/release-notes/4.4/
ENV MONGO_VERSION 4.4.6
+# 05/07/2021, https://github.com/mongodb/mongo/tree/72e66213c2c3eab37d9358d5e78ad7f5c1d0d0d7
+
ENV MONGO_DOWNLOAD_URL https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.6-signed.msi
ENV MONGO_DOWNLOAD_SHA256=ede50e8f8d8c9d23a8ca2cc1c96cdb9bcc1f617930e8bd1d46f21d95d0b555f8
@@ -29,7 +38,7 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
'/l*v', 'install.log', \
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#run-the-windows-installer-from-the-windows-command-interpreter
'INSTALLLOCATION=C:\mongodb', \
- 'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools' \
+ 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' \
); \
if (-Not (Test-Path C:\mongodb\bin\mongo.exe -PathType Leaf)) { \
Write-Host 'Installer failed!'; \
@@ -51,9 +60,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); \
\
Write-Host 'Complete.';
-VOLUME C:\\data\\db C:\\data\\configdb
-
# TODO docker-entrypoint.ps1 ? (for "docker run <image> --flag --flag --flag")
+VOLUME C:\\data\\db C:\\data\\configdb
+
EXPOSE 27017
CMD ["mongod", "--bind_ip_all"]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes: