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

Inherit USER from base image #2426

Merged
merged 3 commits into from
Apr 23, 2020
Merged

Inherit USER from base image #2426

merged 3 commits into from
Apr 23, 2020

Conversation

chanseokoh
Copy link
Member

Fixes #2421.

I think we never inherited USER.

@chanseokoh chanseokoh marked this pull request as ready for review April 23, 2020 19:06
@loosebazooka
Copy link
Member

loosebazooka commented Apr 23, 2020

I wonder if some discussion led us to do this?

Would this break existing builds that depend on ignoring user? <-- although maybe this is a dumb question

@chanseokoh
Copy link
Member Author

Hmm... good point. I don't remember such a thing though. Let me search.

@chanseokoh
Copy link
Member Author

In #595, we had been gradually expanding configurations to inherit. Inheriting User was also considered, but no further action was taken.

I do think there will be users whose images we will break with this change. User has a more significant impact than other configurations. However, I think we should eventually fix this. Dockerfile inherits it too.

@loosebazooka
Copy link
Member

Sure then this should be a 2.3.0?

@loosebazooka
Copy link
Member

Just curious though, can a user override the inherited user?

@chanseokoh
Copy link
Member Author

Yes, with jib.container.user. A test in this PR covers that.

@chanseokoh chanseokoh merged commit e4b291f into master Apr 23, 2020
@chanseokoh chanseokoh deleted the i2421-inherit-user branch April 23, 2020 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USER not respected / java running as root user
3 participants