Accepting request 936284 from home:mslacken:sp
- added leap-container.patch which adds leap15 as os to the spack containerize command. OBS-URL: https://build.opensuse.org/request/show/936284 OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=37
This commit is contained in:
parent
2918bbaf83
commit
740f3c9e73
63
leap-container.patch
Normal file
63
leap-container.patch
Normal file
@ -0,0 +1,63 @@
|
||||
diff --git a/lib/spack/docs/containers.rst b/lib/spack/docs/containers.rst
|
||||
index 3d32de0841..57a9cad189 100644
|
||||
--- a/lib/spack/docs/containers.rst
|
||||
+++ b/lib/spack/docs/containers.rst
|
||||
@@ -129,6 +129,9 @@ are currently supported are summarized in the table below:
|
||||
* - CentOS 7
|
||||
- ``centos:7``
|
||||
- ``spack/centos7``
|
||||
+ * - openSUSE Leap
|
||||
+ - ``opensuse/leap``
|
||||
+ - ``spack/leap15``
|
||||
|
||||
All the images are tagged with the corresponding release of Spack:
|
||||
|
||||
diff --git a/lib/spack/spack/container/images.json b/lib/spack/spack/container/images.json
|
||||
index ee4e5a2caa..8e42329725 100644
|
||||
--- a/lib/spack/spack/container/images.json
|
||||
+++ b/lib/spack/spack/container/images.json
|
||||
@@ -28,6 +28,19 @@
|
||||
"develop": "latest"
|
||||
}
|
||||
},
|
||||
+ "leap:15": {
|
||||
+ "bootstrap": {
|
||||
+ "template": "container/leap15.dockerfile"
|
||||
+ },
|
||||
+ "os_package_manager": "zypper",
|
||||
+ "build": "spack/leap15",
|
||||
+ "build_tags": {
|
||||
+ "develop": "latest"
|
||||
+ },
|
||||
+ "final": {
|
||||
+ "image": "opensuse/leap:latest"
|
||||
+ }
|
||||
+ },
|
||||
"nvidia/cuda:11.2.1": {
|
||||
"bootstrap": {
|
||||
"template": "container/cuda_11_2_1.dockerfile",
|
||||
@@ -85,6 +98,11 @@
|
||||
"update": "yum update -y && amazon-linux-extras install epel -y",
|
||||
"install": "yum install -y",
|
||||
"clean": "rm -rf /var/cache/yum && yum clean all"
|
||||
+ },
|
||||
+ "zypper": {
|
||||
+ "update": "zypper update -y",
|
||||
+ "install": "zypper install -y",
|
||||
+ "clean": "rm -rf /var/cache/zypp && zypper clean -a"
|
||||
}
|
||||
}
|
||||
}
|
||||
diff --git a/share/spack/docker/leap-15.dockerfile b/share/spack/docker/leap-15.dockerfile
|
||||
index 65375c359b..eeaf90f524 100644
|
||||
--- a/share/spack/docker/leap-15.dockerfile
|
||||
+++ b/share/spack/docker/leap-15.dockerfile
|
||||
@@ -2,7 +2,7 @@ FROM opensuse/leap:15.3
|
||||
MAINTAINER Christian Goll <cgoll@suse.com>
|
||||
|
||||
ENV DOCKERFILE_BASE=opensuse \
|
||||
- DOCKERFILE_DISTRO=opensuse_leap \
|
||||
+ DOCKERFILE_DISTRO=leap \
|
||||
DOCKERFILE_DISTRO_VERSION=15.3 \
|
||||
SPACK_ROOT=/opt/spack \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 7 15:34:12 UTC 2021 - Christian Goll <cgoll@suse.com>
|
||||
|
||||
- added leap-container.patch which adds leap15 as os to the
|
||||
spack containerize command.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 8 14:55:34 UTC 2021 - Christian Goll <cgoll@suse.com>
|
||||
|
||||
|
@ -54,6 +54,7 @@ Patch5: Make-spack-paths-compliant-to-distro-installation.patch
|
||||
Patch6: Fix-error-during-documentation-build-due-to-recursive-module-inclusion.patch
|
||||
Patch7: Fix-Spinx-configuration-to-avoid-throwing-errors.patch
|
||||
Patch8: Set-modules-default-to-lmod.patch
|
||||
Patch9: leap-container.patch
|
||||
%if %{without doc}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: lua-lmod
|
||||
|
Loading…
Reference in New Issue
Block a user