Namespace
library
Image / Tag
mongo:5.0.27-rc0
Content Digest
sha256:3b93f69d2d90390557c71e715ebdee6a4edbddfac7273ce563456e117f0a700e
Details
Created

2024-05-29 16:01:17 UTC

Size

259 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • org.opencontainers.image.version
    20.04

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

testing

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

5.0.27~rc0

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Layers

[#000] sha256:9ea8908f47652b59b8055316d9c0e16b365e2b5cee15d3efcb79e2957e3e7cad - 10.14% (26.2 MB)

[#001] sha256:7cfe9c06316d4da98c90e4af59e891d38664c52d662e1c947579a1a7ee4f2ba6 - 0.0% (1.74 KB)

[#002] sha256:c885a53de6a2cc65075abe8b100f83339d4434969147fff43c49840c88558977 - 1.13% (2.93 MB)

[#003] sha256:dcb4c45a1a084ca8a3a586e2b961e483cdc35e7b6833e2e48a188a09e70dfe2c - 0.4% (1.04 MB)

[#004] sha256:e07483f8c0edc88b901f7d17c07e7648624ec7f40fe278b190c04c9722f8622d - 0.0% (116 Bytes)

[#005] sha256:8c5526dbe5df80cc52a53d4b09a93c21c5edb61c547ee351416fcc683fb30a82 - 0.0% (259 Bytes)

[#006] sha256:56f0acd756bd3a1d513f90fb5d5c9976825dec61731899330584eef16b0c98aa - 0.0% (259 Bytes)

[#007] sha256:15972e57078c2ae2dc345204597a5196658132cdfde2b5daf1daf0f5fc4af9f7 - 88.32% (228 MB)

[#008] sha256:e1280b2766dc607b7be32338fc424e5117052aa39c77ac3e4b1e803c37391618 - 0.0% (4.88 KB)


History
2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) ARG RELEASE

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.version=20.04

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) ADD file:e7cff353f027ecf0a2cb1cdd51714de3b083a11a0d965f104489f9a7e6925056 in /

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) CMD ["/bin/bash"]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd --gid 999 --system mongodb; useradd --uid 999 --system --gid mongodb --home-dir /data/db mongodb; mkdir -p /data/db /data/configdb; chown -R mongodb:mongodb /data/db /data/configdb # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates jq numactl procps ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg wget ; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; mkdir -p /opt/js-yaml/; wget -O /opt/js-yaml/js-yaml.js "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/dist/js-yaml.js"; wget -O /opt/js-yaml/package.json "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/package.json"; ln -s /opt/js-yaml/js-yaml.js /js-yaml.js; export GNUPGHOME="$(mktemp -d)"; wget -O KEYS 'https://pgp.mongodb.com/server-dev.asc' 'https://pgp.mongodb.com/server-5.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '28DE23AF08040FB24C33F36381B0EBBBADCEA95C' 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11' > /etc/apt/keyrings/mongodb.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" KEYS; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=testing

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu focal/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu focal/${MONGO_PACKAGE%-unstable}/5.0 multiverse" | tee "/etc/apt/sources.list.d/mongodb-5.0.list" # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=5.0.27~rc0

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c set -x && export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ${MONGO_PACKAGE}=$MONGO_VERSION ${MONGO_PACKAGE}-server=$MONGO_VERSION ${MONGO_PACKAGE}-shell=$MONGO_VERSION ${MONGO_PACKAGE}-mongos=$MONGO_VERSION ${MONGO_PACKAGE}-tools=$MONGO_VERSION && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2024-05-29 22:04:00 UTC

Size

2.26 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

c16328896733bdef6b9e65ee3d4b33393bd4fec49904de911fecd2499288d5a2

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.27-rc0-signed.msi

MONGO_VERSION

5.0.27-rc0


Layers

[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 57.25% (1.29 GB)

[#001] sha256:ba03114511317f14392dd2ac806678d1f79c73a8a7e0bc64013540e54c22020f - 29.85% (691 MB)

[#002] sha256:02177f9481cd30405459eee3f1375adbf52be26cf77c1dd7e41ef770ac987806 - 0.0% (1.27 KB)

[#003] sha256:9e5e5b4e2c16545e55e4f10855343155650b80776523eebb66574bf494aa8d02 - 0.0% (1.27 KB)

[#004] sha256:976a3a7683a6010a49d9400f483bcbef39e3055f654fb3bdb2bb79bddeaba54f - 0.0% (1.27 KB)

[#005] sha256:18c2741a9a28fdfacf5c239aa0b3d33f3e11edde9656d56e10338e300742ccc4 - 0.0% (1.26 KB)

[#006] sha256:77f53b52c8cb7cbb0391f4c74613a5bdb37fb350c22ed4434759f5b4a342632e - 12.9% (298 MB)

[#007] sha256:1f305b62a9c14d4306f28d2351f4ab60e79ce5c37fe7756c1bd2f6190a39e5da - 0.0% (1.26 KB)

[#008] sha256:ec0d1ae50f3b98b90366f4b8c1f6164cdf0a99ed17c772983bd991ce03e8b162 - 0.0% (1.26 KB)

[#009] sha256:acc79f93aa52712dd22d72f32625c7a67f79c3e8a8ef5dd6a0cc09c713ef361f - 0.0% (1.26 KB)


History
2023-06-08 12:55:20 UTC

Apply image 10.0.20348.1787

2024-05-10 20:40:01 UTC

Install update 10.0.20348.2461

2024-05-29 22:01:14 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]

2024-05-29 22:01:14 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.27-rc0

2024-05-29 22:01:15 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.27-rc0-signed.msi

2024-05-29 22:01:16 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=c16328896733bdef6b9e65ee3d4b33393bd4fec49904de911fecd2499288d5a2

2024-05-29 22:03:58 UTC

powershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); if ($env:MONGO_DOWNLOAD_SHA256) { Write-Host ('Verifying sha256 ({0}) ...' -f $env:MONGO_DOWNLOAD_SHA256); if ((Get-FileHash mongo.msi -Algorithm sha256).Hash -ne $env:MONGO_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; }; Write-Host 'Installing ...'; Start-Process msiexec -Wait -ArgumentList @( '/i', 'mongo.msi', '/quiet', '/qn', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongo --version'; mongo --version; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2024-05-29 22:03:59 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]

2024-05-29 22:03:59 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017

2024-05-29 22:04:00 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]

Details
Created

2024-05-29 22:04:54 UTC

Size

2.32 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

c16328896733bdef6b9e65ee3d4b33393bd4fec49904de911fecd2499288d5a2

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.27-rc0-signed.msi

MONGO_VERSION

5.0.27-rc0


Layers

[#000] sha256:c9226d61d3bdbf9f09821b32f5878623b8daaa5fb4f875cb63c199f87a26d57e - 66.22% (1.54 GB)

[#001] sha256:e00cc2568ad51f25eabe6bb19ba6248a040d7622594b0d09ee77dec571d7280a - 21.23% (505 MB)

[#002] sha256:35a12b4e88ee09999db29de1c7aa4addd90e51ec874894b2eee22d7e5c863951 - 0.0% (1.29 KB)

[#003] sha256:6057ca03d9d8876a5935bd9cba61b59953d6915e7bbbc8d6d8cbd7053d5fe364 - 0.0% (1.27 KB)

[#004] sha256:6272361d81f8081883f86325f880921db11ee97e2e89debe171f075d4cf2e5d8 - 0.0% (1.27 KB)

[#005] sha256:8e51c48241b8ff9096c49323f8c09cdf66b052fc18a7d216b23c6168a479ecb0 - 0.0% (1.26 KB)

[#006] sha256:c52d665c1360cd2f3308b84db0853d551493d80725ccd4b7e0b59a6f101245ca - 12.55% (298 MB)

[#007] sha256:1dcc8397521df0d705304065e598ef15a98a1064d4ebb79b25102950910d2108 - 0.0% (1.27 KB)

[#008] sha256:860d35a35bed127ed1fa692999177018c69ff10554eb9c54d68dbb3265b26102 - 0.0% (1.26 KB)

[#009] sha256:0911d84184b150536a9ba656df2a27d42c42f183d4eb96f1eb0cc4f23fcf6b24 - 0.0% (1.27 KB)


History
2023-06-08 12:58:24 UTC

Apply image 10.0.17763.4499

2024-05-10 20:46:44 UTC

Install update 10.0.17763.5820

2024-05-29 22:01:43 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]

2024-05-29 22:01:46 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=5.0.27-rc0

2024-05-29 22:01:46 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-5.0.27-rc0-signed.msi

2024-05-29 22:01:47 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=c16328896733bdef6b9e65ee3d4b33393bd4fec49904de911fecd2499288d5a2

2024-05-29 22:04:51 UTC

powershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); if ($env:MONGO_DOWNLOAD_SHA256) { Write-Host ('Verifying sha256 ({0}) ...' -f $env:MONGO_DOWNLOAD_SHA256); if ((Get-FileHash mongo.msi -Algorithm sha256).Hash -ne $env:MONGO_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; }; Write-Host 'Installing ...'; Start-Process msiexec -Wait -ArgumentList @( '/i', 'mongo.msi', '/quiet', '/qn', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongo --version'; mongo --version; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2024-05-29 22:04:52 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]

2024-05-29 22:04:53 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017

2024-05-29 22:04:54 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]

Details
Created

2024-05-29 16:01:17 UTC

Size

252 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • org.opencontainers.image.version
    20.04

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

testing

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

5.0.27~rc0

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Layers

[#000] sha256:f02209be4ee528c246399de81af4552e52adb005a8a499815607b6b0d42746bf - 9.85% (24.8 MB)

[#001] sha256:20de50c7979928f6a2ff806f22680e1b850947be04f26ec532650e2533a5856f - 0.0% (1.74 KB)

[#002] sha256:b6f5ee07feb16ff247dd7feeaf66f29e96b390d7c169aca89ccd4136134770b2 - 1.11% (2.79 MB)

[#003] sha256:c829d1df56e6a57c3dea78b4d74750777633308b5b0bb3ba5148be636ae3a11a - 0.39% (1000 KB)

[#004] sha256:ae642d4819c4edf21e400f5ee2bfae1682958b72efc6ce45a43731908437d9a3 - 0.0% (116 Bytes)

[#005] sha256:3b6d7c0d6dd5c2f4b3c4abd601dde305a2f0ca8631cc69a5bcf6628e09c546af - 0.0% (261 Bytes)

[#006] sha256:cf1cfebd78d12b2c19c62988bf69b9e9a402d655cb3b4f4e969abaf38752453c - 0.0% (260 Bytes)

[#007] sha256:9520161ac80b38633a56d2fe90d874a0dd3dfe327d1324887910fcc5f6a61342 - 88.65% (223 MB)

[#008] sha256:75fb33bd9591cb946f4a24427d7006f816b173790c73918894f125688e44382c - 0.0% (4.88 KB)


History
2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) ARG RELEASE

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.version=20.04

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) ADD file:6d8cc056ee741f09a6c7d965d8e2027d80ed2eccbfb0312593ce52d9256db437 in /

2024-05-29 16:01:17 UTC

/bin/sh -c #(nop) CMD ["/bin/bash"]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd --gid 999 --system mongodb; useradd --uid 999 --system --gid mongodb --home-dir /data/db mongodb; mkdir -p /data/db /data/configdb; chown -R mongodb:mongodb /data/db /data/configdb # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates jq numactl procps ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg wget ; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; mkdir -p /opt/js-yaml/; wget -O /opt/js-yaml/js-yaml.js "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/dist/js-yaml.js"; wget -O /opt/js-yaml/package.json "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/package.json"; ln -s /opt/js-yaml/js-yaml.js /js-yaml.js; export GNUPGHOME="$(mktemp -d)"; wget -O KEYS 'https://pgp.mongodb.com/server-dev.asc' 'https://pgp.mongodb.com/server-5.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '28DE23AF08040FB24C33F36381B0EBBBADCEA95C' 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11' > /etc/apt/keyrings/mongodb.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" KEYS; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=testing

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu focal/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu focal/${MONGO_PACKAGE%-unstable}/5.0 multiverse" | tee "/etc/apt/sources.list.d/mongodb-5.0.list" # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=5.0.27~rc0

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c set -x && export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ${MONGO_PACKAGE}=$MONGO_VERSION ${MONGO_PACKAGE}-server=$MONGO_VERSION ${MONGO_PACKAGE}-shell=$MONGO_VERSION ${MONGO_PACKAGE}-mongos=$MONGO_VERSION ${MONGO_PACKAGE}-tools=$MONGO_VERSION && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-05-29 16:01:17 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete