Skip to content

Commit 725d7dc

Browse files
committed
The singularity package was renamed to apptainer
In fedora, singularity-3.8.7 was replaced with apptainer-1.1.0 The package was split into apptainer and apptainer-suid (root). Use fedora instead of rocky, since it is smaller (and shorter). SingularityCE has not been packaged as dnf, only from sylabs.io Signed-off-by: Anders F Björklund <[email protected]>
1 parent b4cb081 commit 725d7dc

File tree

6 files changed

+50
-59
lines changed

6 files changed

+50
-59
lines changed

README.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ AlmaLinux, Alpine, Arch Linux, Debian, Fedora, openSUSE, Oracle Linux, Rocky が
342342
コンテナランタイムの例:
343343
- [`./examples/docker.yaml`](./examples/docker.yaml): Docker
344344
- [`./examples/podman.yaml`](./examples/podman.yaml): Podman
345-
- [`./examples/singularity.yaml`](./examples/singularity.yaml): Singularity
345+
- [`./examples/apptainer.yaml`](./examples/apptainer.yaml): Apptainer
346346

347347
コンテナイメージビルダの例:
348348
- [`./examples/buildkit.yaml`](./examples/buildkit.yaml): BuildKit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Yes, any container engine should work with Lima.
334334
Container runtime examples:
335335
- [`./examples/docker.yaml`](./examples/docker.yaml): Docker
336336
- [`./examples/podman.yaml`](./examples/podman.yaml): Podman
337-
- [`./examples/singularity.yaml`](./examples/singularity.yaml): Singularity
337+
- [`./examples/apptainer.yaml`](./examples/apptainer.yaml): Apptainer
338338

339339
Container image builder examples:
340340
- [`./examples/buildkit.yaml`](./examples/buildkit.yaml): BuildKit

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Container engines:
2323
- [`docker-rootful.yaml`](./docker-rootful.yaml): Docker (rootful)
2424
- [`podman.yaml`](./podman.yaml): Podman
2525
- [`podman-rootful.yaml`](./podman-rootful.yaml): Podman (rootful)
26-
- [`singularity.yaml`](./singularity.yaml): Singularity
26+
- [`apptainer.yaml`](./apptainer.yaml): Apptainer
27+
- [`apptainer-rootful.yaml`](./apptainer-rootful.yaml): Apptainer (rootful)
2728
- LXD is installed in the default Ubuntu template, so there is no `lxd.yaml`
2829

2930
Container image builders:
@@ -45,7 +46,6 @@ Others:
4546
- [`experimental/opensuse-tumbleweed.yaml`](experimental/opensuse-tumbleweed.yaml): [experimental] openSUSE Tumbleweed
4647
- [`experimental/9p.yaml`](experimental/9p.yaml): [experimental] use 9p mount type
4748
- [`experimental/riscv64.yaml`](experimental/riscv64.yaml): [experimental] RISC-V
48-
- [`experimental/apptainer.yaml`](./experimental/apptainer.yaml): [experimental] [Apptainer](https://apptainer.org/)
4949

5050
## Tier 1
5151

examples/singularity.yaml renamed to examples/apptainer-rootful.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Example to use Singularity instead of containerd & nerdctl
2-
# $ limactl start ./singularity.yaml
3-
# $ limactl shell singularity singularity run -u -B $HOME:$HOME docker://alpine
1+
# Example to use Apptainer instead of containerd & nerdctl
2+
# $ limactl start ./apptainer-rootful.yaml
3+
# $ limactl shell apptainer-rootful apptainer run -u -B $HOME:$HOME docker://alpine
44

5-
# Fedora provides Singularity in the default dnf.
6-
# Ubuntu does not seem to provide Singularity in the default apt.
5+
# Fedora provides Apptainer in the default dnf.
6+
# Ubuntu does not seem to provide Apptainer in the default apt.
77
images:
88
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/36/Cloud/x86_64/images/Fedora-Cloud-Base-36-1.5.x86_64.qcow2"
99
arch: "x86_64"
@@ -29,14 +29,14 @@ provision:
2929
script: |
3030
#!/bin/bash
3131
set -eux -o pipefail
32-
command -v singularity >/dev/null 2>&1 && exit 0
33-
dnf install -y singularity
32+
command -v apptainer >/dev/null 2>&1 && exit 0
33+
dnf -y install apptainer apptainer-suid
3434
probes:
3535
- script: |
3636
#!/bin/bash
3737
set -eux -o pipefail
38-
if ! timeout 30s bash -c "until command -v singularity >/dev/null 2>&1; do sleep 3; done"; then
39-
echo >&2 "singularity is not installed yet"
38+
if ! timeout 30s bash -c "until command -v apptainer >/dev/null 2>&1; do sleep 3; done"; then
39+
echo >&2 "apptainer is not installed yet"
4040
exit 1
4141
fi
42-
hint: See "/var/log/cloud-init-output.log". in the guest
42+
hint: See "/var/log/cloud-init-output.log" in the guest

examples/apptainer.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Example to use Apptainer instead of containerd & nerdctl
2+
# $ limactl start ./apptainer.yaml
3+
# $ limactl shell apptainer apptainer run -u -B $HOME:$HOME docker://alpine
4+
5+
# Fedora provides Apptainer in the default dnf.
6+
# Ubuntu does not seem to provide Apptainer in the default apt.
7+
images:
8+
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/36/Cloud/x86_64/images/Fedora-Cloud-Base-36-1.5.x86_64.qcow2"
9+
arch: "x86_64"
10+
digest: "sha256:ca9e514cc2f4a7a0188e7c68af60eb4e573d2e6850cc65b464697223f46b4605"
11+
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/36/Cloud/aarch64/images/Fedora-Cloud-Base-36-1.5.aarch64.qcow2"
12+
arch: "aarch64"
13+
digest: "sha256:5c0e7e99b0c542cb2155cd3b52bbf51a42a65917e52d37df457d1e9759b37512"
14+
mounts:
15+
- location: "~"
16+
- location: "/tmp/lima"
17+
writable: true
18+
containerd:
19+
system: false
20+
user: false
21+
provision:
22+
- mode: system
23+
script: |
24+
#!/bin/bash
25+
set -eux -o pipefail
26+
command -v apptainer >/dev/null 2>&1 && exit 0
27+
dnf -y install apptainer
28+
probes:
29+
- script: |
30+
#!/bin/bash
31+
set -eux -o pipefail
32+
if ! timeout 30s bash -c "until command -v apptainer >/dev/null 2>&1; do sleep 3; done"; then
33+
echo >&2 "apptainer is not installed yet"
34+
exit 1
35+
fi
36+
hint: See "/var/log/cloud-init-output.log" in the guest

examples/experimental/apptainer.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)