This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a question: do we need two homes? or
Should be changed to
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point; it's probably better for consistency. The maybe confusing thing about this is that because of arbitrary UID on openshift, the terminal doesn't run as the
gradle
user, but this still probably makes more sense than/home/user
.In either case, since
HOME
is not mounted as a volume, any changes there would be wiped out. I wonder if it makes more sense to setHOME
to/projects
so that at leastcd ~
takes users to a meaningful directory.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set to
HOME
to/home/user
originally because that's how legacy Che workspaces worked and there were still some environment variables injected by wsmaster that assumed that. I don't know if that's still the case./home/gradle/.gradle
is persisted as a volume right? data should not be wiped out.I am afraid that setting
/projects/
asHOME
may have unexpected side effects. We may want to set the k8s container workingDir instead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@l0rd That makes sense to me but I'm still not sure the best way to proceed here. While
/home/gradle/.gradle
is persisted,/home/gradle
is not; are we okay with this (e.g. it would prevent using a persistent.bashrc
, etc.). This issue is probably another, larger discussion, though.I've updated
$HOME
to be/home/gradle
. What is currently happening, AFAICT, is that whatever directory we're calling$HOME
is being created at container start up, so I don't think this will cause issues.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are ok not to persist full
$HOME
. This is a cool idea (a user would find his dotfiles in every workspace) but I don't think there has ever been a requirement for that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway I am +1 to merge this PR as it is