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

Adding docker-compose setup. #5

Merged
merged 1 commit into from
Mar 8, 2016
Merged

Conversation

mschulkind
Copy link
Contributor

I found the current setup process and container management a bit overwhelming. You'll probably want to reorganize this PR a bit, but with this, you can just clone this repo and then:

sudo pip install docker-compose
docker-compose up

Then just fire up postman (or the soon to be ruby client) and you're good to go.

This of course also assumes that you publish the omh-postgres image.

@emersonf
Copy link
Member

I started looking into it this morning. 👍 I'll try to get to this by EOW.

@emersonf
Copy link
Member

I was really hoping to find a way to run the script from Compose itself, instead of creating a database image, something along these lines. I'm guessing people don't want their instances polluted with test data. Thoughts?

PS. The develop branch is more current.

@mschulkind
Copy link
Contributor Author

I couldn't figure it out either with compose. I think your best options are:

  1. Do nothing except what this PR does. I think it's very unlikely that
    anybody will send this into production using the DB containers. They likely
    won't even use the OMH containers.
  2. Have the OMH containers init the database on startup if it hasn't
    already been created.

On Thu, May 21, 2015 at 9:45 AM, Emerson Farrugia notifications@github.com
wrote:

I was really hoping to find a way to run the script from Compose itself,
instead of creating a database image, something along these lines
docker/compose#1341. I'm guessing people
don't want their instances polluted with test data. Thoughts?

PS. The develop branch is more current.


Reply to this email directly or view it on GitHub
#5 (comment).

@emersonf
Copy link
Member

Merged into a25f819 on the feature/support-docker-compose branch, but I still need to add documentation. It's also set up to use build instead of image for quick development feedback. I'll add a binary-only compose file when I add docs.

@emersonf emersonf closed this May 25, 2015
@emersonf emersonf reopened this May 25, 2015
@emersonf
Copy link
Member

That red badge is misleading since it's been manually merged. I reopened it and will check if GitHub closes the pull request once the feature and develop get released.

@emersonf emersonf merged commit abd9b0b into openmhealth:master Mar 8, 2016
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.

2 participants