[WIP] Add Dockerfile docker-compose file and bootstrap script#245
Open
jimmykarily wants to merge 3 commits intomasterfrom
Open
[WIP] Add Dockerfile docker-compose file and bootstrap script#245jimmykarily wants to merge 3 commits intomasterfrom
jimmykarily wants to merge 3 commits intomasterfrom
Conversation
…r script This helper script can be used to run commands inside the container which runs the rails server. Example usage: bin/drun bin/rails c # Starts the rails console inside the container bin/drun bin/rake db:migrate # Runs migrations bin/drun bash # Starts a bash shell inside the container
3e077d7 to
9c84927
Compare
9c84927 to
565bea6
Compare
| gem install bundler | ||
| bundle check || bundle install --deployment --path /vendor/bundle --jobs 2 --retry 2 | ||
| rake db:create | ||
| rake db:reset |
Member
There was a problem hiding this comment.
Does this mean development data loss upon each container start?
Member
Author
There was a problem hiding this comment.
This is true. Maybe we should skip the database setup and let the developer/user do this manually. What do you think?
ispyropoulos
approved these changes
Apr 23, 2017
Member
Author
|
I'm still trying to fix the failing tests. They are not relevant to this branch but I will wait until I get them green before we merge anything. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is meant to make development of this project easier by setting up all needed components using docker and docker-compose. @vasikoro maybe you want to give it a try and if this works for you we can merge this.