Skip to content

Switch Heroku deployment to Ruby buildpack and isolate Docker for distribution#544

Merged
tomohiro merged 1 commit into
mainfrom
fix-heroku-container-config
Jun 8, 2026
Merged

Switch Heroku deployment to Ruby buildpack and isolate Docker for distribution#544
tomohiro merged 1 commit into
mainfrom
fix-heroku-container-config

Conversation

@tomohiro

@tomohiro tomohiro commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Background

Initially, this PR attempted to migrate the Heroku deployment to a Docker-based pipeline (container stack via heroku.yml). However, the ENTRYPOINT ["bundle"] in our Dockerfile—which is highly optimized for DockerHub distribution—conflicted with Heroku's internal container runtime wrapper (/bin/sh -c), causing startup crashes.

Solution

To keep the Dockerfile clean and pristine for future DockerHub/GHCR distribution without dirtying it with Heroku-specific workarounds, we changed our strategy to fall back to Heroku's standard Ruby Buildpack (heroku-26).

Changes

  • .devcontainer/devcontainer.json: Added the docker-in-docker feature to support local Docker testing within Codespaces.
  • Procfile: Re-introduced to explicitly define the web process command (bundle exec rackup) for the Heroku Buildpack.
  • heroku.yml: Deleted, as we are no longer using Manifest-based Docker deploys on Heroku.
  • app.json: Kept "stack": "heroku-26" to leverage the latest standard Heroku stack.

Testing

  • Verified that the Heroku Review App builds successfully using the Ruby Buildpack and launches the Rack application without any /bin/sh or Bundler conflicts.

@tomohiro tomohiro temporarily deployed to fluentular-fix-heroku-c-xdbuo7 June 8, 2026 12:13 Inactive
@tomohiro tomohiro force-pushed the fix-heroku-container-config branch from a6591c9 to 2f73112 Compare June 8, 2026 12:23
@tomohiro tomohiro had a problem deploying to fluentular-fix-heroku-c-xdbuo7 June 8, 2026 12:23 Failure
@tomohiro tomohiro force-pushed the fix-heroku-container-config branch from 2f73112 to abbfa47 Compare June 8, 2026 12:30
@tomohiro tomohiro had a problem deploying to fluentular-fix-heroku-c-xdbuo7 June 8, 2026 12:31 Failure
@tomohiro tomohiro force-pushed the fix-heroku-container-config branch from abbfa47 to 7eb2f8d Compare June 8, 2026 13:42
@tomohiro tomohiro temporarily deployed to fluentular-fix-heroku-c-xdbuo7 June 8, 2026 13:42 Inactive
@tomohiro tomohiro force-pushed the fix-heroku-container-config branch from 7eb2f8d to fa7f2a3 Compare June 8, 2026 13:45
@tomohiro tomohiro temporarily deployed to fluentular-fix-heroku-c-xdbuo7 June 8, 2026 13:45 Inactive
@tomohiro tomohiro force-pushed the fix-heroku-container-config branch from fa7f2a3 to a271688 Compare June 8, 2026 13:54
@tomohiro tomohiro force-pushed the fix-heroku-container-config branch from a271688 to 35f7422 Compare June 8, 2026 14:02
@tomohiro tomohiro had a problem deploying to fluentular-fix-heroku-c-xdbuo7 June 8, 2026 14:03 Failure
@tomohiro tomohiro temporarily deployed to fluentular-fix-heroku-c-xdbuo7 June 8, 2026 14:10 Inactive
@tomohiro tomohiro force-pushed the fix-heroku-container-config branch from 35f7422 to 0866dc7 Compare June 8, 2026 14:19
@tomohiro tomohiro temporarily deployed to fluentular-fix-heroku-c-07d3db June 8, 2026 14:23 Inactive
@tomohiro tomohiro changed the title Align Heroku configuration to use Docker deployment via heroku.yml Switch Heroku deployment to Ruby buildpack and isolate Docker for distribution Jun 8, 2026
@tomohiro tomohiro merged commit 3114b27 into main Jun 8, 2026
7 checks passed
@tomohiro tomohiro deleted the fix-heroku-container-config branch June 8, 2026 14:30
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