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

Drop global HOME environment variable #64

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Drop global HOME environment variable #64

merged 1 commit into from
Aug 16, 2019

Conversation

TobiX
Copy link
Contributor

@TobiX TobiX commented Jun 13, 2019

HOME is normally controlled by the "system"[1] and should match what the user's home directory in /etc/passwd is. Overwriting this value with ENV in this docker image causes some surprises when the user is changes with USER in a docker image derived FROM this image. Unfortunatly, docker still doesn't allow to "reset" environment variables (moby/moby#3465), so if I want to change the user, I need to remember to also update HOME.

Long story short: This removes the global preset for HOME, so HOME does function as expected.

[1] I think in normal UNIX sessions, login is responsible for that, but in the case of docker, docker itself takes care of that..

@slide
Copy link
Member

slide commented Aug 8, 2019

Close and reopen for build

@slide slide closed this Aug 8, 2019
@slide slide reopened this Aug 8, 2019
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

+100

@oleg-nenashev
Copy link
Member

i will do a new release once we have a new Remoting version. CC @jeffret-b

@jeffret-b
Copy link
Contributor

I'm hoping to get a new Remoting version out the first half of next week.

@slide slide merged commit 46f055d into jenkinsci:master Aug 16, 2019
@TobiX TobiX deleted the drop-home-env branch August 16, 2019 18:38
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 27, 2023
…riable-if-set

if java home is defined, use it
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.

4 participants