hpc / charliecloud

Lightweight user-defined software stacks for high-performance computing.
https://hpc.github.io/charliecloud
Apache License 2.0
308 stars 61 forks source link

`ch-image` pull doesn't properly retain information in `/ch/environment` #1900

Open nicholas-sly opened 2 months ago

nicholas-sly commented 2 months ago

When Charliecloud pulls containers from a registry (in my case, a Gitlab repo registry), the file /ch/environment is changed to a generic state containing PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin rather than the information put in there when the container was built using the ENV directives. A viable workaround at the moment (assuming you have podman) is to pull with podman and then ch-convert to Charliecloud.