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

Replace the /sbin/setuser app bundle install line with the following … #72

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

ashwinisukale
Copy link
Contributor

@ashwinisukale ashwinisukale commented Nov 15, 2024

Replace the /sbin/setuser app bundle install line with the following to properly run bundle install as the app user:

Purpose

error I was getting:

call_build_and_push / build
buildx failed with: ERROR: failed to solve: process "/bin/sh -c gem install rubygems-update -v 3.5.6 && gem install bundler:2.5.6 && /sbin/setuser app bundle install --path vendor/bundle" did not complete successfully: exit code: 5

…to properly run bundle install as the app user
@@ -46,7 +46,7 @@ RUN mkdir -p /home/app/webapp/vendor/bundle && \
WORKDIR /home/app/webapp
RUN gem install rubygems-update -v 3.5.6 && \
gem install bundler:2.5.6 && \
/sbin/setuser app bundle install --path vendor/bundle
su - app -c "bundle install --path vendor/bundle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashwinisukale can you add the error you are getting with the old line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call_build_and_push / build
buildx failed with: ERROR: failed to solve: process "/bin/sh -c gem install rubygems-update -v 3.5.6 && gem install bundler:2.5.6 && /sbin/setuser app bundle install --path vendor/bundle" did not complete successfully: exit code: 5

https://github.com/datacite/poodle/actions/runs/11838356642

@ashwinisukale ashwinisukale merged commit 2e3e299 into master Nov 15, 2024
2 checks passed
@ashwinisukale ashwinisukale deleted the fix_build branch November 15, 2024 09:19
@jrhoads jrhoads mentioned this pull request Nov 15, 2024
3 tasks
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.

2 participants