Namespace
library
Image / Tag
mongo:4.2-windowsservercore-1809
Content Digest
sha256:0279e9bc7b531958945feb9d02090a281e4f76f4166edeb130ea43e2211b8acc
Details
Created

2023-06-14 19:46:22 UTC

Size

1.8 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

b41f2e65ebf109020327977eb7133e2ca3f3606f409935cfe817e1f4dab7f2dd

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.24-signed.msi

MONGO_VERSION

4.2.24


Layers

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

[#001] sha256:3929a070e5d6b9cb95587cf41492d8ef77aaa7e9f90fa3cd1b32619fae5debc2 - 0.0% (1.36 KB)

[#002] sha256:236c040d9fdd135a5283a0ebd6f28faadbd113ad0843448111b5c8e295ee1b8d - 0.0% (1.38 KB)

[#003] sha256:8cf793a6009b5bd30b0ab6121242b2e34a14455c57771f60a33ae65ee7eb1f50 - 0.0% (1.38 KB)

[#004] sha256:7a21ddbde8235d77c093509227f3f7f1dd5b2203734751df51497ee71bc32ee1 - 0.0% (1.38 KB)

[#005] sha256:b73f02bc64786ab2820ec5011b8d02b6759ec27fefc9aff7e57cb545f6ddcdee - 14.83% (274 MB)

[#006] sha256:5cb4a8c3127ca5647d2bae03faf27a137a615d532cbbc9f59c25e0421562779b - 0.0% (1.39 KB)

[#007] sha256:32bf3af06dfac17357374857f4716ce755d621b734a652e6a05ea905490fba75 - 0.0% (1.4 KB)

[#008] sha256:17af7b07c995be3ce5d2d2ac143782f7373c9572457071a3f27ae55e858817ba - 0.0% (1.38 KB)


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

Apply image 10.0.17763.4499

2023-06-14 19:18:57 UTC

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

2023-06-14 19:44:43 UTC

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

2023-06-14 19:44:44 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.24-signed.msi

2023-06-14 19:44:45 UTC

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

2023-06-14 19:46:18 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,ImportExportTools,MiscellaneousTools,MonitoringTools,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.';

2023-06-14 19:46:20 UTC

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

2023-06-14 19:46:21 UTC

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

2023-06-14 19:46:22 UTC

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