跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

apptainer.yaml

38 行 · 1.2 KB历史下载
1# A template 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
5minimumLimaVersion: 2.0.0
6
7base:
8- template:_images/ubuntu-lts
9- template:_default/mounts
10
11containerd:
12 system: false
13 user: false
14provision:
15- mode: system
16 script: |
17 #!/bin/bash
18 set -eux -o pipefail
19 command -v apptainer >/dev/null 2>&1 && exit 0
20 # add the "Official PPA for Apptainer"
21 add-apt-repository -y ppa:apptainer/ppa
22 apt-get update
23 apt-get install -y apptainer
24 # Ubuntu 24.10 moved /tmp over to tmpfs
25 # Apptainer wants a regular filesystem TMPDIR:
26 # - Building images has a problem with "nodev"
27 # - The image might be too big to fit in memory
28 echo "APPTAINER_TMPDIR=/var/tmp" > /etc/profile.d/apptainer.sh
29 echo "export APPTAINER_TMPDIR" > /etc/profile.d/apptainer.sh
30probes:
31- script: |
32 #!/bin/bash
33 set -eux -o pipefail
34 if ! timeout 30s bash -c "until command -v apptainer >/dev/null 2>&1; do sleep 3; done"; then
35 echo >&2 "apptainer is not installed yet"
36 exit 1
37 fi
38 hint: See "/var/log/cloud-init-output.log" in the guest