Skip to content
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

Adjust "ADDLOCAL" to disable the Windows service #438

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

tianon
Copy link
Member

@tianon tianon commented Nov 30, 2020

Closes #426

Dockerfile-windows.template Outdated Show resolved Hide resolved
Also, update Dockerfile to provide installer logs when the installer fails in an obvious way.
@tianon tianon force-pushed the disable-windows-service branch from b9687dd to 69ff4ee Compare November 30, 2020 21:08
'INSTALLLOCATION=C:\mongodb', \
'ADDLOCAL=all' \
'ADDLOCAL=ServerNoService,Client,Router,MiscellaneousTools' \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a TODO for later, we should probably consider installing the "tools" / "shell" in 4.4+ (now that they're all separate), like we do in the Linux images.

@tianon tianon merged commit 1d8e0f6 into docker-library:master Dec 2, 2020
@tianon tianon deleted the disable-windows-service branch December 2, 2020 00:29
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Dec 2, 2020
Changes:

- docker-library/mongo@1d8e0f6: Merge pull request docker-library/mongo#438 from infosiftr/disable-windows-service
- docker-library/mongo@69ff4ee: Adjust "ADDLOCAL" to disable the Windows service
@tianon
Copy link
Member Author

tianon commented Dec 4, 2020

It turns out this was also making our layer much larger, presumably because it was starting the MongoDB service, which would then initialize the default data directory, and probably decided that preallocating the database files was going to be "faster", so our "install MongoDB" layer from this change went from ~1.99GB down to ~804MB! 🥂 😇 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Two mongod.exe running in 4.4.1-windowsservercore-1809 docker image
1 participant