seL4 / seL4-CAmkES-L4v-dockerfiles

Dockerfiles defining the dependencies required to build seL4, CAmkES, and L4v.
12 stars 39 forks source link

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

Closed lsf37 closed 4 months ago

lsf37 commented 4 months ago

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.