-
Notifications
You must be signed in to change notification settings - Fork 107
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
Docker improvements #28
Conversation
08f9f57
to
de50a62
Compare
No breaking changes with current iridakos/duckrails container. * Update Dockerfile to use official ruby image instead of rvm * Use local repo instead of git cloning * Add .dockerignore to ignore files not of value in container * Add docker-entrypoint.sh to check SECRET_KEY_BASE and set if needed * Add puma config with preload_app
de50a62
to
2ff63a0
Compare
Great work @Firefishy! I will check it and merge it a.s.a.p. Thank you very much for the contribution 👍 |
I have a quick fix on the |
Added the correct gem versions for pg and mysql2 rails compatibility. |
I have another PR for adding ENV support to |
Whatever you prefer! By the way, I haven't looked at the changes yet. My only concern is not to make the process of starting the app hard for the users since it is a development tool. I wouldn't like to enforce them setting env variables but give it as an option. I will come back to you in a couple of days. Thanks for your help! |
I'll keep further changes for another PR. This PR is already big enough. ;-) |
@Firefishy excellent work! Thank you very much for the contribution! Note: |
But it means if someone wants to use a postgres database they'll need to manually patch the |
If someone wants to run the application natively, he/she will have to install files on their system for these gems to install properly and that's something I don't want to happen. DuckRails is a development tool and in most (if not all) cases I would prefer copying a new Gemfile (ex |
Would you consider just the |
I removed the gemfile entries because I know both me and my colleagues don't have the Do you have any objections on using another
|
Yes, using another
I can add docs about running: |
In my mind, we have to decide whether we will demand from users to install an external dependency that they won't even use (since DuckRails defaults to I totally understand your point but I am not convinced that this dependency should be introduced as a default for the tool. I've been using DuckRails heavily and I don't believe that the scenario in which
Are you referring to this? Important note: If you change the database adapter, make sure you include the appropriate gem in your Gemfile (ex. for mysql gem 'mysql2') and "rebundle" to fetch & install the new gem. |
Update Dockerfile and remove hardcoded SECRET_KEY_BASE
No breaking changes with current
iridakos/duckrails
container.