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

Gem Bundler Install Permission Issues #354

Closed
andygnelson opened this issue Jul 20, 2021 · 2 comments
Closed

Gem Bundler Install Permission Issues #354

andygnelson opened this issue Jul 20, 2021 · 2 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@andygnelson
Copy link

Starting on or around July 8th my builds started failing with permissions issues on the /usr/local/bundle directory which makes no sense because that directory is given 777 permissions according to the Dockerfile. The base image I was using was ruby:2.6-alpine, I upgrade to ruby:3.0.2-alpine3.14 to attempt to fix the issue and that did not work.

I did however downgrade to ruby:2.6-alpine3.13 and that seems to have resolved my issue, though I do not have the foggiest idea why. I am not a Ruby developer typically it just has good octokit libraries that I use.

My best guess is an issue with the latest alpine version since initially I did not specify the version and if it failed, 3.14 failed, but 3.13 did not fail with this error.

Step 3/10 : RUN gem install bundler
---> Running in f35c54c4a444
�[91mERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/bundle directory.
�[0mService 'tech_debt' failed to build: The command '/bin/sh -c gem install bundler' returned a non-zero code: 1

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Jul 20, 2021
@wglambert
Copy link

Looks like #351

@andygnelson
Copy link
Author

@wglambert yes that looks exactly like my issue with the exception of how it presents. None of my google searches apparently landed me on the right issue, hopefully me issue serves as a bit of a redirection since I assume gem bundler install is fairly common. I guess I shouldn't be using the bare alpine tag.

gomin2013 pushed a commit to gomin2013/rails-7-hotwire that referenced this issue Dec 29, 2021
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
gomin2013 pushed a commit to gomin2013/rails-7-hotwire that referenced this issue Dec 29, 2021
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
gomin2013 pushed a commit to gomin2013/rails-7-hotwire that referenced this issue Dec 29, 2021
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
gomin2013 pushed a commit to gomin2013/rails-7-hotwire that referenced this issue Dec 29, 2021
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
gomin2013 pushed a commit to gomin2013/rails-7-hotwire that referenced this issue Dec 29, 2021
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
gomin2013 pushed a commit to gomin2013/rails-7-hotwire that referenced this issue Feb 18, 2022
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
gomin2013 pushed a commit to gomin2013/rails-7-hotwire that referenced this issue Feb 18, 2022
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

2 participants