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

add support to override UID for container #2017

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

Parthiba-Hazra
Copy link
Contributor

Here in the pr I simply add a flag --uid to override uid for container and keep the implementation same as gid, as a new contributor to buildpack project I might be missing some points .. A swift review or guidance would greatly assist me in diving into this project.

Resolves #1347

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
@Parthiba-Hazra Parthiba-Hazra requested review from a team as code owners December 28, 2023 17:16
@github-actions github-actions bot added this to the 0.33.0 milestone Dec 28, 2023
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Dec 28, 2023
Copy link

codecov bot commented Dec 28, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (60922df) 79.50% compared to head (a230a9a) 79.49%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2017      +/-   ##
==========================================
- Coverage   79.50%   79.49%   -0.01%     
==========================================
  Files         175      175              
  Lines       13114    13135      +21     
==========================================
+ Hits        10425    10440      +15     
- Misses       2022     2026       +4     
- Partials      667      669       +2     
Flag Coverage Δ
os_linux 78.41% <71.43%> (-0.01%) ⬇️
os_macos 76.23% <71.43%> (-<0.01%) ⬇️
os_windows 78.87% <71.43%> (-0.01%) ⬇️
unit 79.49% <71.43%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@natalieparellano
Copy link
Member

@Parthiba-Hazra - thanks a lot for this. Is it possible to add a test in lifecycle_execution_test.go? If you search for override GID you will find the ones for the group ID.

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
@github-actions github-actions bot added the type/chore Issue that requests non-user facing changes. label Jan 9, 2024
@github-actions github-actions bot removed the type/chore Issue that requests non-user facing changes. label Jan 19, 2024
Copy link
Member

@jjbustamante jjbustamante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Parthiba-Hazra great work! thank you!

@jjbustamante jjbustamante merged commit a51140e into buildpacks:main Jan 19, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override UID for container
3 participants