Namespace
library
Image / Tag
mongo:5.0.28-rc0
Content Digest
sha256:451c68eada886f9abb617dc77c8b1b3cbd75803c70a1b2c1aac44f25d36d582e
Details
Created

2024-07-02 22:01:16 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.28~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:ee387bdfd2f4a75de7f503efc07f0ffe70fe477f80b8976d94afd8c3332a28a6 - 0.0% (1.74 KB)

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

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

[#004] sha256:7f098426724e0b330ebef9e886f803b3348eefce2b5d0fe43455da6a2fb812a1 - 0.0% (114 Bytes)

[#005] sha256:d3282dacf3b099f486519caabbf867c54d15f1f5ac4c78adce4945fbfd8f12d8 - 0.0% (262 Bytes)

[#006] sha256:e25bfdf89d569d802d3ee61ec98d8cf9323b11d1a2d10c41d489230f02af2b46 - 0.0% (262 Bytes)

[#007] sha256:127cbc8bb9c373703fec7ed1ade511ab388562cb747549e32ee31839207a6ab5 - 88.32% (228 MB)

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


History
2024-06-03 17:10:41 UTC

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

2024-06-03 17:10:41 UTC

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

2024-06-03 17:10:41 UTC

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

2024-06-03 17:10:41 UTC

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

2024-06-03 17:10:43 UTC

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

2024-06-03 17:10:43 UTC

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

2024-07-02 22:01:16 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-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=testing

2024-07-02 22:01:16 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-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=5.0.28~rc0

2024-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2024-07-10 17:11:07 UTC

Size

2.29 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

e8cf0bbb30839f4fdbff1dc5ff95ccd1a0e4a4029c1590b04bd070a805f464d3

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

5.0.28-rc0


Layers

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

[#001] sha256:5f0206d135152eb909f50159d6ca348a5aead199afacbafc000b770c1b0720f6 - 30.61% (716 MB)

[#002] sha256:2372732e558d2a0378619122640833df2a2df07169346c4b68f944e0967476bb - 0.0% (1.25 KB)

[#003] sha256:a363568c5a9935d95d58f8cdc05620ebfae891a12ab82b1137ce7e9d9df751bb - 0.0% (1.25 KB)

[#004] sha256:e0057129610f52db304468141b41f52ff6eb56683d9c19a5c94075dd93a0900e - 0.0% (1.26 KB)

[#005] sha256:92e12387cf5f6ef74d547a7488745a2200e94ce83e5235d2228ba2ed0ab1e260 - 0.0% (1.25 KB)

[#006] sha256:ca1d8f738cf595d123598026b65d99c2ab09f8bd5057aeb9e0672634f71f36a6 - 12.8% (299 MB)

[#007] sha256:6fe1f05cb9408f960837d0c3f37bb2cfec8c6cd20663fbb9a1fe8c022b30c988 - 0.0% (1.26 KB)

[#008] sha256:4c04f630b4adff6e62cadb25a0f1593c92895f145d9ae117b81bb6eef3fde043 - 0.0% (1.25 KB)

[#009] sha256:7a54d3dbd8f9f09a94b46d75b818b5baa1dacb3e21207706630f8cc678128600 - 0.0% (1.25 KB)


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

Apply image 10.0.20348.1787

2024-07-03 10:07:02 UTC

Install update 10.0.20348.2582

2024-07-10 17:09:55 UTC

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

2024-07-10 17:09:56 UTC

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

2024-07-10 17:09:57 UTC

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

2024-07-10 17:09:58 UTC

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

2024-07-10 17:11:01 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-07-10 17:11:04 UTC

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

2024-07-10 17:11:06 UTC

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

2024-07-10 17:11:07 UTC

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

Details
Created

2024-07-10 17:14:56 UTC

Size

2.38 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

e8cf0bbb30839f4fdbff1dc5ff95ccd1a0e4a4029c1590b04bd070a805f464d3

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

5.0.28-rc0


Layers

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

[#001] sha256:b5f98e7fe87492b83d7775a348ae0c94412b638ab5bba1a80b03c3a547708acd - 23.03% (561 MB)

[#002] sha256:499a78251ca3cc8ec432115add954b6d4c90b8a5b368d17bc3b85223b2ec55a1 - 0.0% (1.26 KB)

[#003] sha256:7e8a57486f5749149bcdff03ff08c04fd40b0518d7508dcaaafd31d38612a0f8 - 0.0% (1.27 KB)

[#004] sha256:3d6601ddd2724c6047a2f758e42b0c573541d66aeac8d75c963b5bf3bdbda3f9 - 0.0% (1.29 KB)

[#005] sha256:9180e4c2433ab8ef1c20ce871c76dab8c508632bfc0476b5bc0eac4c3e3a0361 - 0.0% (1.27 KB)

[#006] sha256:295e196e90aaa6525ee0eaa41c6480165e2f212dbc629ee56b5f49bfb5411e91 - 12.31% (300 MB)

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

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

[#009] sha256:196eded29dfc962e56abad0ea02a59ec599351a42c8a8e226ba9316370a6496e - 0.0% (1.27 KB)


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

Apply image 10.0.17763.4499

2024-07-03 00:34:32 UTC

Install update 10.0.17763.6054

2024-07-10 17:12:59 UTC

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

2024-07-10 17:13:00 UTC

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

2024-07-10 17:13:01 UTC

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

2024-07-10 17:13:02 UTC

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

2024-07-10 17:14:52 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-07-10 17:14:54 UTC

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

2024-07-10 17:14:55 UTC

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

2024-07-10 17:14:56 UTC

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

Details
Created

2024-07-02 22:01:16 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.28~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:a06f59af603736febfcbec79099e8c9616aac842ce2fb4f45a4202fda0148f22 - 0.0% (1.75 KB)

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

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

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

[#005] sha256:60aea255ee8b68dc8a44bf5a1f62d282c6f2bc3e1585f9741dc061a90a17055b - 0.0% (262 Bytes)

[#006] sha256:8397a308bd856b397cbc5f810612cc433562d020d0bcc0e1ead261f85c95b816 - 0.0% (261 Bytes)

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

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


History
2024-06-03 16:52:57 UTC

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

2024-06-03 16:52:57 UTC

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

2024-06-03 16:52:57 UTC

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

2024-06-03 16:52:57 UTC

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

2024-06-03 16:52:59 UTC

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

2024-06-03 16:52:59 UTC

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

2024-07-02 22:01:16 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-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=testing

2024-07-02 22:01:16 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-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=5.0.28~rc0

2024-07-02 22:01:16 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-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

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

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-07-02 22:01:16 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-07-02 22:01:16 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