ucsf-wynton / wynton-website-hpc

The Official Wynton HPC User Website
https://wynton.ucsf.edu/hpc/
2 stars 14 forks source link

Apptainer: Document how to make containers access our proxy servers #145

Closed HenrikBengtsson closed 6 months ago

HenrikBengtsson commented 6 months ago

"The dev nodes access the internet via a proxy host. Make sure that your container imports the required proxy environment variable(s). You can see all the variables by running (in a normal shell) env | grep -i proxy."

HenrikBengtsson commented 6 months ago

Not needed; our *_proxy environment variables are already exported automatically, e.g.

[dev3]$ apptainer build alpine.sif alpine.def
INFO:    User not listed in /etc/subuid, trying root-mapped namespace
INFO:    The %post section will be run under fakeroot
INFO:    Starting build...
Getting image source signatures
Copying blob 4abcf2066143 skipped: already exists  
Copying config bc4e4f7999 done   | 
Writing manifest to image destination
2024/04/30 13:15:35  info unpack layer: sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8
INFO:    Adding runscript
INFO:    Creating SIF file...
INFO:    Build complete: alpine.sif

[dev3]$ apptainer shell alpine.sif
Apptainer> env | grep proxy
no_proxy=localhost,127.0.0.1
https_proxy=http://prox1:3128/
http_proxy=http://prox1:3128/
ftp_proxy=http://prox1:3128/
Apptainer> 

/cc @jlbl , FYI