Hi,
Are there any parts of the host filesystem exposed during image build %post phase? Can I make something visible with a bind -like argument?
After reviewing the documentation it seems like the answer is no.
My main purpose at hand is to build a container that holds a complex application. The build process uses spack, cmake, and other fun things. I've been attempting to build the application through the image %post phase.
Two consequences have been in front of me on a Cray system supporting Singularity (--fakeroot):
1) I can't point the build at at lots of libraries & utilities installed on the host at build time (i.e. %post time) As an example, this would be a desirable alternative to the MPI "Bind" approach described in the Singularity documentation (where there the simple app is built on the host). (and admittedly somewhat contrary to some container principles)
2). For some reason Spack sees itself running on platform type "linux" during the image build, but when I run the container the same Spack install now sees its platform type as "cray" and can't find any compiler that was installed during %post.
`spack arch` returns either linux-ubuntu20.04-zen2 or cray-ubuntu20.04-x86_64 depending on that context on the same node.
Thanks for your thoughts.
-Noah