[Bug 1207784] New: [spack, podman] Spack generated Dockerfile fails due to not sourcing setup-env.sh
https://bugzilla.suse.com/show_bug.cgi?id=1207784 Bug ID: 1207784 Summary: [spack, podman] Spack generated Dockerfile fails due to not sourcing setup-env.sh Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: All OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: eich@suse.com Reporter: eich@suse.com QA Contact: qa-bugs@suse.de CC: hpc-bugs@suse.de Found By: Development Blocker: --- Created attachment 864634 --> https://bugzilla.suse.com/attachment.cgi?id=864634&action=edit Fix Building a container from a Spack-generated Dockerfile fails with the error message: [1/2] STEP 3/5: RUN cd /opt/spack-environment && spack env activate . && spack install --fail-fast && spack gc -y /bin/sh: spack: command not found Error: building at STEP "RUN cd /opt/spack-environment && spack env activate . && spack install --fail-fast && spack gc -y": while running runtime: exit status 127 Reason: The 'RUN' command does not source /opt/spack/share/spack/setup-env.sh before calling spack which conveniently sets up PATH (among other things) to include the spack binary. Even with spack in the search path, `spack env activate .` would fail without the environment set up. There are two locations in the Dockerfile-template where this needs to be added. The singularityfile template does this correctly already. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1207784 https://bugzilla.suse.com/show_bug.cgi?id=1207784#c2 --- Comment #2 from Egbert Eich <eich@suse.com> --- This problem seems to be podman-specific and is related to the message: `SHELL is not supported for OCI image format, [docker-shell] will be ignored. Must use `docker` format` The Dockerfile option SHELL has not made it into the OCI specification. This can be circumvented by using `podman build --format=docker ...` for building. Thus, it should be possible to work around this using this command line option. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1207784 https://bugzilla.suse.com/show_bug.cgi?id=1207784#c5 --- Comment #5 from Maintenance Automation <maint-coord+maintenance-robot@suse.de> --- SUSE-FU-2023:1706-1: An update that contains two features and has four feature fixes can now be installed. Category: feature (important) Bug References: 1195391, 1207053, 1207784, 1208751 Jira References: PED-2803, PED-3000 Sources used: openSUSE Leap 15.4 (src): spack-0.19.1-150400.12.5.3 HPC Module 15-SP4 (src): spack-0.19.1-150400.12.5.3 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1207784 https://bugzilla.suse.com/show_bug.cgi?id=1207784#c6 --- Comment #6 from Maintenance Automation <maint-coord+maintenance-robot@suse.de> --- SUSE-FU-2023:1705-1: An update that contains four features and has five feature fixes can now be installed. Category: feature (important) Bug References: 1195391, 1198212, 1207053, 1207784, 1208751 Jira References: PED-2803, PED-3000, SLE-22679, SLE-22684 Sources used: SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): clingo-5.5.0-150300.7.6.6, spack-0.19.1-150300.5.16.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): clingo-5.5.0-150300.7.6.6, spack-0.19.1-150300.5.16.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com