[info=d92326f667b382e93c91014d47e85600]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/spack-image?expand=0&rev=26
This commit is contained in:
parent
d0fc716176
commit
2778bc927e
11
Dockerfile
11
Dockerfile
@ -14,8 +14,8 @@
|
||||
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
|
||||
|
||||
#!ExclusiveArch: aarch64 x86_64
|
||||
#!BuildTag: opensuse/bci/spack:%%spack_version%%
|
||||
#!BuildTag: opensuse/bci/spack:%%spack_version%%-%RELEASE%
|
||||
#!BuildTag: opensuse/bci/spack:0.21.2
|
||||
#!BuildTag: opensuse/bci/spack:0.21.2-%RELEASE%
|
||||
#!BuildTag: opensuse/bci/spack:%%spack_minor%%
|
||||
#!BuildTag: opensuse/bci/spack:%%spack_minor%%-%RELEASE%
|
||||
#!BuildTag: opensuse/bci/spack:latest
|
||||
@ -28,14 +28,14 @@ MAINTAINER openSUSE (https://www.opensuse.org/)
|
||||
# labelprefix=org.opensuse.bci.spack
|
||||
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Spack development"
|
||||
LABEL org.opencontainers.image.description="Spack is a flexible package manager for supercomputers, based on the openSUSE Tumbleweed Base Container Image."
|
||||
LABEL org.opencontainers.image.version="%%spack_version%%"
|
||||
LABEL org.opencontainers.image.version="0.21.2"
|
||||
LABEL org.opencontainers.image.url="https://www.opensuse.org"
|
||||
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
||||
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
||||
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
||||
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/spack-image/README.md"
|
||||
LABEL io.artifacthub.package.logo-url="https://spack.io/assets/images/spack-logo-white.svg"
|
||||
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/spack:%%spack_version%%-%RELEASE%"
|
||||
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/spack:0.21.2-%RELEASE%"
|
||||
LABEL org.openbuildservice.disturl="%DISTURL%"
|
||||
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime"
|
||||
LABEL org.opensuse.release-stage="released"
|
||||
@ -62,5 +62,8 @@ RUN set -euo pipefail; mkdir -p /root/.spack \
|
||||
/root/.spack/modules.yaml \
|
||||
&& rm -rf /root/*.* /run/nologin
|
||||
|
||||
# sanity check that the version from the tag is equal to the version of spack that we expect
|
||||
RUN set -euo pipefail; [ "$(rpm -q --qf '%{version}' spack | cut -d '.' -f -3)" = "0.21.2" ]
|
||||
|
||||
WORKDIR /root
|
||||
SHELL ["docker-shell"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Spack %%spack_version%% Container Image
|
||||
# Spack 0.21.2 Container Image
|
||||

|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ spack:
|
||||
container:
|
||||
format: <container_format>
|
||||
images:
|
||||
build: "registry.opensuse.org/opensuse/bci/spack:%%spack_version%%"
|
||||
build: "registry.opensuse.org/opensuse/bci/spack:0.21.2"
|
||||
final: "registry.suse.com/bci/bci-base:latest"
|
||||
os_packages:
|
||||
command: zypper
|
||||
@ -64,7 +64,7 @@ $ podman run -it --rm <target_name> <command line ...>
|
||||
If you do not have a local installation of Spack, you can use this container
|
||||
to run Spack commands - like `spack containerize`:
|
||||
```ShellSession
|
||||
$ podman run -v $(pwd):/root:Z --rm registry.opensuse.org/opensuse/bci/spack:%%spack_version%% containerize > Containerfile
|
||||
$ podman run -v $(pwd):/root:Z --rm registry.opensuse.org/opensuse/bci/spack:0.21.2 containerize > Containerfile
|
||||
```
|
||||
For further information, refer to the
|
||||
[Spack documentation on container images](https://spack.readthedocs.io/en/latest/containers.html).
|
||||
|
12
_service
12
_service
@ -1,22 +1,10 @@
|
||||
<services>
|
||||
<service mode="buildtime" name="docker_label_helper"/>
|
||||
<service mode="buildtime" name="kiwi_metainfo_helper"/>
|
||||
<service name="replace_using_package_version" mode="buildtime">
|
||||
<param name="file">Dockerfile</param>
|
||||
<param name="regex">%%spack_version%%</param>
|
||||
<param name="package">spack</param>
|
||||
<param name="parse-version">patch</param>
|
||||
</service>
|
||||
<service name="replace_using_package_version" mode="buildtime">
|
||||
<param name="file">Dockerfile</param>
|
||||
<param name="regex">%%spack_minor%%</param>
|
||||
<param name="package">spack</param>
|
||||
<param name="parse-version">minor</param>
|
||||
</service>
|
||||
<service name="replace_using_package_version" mode="buildtime">
|
||||
<param name="file">README.md</param>
|
||||
<param name="regex">%%spack_version%%</param>
|
||||
<param name="package">spack</param>
|
||||
<param name="parse-version">patch</param>
|
||||
</service>
|
||||
</services>
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 5 12:47:22 UTC 2024 - Dan Čermák <dcermak@suse.com>
|
||||
|
||||
- Hardcode package version in the README
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 4 12:35:15 UTC 2024 - Alexandre Vicenzi <alexandre.vicenzi@suse.com>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user