-
Notifications
You must be signed in to change notification settings - Fork 188
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
Configurable user IDs #429
base: main
Are you sure you want to change the base?
Configurable user IDs #429
Conversation
@swift-ci please test |
315ee05
to
a6f52e6
Compare
I'm going to need more output than |
In the artifact step, you should see a link to download the logs.
|
CentOS 7:
Ubuntu 23.10:
Ubuntu 24.04:
Docc:
Static SDK
Most of these look like either the distro is EOL or an infra issue. I can avoid the EOL distros. I'm not sure what is happening with the static SDK though. Will see if I can reproduce that. This change shouldn't have an effect. |
Ah,
|
a6f52e6
to
11730a5
Compare
When working with these containers to debug issues locally, it's sometimes useful to have the source directory live on the host, while building in the container. In order for permissions to line up, the user ID numbers need to match or the build-user may not be able to create the necessary directories. This patch allows setting the build-user user ID so that the permissions line up and the user in the container and host can manipulate the files. Override the build user ID with the current user's ID is done with the following command to ensure that the permissions on any volumes are kept in sync is the following: `docker build --build-arg BUILD_USER_ID=$(id -u) ...`
11730a5
to
6721040
Compare
When working with these containers to debug issues locally, it's sometimes useful to have the source directory live on the host, while building in the container. In order for permissions to line up, the user ID numbers need to match or the build-user may not be able to create the necessary directories.
This patch allows setting the build-user user ID so that the permissions line up and the user in the container and host can manipulate the files.
Override the build user ID with the current user's ID is done with the following command to ensure that the permissions on any volumes are kept in sync is the following:
docker build --build-arg BUILD_USER_ID=$(id -u) ...