Package Details: singularity-container 3.3.0-1

Git Clone URL: https://aur.archlinux.org/singularity-container.git (read-only)
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: 10
Popularity: 0.171731
First Submitted: 2016-08-22 20:22
Last Updated: 2019-08-03 16:57

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 Next › Last »

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

gdolle commented on 2019-01-08 13:03

There's a problem with the current install step, it should be made as sudo, otherwise you'll get an error while running the container (mounting squashfs). You can try

singularity pull library://library/default/ubuntu:16.04
singularity exec ubuntu_16.04.sif echo "It works"

PS: This could be added in a test() I think

czk commented on 2018-10-14 09:10

@alexpe87 Thanks. Can you make it a PR on https://github.com/czka/AUR-singularity-container? I have it mirrored on this singularity-container AUR Git repo. So changes applied via GitHub get pushed to AUR as well.

By "mirrored" I mean a following Git setup on my side:

$ 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)

alexpe87 commented on 2018-10-11 12:14

Updated the recipe here, you could copy that over:

https://gist.github.com/apeltzer/09e06ae3ced3a0999abc7f8230a3be7d

Philzli commented on 2018-09-16 16:23

Update the website to point to the new location https://www.sylabs.io/