跳到主要内容

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

浏览文件

faasd.yaml

54 行 · 1.6 KB历史下载
1# Deploy faasd (which installs a bundled containerd).
2#
3# It can be accessed from the host by authenticating with faas-cli;
4# the ports are already forwarded automatically by lima.
5
6message: |
7 # Get the faas-cli from one of following sources:
8 # package manager:
9 brew install faas-cli
10 #
11 # script:
12 curl -sLS https://cli.openfaas.com | sh
13 #
14 # You can now log into your gateway:
15 ------
16 export OPENFAAS_URL=http://localhost:8080
17 limactl shell faasd sudo cat /var/lib/faasd/secrets/basic-auth-password | faas-cli login -u admin --password-stdin
18 ------
19 #
20 # Once logged in, you can deploy your first function
21 ------
22 faas-cli store deploy NodeInfo
23 ------
24
25minimumLimaVersion: 2.0.0
26
27base: template:_images/ubuntu-lts
28
29# Mounts are disabled in this template, but can be enabled optionally.
30mounts: []
31
32# containerd is installed by the faasd installer script, not by Lima, so the values are set to false here.
33containerd:
34 system: false
35 user: false
36
37provision:
38- mode: user
39 script: |
40 #!/bin/sh
41 curl -sfL https://raw.githubusercontent.com/openfaas/faasd/master/hack/install.sh | bash -s -
42
43probes:
44- script: |
45 #!/bin/bash
46 set -eux -o pipefail
47 if ! timeout 30s bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/healthz)" != "200" ]]; do sleep 5; done'; then
48 echo >&2 "faasd is not running yet"
49 exit 1
50 fi
51 hint: |
52 The faasd service is not yet running.
53 Run "limactl shell faasd sudo journalctl -u faasd" to check the log.
54 If that is still empty, check the bottom of the log at "/var/log/cloud-init-output.log".