Package Details: singularity-container 3.5.3-3

Git Clone URL: https://aur.archlinux.org/singularity-container.git (read-only, click to copy)
Package Base: singularity-container
Description: Container platform focused on supporting "Mobility of Compute".
Upstream URL: https://www.sylabs.io/singularity/
Licenses: BSD
Submitter: czk
Maintainer: czk
Last Packager: czk
Votes: 15
Popularity: 0.51
First Submitted: 2016-08-22 20:22
Last Updated: 2020-03-23 19:13

Pinned Comments

czk commented on 2019-01-09 17:47

You can submit patches to this PKGBUILD via GitHub PRs if you like: https://github.com/czka/AUR-singularity-container

Git config to keep both repos in sync easily:

$ git remote -v
origin  git@github.com:czka/AUR-singularity-container.git (fetch)
origin  git@github.com:czka/AUR-singularity-container.git (push)
origin  ssh+git://aur@aur.archlinux.org/singularity-container.git (push)

Latest Comments

1 2 3 Next › Last »

czk commented on 2020-03-22 13:12

@chwtu

the version printout is correct when building from source

But this PKGBUILD does build from source. Could you elaborate?

chwtu commented on 2020-03-04 16:20

No, since I did not think they would mind it because the version printout is correct when building from source. But nvm as long as everything else works...

czk commented on 2020-03-02 19:06

@chwtu

Why does singularity version of this install show bf6bdb5 instead of the expected version number

Good question. Have you tried asking the authors?

chwtu commented on 2020-02-24 21:59

I previuosly build Singularity from sources of their github and switched to this for convenience and clean removal of old builds.

Possibly a newbie question: Why does singularity version of this install show bf6bdb5 instead of the expected version number (currently 3.5.2)? This is not even the hash of the commit with this release tag.

czk commented on 2019-01-10 06:11

@gdolle

That's been already fixed with 3.0.2-2.

gdolle commented on 2019-01-09 18:09

Hi @czk

From the admin doc "Singularity must be installed as root for full functionality." [1,2]

Also for security purpose, you prefer to execute singularity containers as regular user by default with limited privileges

(PS. user privilege in a singularity container are the same than on the host).

[1] https://www.sylabs.io/guides/3.0/admin-guide/admin_quickstart.html#build- from-source

[2] https://singularity.lbl.gov/docs-security#can-i-install-singularity-as-a-user

czk commented on 2019-01-09 17:47

You can submit patches to this PKGBUILD via GitHub PRs if you like: https://github.com/czka/AUR-singularity-container

Git config to keep both repos in sync easily:

$ git remote -v
origin  git@github.com:czka/AUR-singularity-container.git (fetch)
origin  git@github.com:czka/AUR-singularity-container.git (push)
origin  ssh+git://aur@aur.archlinux.org/singularity-container.git (push)

czk commented on 2019-01-09 17:43

@flaviut

Applied. Thanks for sorting this out.

flaviut commented on 2019-01-09 15:54

Can you please apply this patch to ensure that everything gets installed in the correct directories?

diff --git a/PKGBUILD b/PKGBUILD
index [`eadcbb3`](https://aur.archlinux.org/cgit/aur.git/commit/?h=singularity-container&id=eadcbb3)..[`a052f61`](https://aur.archlinux.org/cgit/aur.git/commit/?h=singularity-container&id=a052f61) 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,7 @@ prepare() {
 build() {
   export GOPATH="${srcdir}/singularity"
   cd "${GOPATH}/src/github.com/sylabs/singularity"
-  ./mconfig --prefix="${pkgdir}/usr"
+  ./mconfig --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin
   cd builddir
   make
 }
@@ -30,5 +30,5 @@ build() {
 package() {
   export GOPATH="${srcdir}/singularity"
   cd "${GOPATH}/src/github.com/sylabs/singularity/builddir"
-  make PREFIX="${pkgdir}/usr" install
+  make DESTDIR="${pkgdir}" install
 }

czk commented on 2019-01-08 17:31

@gdolle

Please submit a PR to https://github.com/czka/AUR-singularity-container with the "install step (...) made as sudo" you suggest.

P.S.

And please explain why singularity exec with sudo is not good enough. Eg. this works for me:

singularity pull library://library/default/alpine

sudo singularity exec alpine_latest.sif echo "It works"

output: It works