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

Deploy using Dockerfile instead of buildpack #598

Merged
merged 1 commit into from
Mar 3, 2024
Merged

Conversation

dentarg
Copy link
Member

@dentarg dentarg commented Mar 3, 2024

Somewhat based on the Dockfile template in Rails:
https://github.com/rails/rails/blob/4f0f3448cde85ff3d1485366231650258ea62b71/railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Needed after heroku/heroku-buildpack-ruby#1428 because deploys failed like this:

...
Machine started in 390ms
Activating bundler (>= 0.a) failed:
Permission denied @ rb_sysopen - /workspace/vendor/bundle/ruby/3.2.0/specifications/bundler-2.5.6.gemspec
To install the version of bundler this project requires, run `gem install bundler -v '>= 0.a'`

Somewhat based on the Dockfile template in Rails:
https://github.com/rails/rails/blob/4f0f3448cde85ff3d1485366231650258ea62b71/railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Needed after heroku/heroku-buildpack-ruby#1428
because deploys failed like this:

    ...
    Machine started in 390ms
    Activating bundler (>= 0.a) failed:
    Permission denied @ rb_sysopen - /workspace/vendor/bundle/ruby/3.2.0/specifications/bundler-2.5.6.gemspec
    To install the version of bundler this project requires, run `gem install bundler -v '>= 0.a'`
@dentarg dentarg merged commit 989bc59 into main Mar 3, 2024
7 checks passed
@dentarg dentarg deleted the docker-deploy branch March 3, 2024 19:24
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.

1 participant