Skip to content

Commit d7193af

Browse files
authored
Merge pull request #1081 from afbjorklund/singularity-apptainer
The singularity package was renamed to apptainer
2 parents e4253d6 + 29694c6 commit d7193af

File tree

6 files changed

+59
-62
lines changed

6 files changed

+59
-62
lines changed

README.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
This is an *informal* translation of [`README.md` (revision df8bf9e7, 2022-Sep-23)](https://github.com/lima-vm/lima/blob/df8bf9e7ff198b01cd877ed425a73cbbaf8dec3b/README.md) in Japanese.
1+
This is an *informal* translation of [`README.md` (revision 725d7dca, 2022-Oct-8)](https://github.com/lima-vm/lima/blob/725d7dcac3e641905a444777bce8a65190db1692/README.md) in Japanese.
22
This translation might be out of sync with the English version.
33
Please refer to the [English `README.md`](README.md) for the latest information.
44

5-
[`README.md` (リビジョン df8bf9e7, 2022年9月23日)](https://github.com/lima-vm/lima/blob/df8bf9e7ff198b01cd877ed425a73cbbaf8dec3b/README.md)*非正式* な日本語訳です。
5+
[`README.md` (リビジョン 725d7dca, 2022年10月8日)](https://github.com/lima-vm/lima/blob/725d7dcac3e641905a444777bce8a65190db1692/README.md)*非正式* な日本語訳です。
66
英語版からの翻訳が遅れていることがあります。
77
最新の情報については[英語版 `README.md`](README.md)をご覧ください。
88

@@ -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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Distro:
88
- [`almalinux.yaml`](./almalinux.yaml): AlmaLinux
99
- [`alpine.yaml`](./alpine.yaml): ⭐Alpine Linux
1010
- [`archlinux.yaml`](./archlinux.yaml): ⭐Arch Linux
11-
- centos.yaml: ~~CentOS Linux 8~~ ([EOL](https://www.centos.org/centos-linux-eol/))
1211
- [`centos-stream.yaml`](./centos-stream.yaml): CentOS Stream 8
1312
- [`debian.yaml`](./debian.yaml): ⭐Debian GNU/Linux
1413
- [`fedora.yaml`](./fedora.yaml): ⭐Fedora
@@ -23,7 +22,8 @@ Container engines:
2322
- [`docker-rootful.yaml`](./docker-rootful.yaml): Docker (rootful)
2423
- [`podman.yaml`](./podman.yaml): Podman
2524
- [`podman-rootful.yaml`](./podman-rootful.yaml): Podman (rootful)
26-
- [`singularity.yaml`](./singularity.yaml): Singularity
25+
- [`apptainer.yaml`](./apptainer.yaml): Apptainer
26+
- [`apptainer-rootful.yaml`](./apptainer-rootful.yaml): Apptainer (rootful)
2727
- LXD is installed in the default Ubuntu template, so there is no `lxd.yaml`
2828

2929
Container image builders:
@@ -45,7 +45,13 @@ Others:
4545
- [`experimental/opensuse-tumbleweed.yaml`](experimental/opensuse-tumbleweed.yaml): [experimental] openSUSE Tumbleweed
4646
- [`experimental/9p.yaml`](experimental/9p.yaml): [experimental] use 9p mount type
4747
- [`experimental/riscv64.yaml`](experimental/riscv64.yaml): [experimental] RISC-V
48-
- [`experimental/apptainer.yaml`](./experimental/apptainer.yaml): [experimental] [Apptainer](https://apptainer.org/)
48+
49+
Lost+found:
50+
- ~`centos.yaml`~: Removed in Lima v0.8.0, as CentOS 8 reached [EOL](https://www.centos.org/centos-linux-eol/).
51+
Replaced by [`rocky.yaml`](./rocky.yaml), [`almalinux.yaml`](./almalinux.yaml), [`oraclelinux.yaml`](./oraclelinux.yaml),
52+
and [`centos-stream.yaml`](./centos-stream.yaml).
53+
- ~`singularity.yaml`~: Moved to [`apptainer-rootful.yaml`](./apptainer-rootful.yaml) in Lima v0.12.1, as Singularity was renamed to Apptainer.
54+
- ~`experimental/apptainer.yaml`~: Moved to [`apptainer.yaml`](./apptainer.yaml) in Lima v0.12.1
4955

5056
## Tier 1
5157

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)