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

user.sh: put env settings in /etc/bash.bashrc #83

Merged
merged 1 commit into from
May 22, 2024
Merged

user.sh: put env settings in /etc/bash.bashrc #83

merged 1 commit into from
May 22, 2024

Conversation

lsf37
Copy link
Member

@lsf37 lsf37 commented May 22, 2024

The user home is a docker volume, which is persistent between container runs and cannot be mounted during image building.

Store env settings like PATH and other variables in container-global /etc/bash.bashrc instead of user ~/.bashrc so that changes to these variables during image build become visible without deleting the volume.

One example where that is necessary is the recent change to ghcup -- those settings don't become visible for users who already have a user-home volume set up.

The user home is a docker volume, which is persistent between container
runs and cannot be mounted during image building.

Store env settings like PATH and other variables in container-global
/etc/bash.bashrc instead of user ~/.bashrc so that changes to these
variables during image build become visible without deleting the volume.

Signed-off-by: Gerwin Klein <[email protected]>
@lsf37 lsf37 merged commit cb742b5 into master May 22, 2024
11 checks passed
@lsf37 lsf37 deleted the path branch May 22, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants