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

feat: use system bash to avoid extracting bash at runtime #1179

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

josegonzalez
Copy link
Member

When herokuish executes, it extracts a bash binary into the HOME directory - /app - and then executes as normal. This makes it impossible to run read-only containers, as that extraction happens at both build time (when executing buildpacks) as well as runtime (when running applications).

Rather than attempt to move the bash binary to /tmp, we instead use system bash. While this is a downgrade of bash since we packaged a newer bash, this provides better compatibility with upstream Heroku, which executes shell buildpacks with system bash.

When herokuish executes, it extracts a bash binary into the HOME directory - /app - and then executes as normal. This makes it impossible to run read-only containers, as that extraction happens at both build time (when executing buildpacks) as well as runtime (when running applications).

Rather than attempt to move the bash binary to /tmp, we instead use system bash. While this is a downgrade of bash since we packaged a newer bash, this provides better compatibility with upstream Heroku, which executes shell buildpacks with system bash.
@josegonzalez josegonzalez merged commit 0d64948 into master Mar 31, 2024
35 checks passed
@josegonzalez josegonzalez deleted the set-default-bash branch March 31, 2024 09:49
josegonzalez added a commit that referenced this pull request Mar 31, 2024
- #1177 @dependabot: Update php to version v248
- #1178 @josegonzalez: chore: update dependencies in scala test app
- #1179 @josegonzalez: feat: use system bash to avoid extracting bash at runtime
@josegonzalez josegonzalez mentioned this pull request Mar 31, 2024
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