X Tutup
Skip to content

Commit bd0ffa8

Browse files
mslackenalalazo
andauthored
Added opensuse/leap:15 to spack containerize (spack#27837)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
1 parent ac49ce8 commit bd0ffa8

File tree

4 files changed

+58
-5
lines changed

4 files changed

+58
-5
lines changed

lib/spack/docs/containers.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ are currently supported are summarized in the table below:
129129
* - CentOS 7
130130
- ``centos:7``
131131
- ``spack/centos7``
132+
* - openSUSE Leap
133+
- ``opensuse/leap``
134+
- ``spack/leap15``
132135

133136
All the images are tagged with the corresponding release of Spack:
134137

lib/spack/spack/container/images.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@
2828
"develop": "latest"
2929
}
3030
},
31+
"opensuse/leap:15": {
32+
"bootstrap": {
33+
"template": "container/leap-15.dockerfile"
34+
},
35+
"os_package_manager": "zypper",
36+
"build": "spack/leap15",
37+
"build_tags": {
38+
"develop": "latest"
39+
},
40+
"final": {
41+
"image": "opensuse/leap:latest"
42+
}
43+
},
3144
"nvidia/cuda:11.2.1": {
3245
"bootstrap": {
3346
"template": "container/cuda_11_2_1.dockerfile",
@@ -85,6 +98,11 @@
8598
"update": "yum update -y && amazon-linux-extras install epel -y",
8699
"install": "yum install -y",
87100
"clean": "rm -rf /var/cache/yum && yum clean all"
101+
},
102+
"zypper": {
103+
"update": "zypper update -y",
104+
"install": "zypper install -y",
105+
"clean": "rm -rf /var/cache/zypp && zypper clean -a"
88106
}
89107
}
90108
}

share/spack/docker/leap-15.dockerfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM opensuse/leap:15.3
22
MAINTAINER Christian Goll <cgoll@suse.com>
33

44
ENV DOCKERFILE_BASE=opensuse \
5-
DOCKERFILE_DISTRO=opensuse_leap \
5+
DOCKERFILE_DISTRO=leap \
66
DOCKERFILE_DISTRO_VERSION=15.3 \
77
SPACK_ROOT=/opt/spack \
88
DEBIAN_FRONTEND=noninteractive \
@@ -11,10 +11,21 @@ ENV DOCKERFILE_BASE=opensuse \
1111

1212
RUN zypper ref && \
1313
zypper up -y && \
14-
zypper in -y python3-base python3-boto3 \
15-
xz gzip tar bzip2 curl patch patchelf file \
16-
gcc-c++ gcc-fortran make cmake automake && \
17-
zypper clean
14+
zypper in -y \
15+
bzip2\
16+
curl\
17+
file\
18+
gcc-c++\
19+
gcc-fortran\
20+
make\
21+
gzip\
22+
patch\
23+
patchelf\
24+
python3-base \
25+
python3-boto3\
26+
tar\
27+
xz\
28+
&& zypper clean
1829

1930
# clean up manpages
2031
RUN rm -rf /var/cache/zypp/* \
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% extends "container/bootstrap-base.dockerfile" %}
2+
{% block install_os_packages %}
3+
RUN zypper ref && \
4+
zypper up -y && \
5+
zypper in -y \
6+
bzip2\
7+
curl\
8+
file\
9+
gcc-c++\
10+
gcc-fortran\
11+
make\
12+
git\
13+
gzip\
14+
patch\
15+
patchelf\
16+
python3-base \
17+
python3-boto3\
18+
tar\
19+
xz\
20+
&& zypper clean
21+
{% endblock %}

0 commit comments

Comments
 (0)
X Tutup