summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/apptainer/package.py
diff options
context:
space:
mode:
authorMatthias Wolf <matthias.wolf@epfl.ch>2022-05-24 16:01:46 +0200
committerGitHub <noreply@github.com>2022-05-24 16:01:46 +0200
commit557845cccc0523c34072dbeddf6035f54fb2a76e (patch)
treec9714859119f9409f997d02e4c19ff6072518a49 /var/spack/repos/builtin/packages/apptainer/package.py
parentc5297523af7387b358511fe15cfb520a6441113c (diff)
downloadspack-557845cccc0523c34072dbeddf6035f54fb2a76e.tar.gz
spack-557845cccc0523c34072dbeddf6035f54fb2a76e.tar.bz2
spack-557845cccc0523c34072dbeddf6035f54fb2a76e.tar.xz
spack-557845cccc0523c34072dbeddf6035f54fb2a76e.zip
apptainer: new package (#30745)
Diffstat (limited to 'var/spack/repos/builtin/packages/apptainer/package.py')
-rw-r--r--var/spack/repos/builtin/packages/apptainer/package.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/apptainer/package.py b/var/spack/repos/builtin/packages/apptainer/package.py
new file mode 100644
index 0000000000..7733e75830
--- /dev/null
+++ b/var/spack/repos/builtin/packages/apptainer/package.py
@@ -0,0 +1,37 @@
+# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+from spack import *
+from spack.pkg.builtin.singularityce import SingularityBase
+
+
+# Apptainer is the new name of Singularity, piggy-back on the original package
+class Apptainer(SingularityBase):
+ '''Apptainer is an open source container platform designed to be simple, fast, and
+ secure. Many container platforms are available, but Apptainer is designed for
+ ease-of-use on shared systems and in high performance computing (HPC)
+ environments.
+
+ Needs post-install chmod/chown steps to enable full functionality.
+ See package definition or `spack-build-out.txt` build log for details,
+ e.g.::
+
+ tail -15 $(spack location -i apptainer)/.spack/spack-build-out.txt
+ '''
+
+ homepage = "https://apptainer.org"
+ url = "https://github.com/apptainer/apptainer/releases/download/v1.0.2/apptainer-1.0.2.tar.gz"
+ git = "https://github.com/apptainer/apptainer.git"
+
+ version('main', branch='main')
+ version('1.0.2', sha256='2d7a9d0a76d5574459d249c3415e21423980d9154ce85e8c34b0600782a7dfd3')
+
+ singularity_org = 'apptainer'
+ singularity_name = 'apptainer'
+ singularity_security_urls = (
+ "https://apptainer.org/docs/admin/main/security.html",
+ "https://apptainer.org/docs/admin/main/admin_quickstart.html#apptainer-security",
+ )