Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Streamline dockerfiles #102

Merged
merged 8 commits into from
Oct 7, 2015
Merged

Streamline dockerfiles #102

merged 8 commits into from
Oct 7, 2015

Conversation

wpears
Copy link
Member

@wpears wpears commented Oct 6, 2015

Changes to both dockerfiles herein. Main changes:

  • api container no longer builds node from source
  • mongo container loads data on startup (though the context needed to be expanded to allow run the reloading script


# Use a custom build script instead of messy chained together RUN
# or multiple RUN statements that add bloat to the image
#
Copy link
Member

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&
Copy link
Member

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.

Copy link
Member Author

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).

@hkeeler
Copy link
Member

hkeeler commented Oct 7, 2015

Cool. Yeah, this looks better. Merging...

hkeeler added a commit that referenced this pull request Oct 7, 2015
@hkeeler hkeeler merged commit 1aefd36 into master Oct 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants