-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
|
||
# Use a custom build script instead of messy chained together RUN | ||
# or multiple RUN statements that add bloat to the image | ||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's supposed to be a comment here?
#!/bin/bash | ||
|
||
# Start mongo | ||
/tmp/entrypoint.sh mongod& |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious how Docker handles this, with the mongod
processes it put into the background.
- Do
mongod
logs get written to stdout/stderr and get picked up as Docker logs as when running in the foreground? - Does the container stop when the
mongod
process dies?
Do mongod
logs get logged to the console appropriately? I know there can be issues when you put a process into the background.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, nope, and nope. This approach is prettttty hacky and in fact needs to be replaced (before a merge, actually).
Cool. Yeah, this looks better. Merging... |
Changes to both dockerfiles herein. Main changes: