Comments (6)
This is probably broken in docker, for buildah, I reported containers/buildah#1305 some time ago.
from container-common-scripts.
But of course, ADD sth somewhere
files which are manually created files by make can cause problems as well.
from container-common-scripts.
Just to sum up what issues we hit when investigating rhel8 CI issues (which had umask 077):
- when generating source files distgen only explicitly sets permissions for files, not for directories the files are located in
- when changing permissions during
assemble
thefix-permission
script needs to run before any further cp commands are called (via hooks for example) to avoid missing permissions outside directories on which thefix-permission
script is called - when copying files into new locations
-a
should be used to keep permissions in tact after ^ happens
@kubco2 I hope did not forget anything
from container-common-scripts.
Just to sum up what issues we hit when investigating rhel8 CI issues (which had umask 077):
* when generating source files distgen only explicitly sets permissions for files, not for directories the files are located in * when changing permissions during `assemble` the `fix-permission` script needs to run before any further cp/mv commands are called (via hooks for example) to avoid missing permissions outside directories on which the `fix-permission` script is called
@pkubatrh I guess, fix-permission
script has to be run after mv
commands if you want to fix permissions otherwise mv will not have correct permissions. For cp
command -a
is enough. Am I right?
* when copying files into new locations `-a` should be used to keep permissions in tact after ^ happens
@kubco2 I hope did not forget anything
from container-common-scripts.
@pkubatrh I guess, fix-permission script has to be run after mv commands if you want to fix permissions otherwise mv will not have correct permissions
Afaik mv
does not alter the inode of the file moved in any way so fix-permission
should not need to be re-run after the move.
Edit: I noticed I had a mention of mv
in my previous comment for some reason so I removed it to avoid further confusion.
from container-common-scripts.
from container-common-scripts.
Related Issues (20)
- Print info about container image tested in test.sh HOT 4
- generator.py fails the sanity check HOT 2
- Failure in case of OpenShift 4 connect
- docker --iidfile unknown flag HOT 1
- Traceback in cgroupt-limits HOT 1
- In case of '.git' directory does not exist build and tag is failing.
- regression in 'ct_clean_app_images' HOT 2
- Stop tests on SIGINT HOT 3
- Test log output improvements needed HOT 3
- Make sure that failed test in the end always fails the testsuite
- database library would be nice for mysql, mariadb and postgresql containers
- OCP tests: Make sure that failed test in the end always fails the testsuite HOT 2
- Do not try to get compressed image size when tests are interrupted HOT 4
- stop rebuild and testing of centos7 images HOT 1
- Migrate fedora images to f38 where possible HOT 5
- grep: warning: stray \ before - HOT 3
- Review hotfix for removing set -e from test-lib HOT 1
- Remove dead branches and set delete on merge as default HOT 1
- Fix check_latest_imagestreams.py HOT 1
- Adjust bot for common submodule updates.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container-common-scripts.