-
Notifications
You must be signed in to change notification settings - Fork 434
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
[contrib] rake docker:build
fails with Errno::EACCES: Permission denied @ rb_sysopen - /obs/src/api/log/bullet.log
#15659
Comments
Do you have a |
# This file is generated by our Rakefile. Do not change it!
version: '2.1'
services:
frontend:
build:
args:
CONTAINER_USERID: 1000
volumes:
- ./docker-files/home/.bash_history:/home/frontend/.bash_history:Z
- ./docker-files/home/.irb_history:/home/frontend/.irb_history:Z
- ./docker-files/home/.pry_history:/home/frontend/.pry_history:Z
- ./docker-files/home/.irbrc:/home/frontend/.irbrc:Z
- ./docker-files/home/.pryrc:/home/frontend/.pryrc:Z
|
I deleted the repository and cloned it one more time just to make sure that I follow the instructions correctly. docker compose run --no-deps --rm frontend bundle exec rake dev:bootstrap RAILS_ENV=development
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
Setting up the database configuration...
Creating config/config/database.yml from config/config/database.yml.example
rake aborted!
Errno::EACCES: Permission denied @ rb_sysopen - config/database.yml
/obs/src/api/lib/tasks/dev/rake_support.rb:22:in `copy_example_file'
/obs/src/api/lib/tasks/dev.rake:10:in `block (2 levels) in <top (required)>'
/usr/bin/bundle:25:in `load'
/usr/bin/bundle:25:in `<main>'
Tasks: TOP => dev:bootstrap => dev:prepare
(See full trace by running task with --trace)
docker compose stop
[+] Running 1/1
⠿ Container open-build-service-db-1 Stopped 0.4s
rake aborted!
Command failed with status (1): [docker compose run --no-deps --rm frontend...]
/home/valdrin/Desktop/open-build-service/Rakefile:39:in `block (2 levels) in <top (required)>'
Tasks: TOP => docker:build
(See full trace by running task with --trace) # This file is generated by our Rakefile. Do not change it!
version: '2.1'
services:
frontend:
build:
args:
CONTAINER_USERID: 1000
volumes:
- ./docker-files/home/.bash_history:/home/frontend/.bash_history:Z
- ./docker-files/home/.irb_history:/home/frontend/.irb_history:Z
- ./docker-files/home/.pry_history:/home/frontend/.pry_history:Z
- ./docker-files/home/.irbrc:/home/frontend/.irbrc:Z
- ./docker-files/home/.pryrc:/home/frontend/.pryrc:Z
|
Hey @valdrinkuchi is the user of your system that you are using to start the docker container in the |
@valdrinkuchi we are writing files to the volume inside the |
whoami
=> valdrin grep 'docker' /etc/group
=> docker:x:998:valdrin |
$ id -u
1000 or $ id
uid=1000(valdrin) |
and |
and |
$ /usr/bin/ls -land src/api/
drwxrwxr-x 14 1000 1000 4096 Feb 19 19:50 src/api/
uid=1000(frontend) gid=100(users) groups=100(users) |
Hm this is strange. Inside the checkout directory you have any output for |
No, I don't receive any output. valdrin:open-build-service/ (master) $ find . ! -uid 1000
|
Phew, this must be the ubuntu docker setup then. Let me see if I can reproduce it... |
I am indeed using the docker application in ubuntu. |
@valdrinkuchi this will take me some time... |
@hennevogel no need to check I installed it on my MacOs laptop. |
alright... |
Issue/Feature Description
While following the instructions specified here, to setup local OBS development I face the following error when running
rake docker:build
:Expected Result
No permission issues should be present and the development environment should work properly.
How to Reproduce
Ubuntu 22.04.3 LTS
Docker version 24.0.6, build ed223bc
The text was updated successfully, but these errors were encountered: