Christian Goll
a641c6661c
- added test for /etc/spack/no_rpm_trigger - added %triggerin and %triggerpostun for the packages which can be detected by spack - updated to 0.16.0 - added find for external packages - added dockerfile for leap * added patchfile added-dockerfile-for-opensuse-leap-15.patch - Add documentation (man and info pages, pdf doesn't build currently). * Do not ship documentation sources. - Do not distribute Dockerfiles and other container related material, yet. This needs to be fixed so that the samples work with SUSE. - Fully integrate spack into SUSE directory structure, fix paths where required. * Fix setup scripts to work correctly in above environment. OBS-URL: https://build.opensuse.org/request/show/854051 OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=3
78 lines
2.1 KiB
Diff
78 lines
2.1 KiB
Diff
From d9b88381189ca860cd63c48a53d2298fd8d206db Mon Sep 17 00:00:00 2001
|
|
From: Christian Goll <cgoll@suse.de>
|
|
Date: Tue, 24 Nov 2020 16:35:32 +0100
|
|
Subject: [PATCH 1/2] added dockerfile for opensuse leap 15
|
|
|
|
---
|
|
share/spack/docker/leap-15.dockerfile | 58 +++++++++++++++++++++++++++
|
|
1 file changed, 58 insertions(+)
|
|
create mode 100644 share/spack/docker/leap-15.dockerfile
|
|
|
|
diff --git a/share/spack/docker/leap-15.dockerfile b/share/spack/docker/leap-15.dockerfile
|
|
new file mode 100644
|
|
index 000000000..36054cd44
|
|
--- /dev/null
|
|
+++ b/share/spack/docker/leap-15.dockerfile
|
|
@@ -0,0 +1,58 @@
|
|
+FROM opensuse/leap:15.2
|
|
+MAINTAINER SUSE HPC <suse-hpc@suse.de>
|
|
+
|
|
+ENV DOCKERFILE_BASE=opensuse \
|
|
+ DOCKERFILE_DISTRO=opensuse_leap \
|
|
+ DOCKERFILE_DISTRO_VERSION=15.2 \
|
|
+ SPACK_ROOT_DOCKER=/opt/spack \
|
|
+ DEBIAN_FRONTEND=noninteractive \
|
|
+ CURRENTLY_BUILDING_DOCKER_IMAGE=1 \
|
|
+ container=docker
|
|
+
|
|
+COPY bin $SPACK_ROOT/bin
|
|
+COPY etc $SPACK_ROOT/etc
|
|
+COPY lib $SPACK_ROOT/lib
|
|
+COPY share $SPACK_ROOT/share
|
|
+COPY var $SPACK_ROOT/var
|
|
+
|
|
+
|
|
+RUN mkdir -p $SPACK_ROOT/opt/spack
|
|
+
|
|
+RUN zypper ref && \
|
|
+ zypper up -y && \
|
|
+ zypper in -y python3-base \
|
|
+ xz gzip tar bzip2 curl patch \
|
|
+ gcc-c++ make cmake automake&&\
|
|
+ zypper clean
|
|
+
|
|
+# clean up manpages
|
|
+RUN rm -rf /var/cache/zypp/* \
|
|
+ rm -rf /usr/share/doc/packages/* \
|
|
+ rm -rf /usr/share/doc/manual/*
|
|
+
|
|
+
|
|
+RUN mkdir -p /root/.spack \
|
|
+ && cp $SPACK_ROOT/share/spack/docker/modules.yaml \
|
|
+ /root/.spack/modules.yaml \
|
|
+ && rm -rf /root/*.* /run/nologin $SPACK_ROOT/.git
|
|
+
|
|
+# [WORKAROUND]
|
|
+# https://superuser.com/questions/1241548/
|
|
+# xubuntu-16-04-ttyname-failed-inappropriate-ioctl-for-device#1253889
|
|
+RUN [ -f ~/.profile ] \
|
|
+ && sed -i 's/mesg n/( tty -s \\&\\& mesg n || true )/g' ~/.profile \
|
|
+ || true
|
|
+
|
|
+WORKDIR /root
|
|
+SHELL ["docker-shell"]
|
|
+
|
|
+# Find tools which are in distro
|
|
+RUN spack external find --scope system
|
|
+
|
|
+# TODO: add a command to Spack that (re)creates the package cache
|
|
+RUN spack spec hdf5+mpi
|
|
+
|
|
+ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
|
|
+CMD ["interactive-shell"]
|
|
+
|
|
+
|
|
--
|
|
2.26.2
|
|
|