File: README.md

package info (click to toggle)
singularity-container 4.1.5%2Bds4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,876 kB
  • sloc: asm: 14,840; sh: 3,190; ansic: 1,751; awk: 414; makefile: 413; python: 99
file content (62 lines) | stat: -rw-r--r-- 1,576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SingularityCE Lima Virtual Machine

This directory contains an example [lima VM](https://lima-vm.io/)
template, which can be used to easily install and work with
SingularityCE inside a Linux virtual machine on a macOS system.

The template:

* Is based on AlmaLinux 9.
* Supports both Intel and Silicon (ARM64) Macs.
* Installs the latest stable release of SingularityCE that has been
  published to the Fedora EPEL repositories.

To create a SingularityCE VM using the template:

* [Install homebrew on your Mac](https://brew.sh)
* Install lima with `brew install lima`
* Run `limactl start ./singularity-ce.yml`

Configuration of the VM will take a couple of minutes.

You can then enter the VM interactively, and run `singularity`
commmands inside it:

```shell
limactl shell singularity-ce
singularity run library://alpine
```

Your home directory will be shared from your Mac, into the VM. However, since
macOS places home directories under `/Users` (rather than `/home`),
SingularityCE will not mount your home directory in the container unless you
explicitly specify your macOS homedir, as shown here:

```shell
   limactl shell singularity-ce
   singularity run -H /Users/myuser library://alpine
```

Alternatively, to run SingularityCE directly:

```shell
limactl shell singularity-ce singularity run library://alpine
```

Or, with homedir mounting:

```shell
limactl shell singularity-ce singularity run -H /Users/myuser library://alpine
```

To stop the VM:

```shell
limactl stop singularity-ce
```

To delete the VM:

```shell
limactl delete singularity-ce
```