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

Use same uid as host in docker builder container #2516

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

g-gaston
Copy link
Member

Description of changes:
This makes the host user the owner of any file created by the eks-a builder container. This is particularly useful for any downloaded go module and the cache created during build. Without this change, those folder would be owned by root, which can make following go compilations fail when run from the host directly.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@g-gaston g-gaston requested a review from jaxesn September 27, 2023 16:07
@eks-distro-bot eks-distro-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 27, 2023
@g-gaston g-gaston force-pushed the permissions-docker-builder-host branch from 3914012 to c1c69ed Compare September 27, 2023 16:23
@jaxesn
Copy link
Member

jaxesn commented Sep 27, 2023

/hold

This makes the host user the owner of any file created by the eks-a
builder container. This is particulary useful for any downloaded go
module and the cache created during build. Without this change, those
folder would be owned by root, which can make following go compilations
fail when run from the host directly.
@g-gaston g-gaston force-pushed the permissions-docker-builder-host branch from c1c69ed to 5c8d8a8 Compare September 27, 2023 18:02
@g-gaston
Copy link
Member Author

/unhold

@jaxesn
Copy link
Member

jaxesn commented Sep 28, 2023

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaxesn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jaxesn jaxesn merged commit 3dbe898 into aws:main Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants