eigen-skills 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +5 -0
- package/package.json +1 -1
- package/skills/eigen-compute/SKILL.md +65 -1
package/.env
ADDED
package/package.json
CHANGED
|
@@ -63,6 +63,7 @@ ecloud compute app create --name my-app --language typescript
|
|
|
63
63
|
|
|
64
64
|
### Deploy from Dockerfile (recommended)
|
|
65
65
|
|
|
66
|
+
**Interactive deploy:**
|
|
66
67
|
```bash
|
|
67
68
|
ecloud compute app deploy
|
|
68
69
|
```
|
|
@@ -70,8 +71,46 @@ ecloud compute app deploy
|
|
|
70
71
|
- Choose **Linux/AMD64** (standard TEE architecture)
|
|
71
72
|
- Estimated cost: ~0.008 ETH per deploy (Sepolia testnet)
|
|
72
73
|
|
|
74
|
+
**Non-interactive deploy (for scripting / CI):**
|
|
75
|
+
```bash
|
|
76
|
+
ecloud compute app deploy \
|
|
77
|
+
--name my-app \
|
|
78
|
+
--skip-profile \
|
|
79
|
+
--image-ref my-app:latest \
|
|
80
|
+
--build-caddyfile
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| Flag | Purpose |
|
|
84
|
+
|------|---------|
|
|
85
|
+
| `--name <name>` | App name (skips interactive prompt) |
|
|
86
|
+
| `--skip-profile` | Skip machine profile selection (uses default) |
|
|
87
|
+
| `--image-ref <ref>` | Docker image reference tag |
|
|
88
|
+
| `--build-caddyfile` | **Auto-inject Caddy + TLS** — the CLI reads your `Caddyfile`, installs Caddy into the image, and wires up TLS certs automatically. You do NOT need to install Caddy in your Dockerfile or reference TLS cert paths. |
|
|
89
|
+
|
|
73
90
|
**IMPORTANT:** "Deploy from registry" method is unreliable — apps often end up in `Status: Unknown` with no error. Always use "Build from Dockerfile".
|
|
74
91
|
|
|
92
|
+
### TLS with `--build-caddyfile` (recommended)
|
|
93
|
+
|
|
94
|
+
When you pass `--build-caddyfile`, the ecloud CLI handles all TLS setup. Your project only needs a minimal `Caddyfile` that reverse-proxies to your app:
|
|
95
|
+
|
|
96
|
+
```caddyfile
|
|
97
|
+
:80 {
|
|
98
|
+
reverse_proxy 127.0.0.1:3000
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The CLI automatically:
|
|
103
|
+
- Installs Caddy into the Docker image
|
|
104
|
+
- Mounts TLS certs from the TEE's `/run/tls/` directory
|
|
105
|
+
- Sources sealed env vars via `compute-source-env.sh`
|
|
106
|
+
- Configures HTTPS on the deployed domain
|
|
107
|
+
|
|
108
|
+
**You do NOT need to:**
|
|
109
|
+
- Add `RUN apk add caddy` (or equivalent) in your Dockerfile
|
|
110
|
+
- Reference `/run/tls/fullchain.pem` or `/run/tls/privkey.pem` in your Caddyfile
|
|
111
|
+
- Source `compute-source-env.sh` manually in your entrypoint
|
|
112
|
+
- Expose ports 80 or 443 — only expose your app port (e.g., 3000)
|
|
113
|
+
|
|
75
114
|
### Check app status
|
|
76
115
|
|
|
77
116
|
```bash
|
|
@@ -125,6 +164,16 @@ Inside the TEE container, these are available:
|
|
|
125
164
|
|
|
126
165
|
### Entrypoint pattern for TEE
|
|
127
166
|
|
|
167
|
+
**With `--build-caddyfile` (recommended)** — no manual env sourcing needed:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
#!/bin/sh
|
|
171
|
+
set -e
|
|
172
|
+
node server.js
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**Without `--build-caddyfile`** — you must source sealed secrets manually:
|
|
176
|
+
|
|
128
177
|
```bash
|
|
129
178
|
#!/bin/bash
|
|
130
179
|
# Source sealed secrets
|
|
@@ -138,13 +187,28 @@ node server.js
|
|
|
138
187
|
|
|
139
188
|
### Dockerfile pattern for TEE
|
|
140
189
|
|
|
190
|
+
**With `--build-caddyfile` (recommended)** — minimal Dockerfile, only expose your app port:
|
|
191
|
+
|
|
141
192
|
```dockerfile
|
|
142
|
-
FROM node:20-slim
|
|
193
|
+
FROM --platform=linux/amd64 node:20-slim
|
|
143
194
|
WORKDIR /app
|
|
144
195
|
COPY package*.json ./
|
|
145
196
|
RUN npm ci --production
|
|
146
197
|
COPY . .
|
|
147
198
|
EXPOSE 3000
|
|
199
|
+
CMD ["./start.sh"]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**Without `--build-caddyfile`** — you must install Caddy and expose TLS ports yourself:
|
|
203
|
+
|
|
204
|
+
```dockerfile
|
|
205
|
+
FROM --platform=linux/amd64 node:20-slim
|
|
206
|
+
WORKDIR /app
|
|
207
|
+
RUN apt-get update && apt-get install -y caddy
|
|
208
|
+
COPY package*.json ./
|
|
209
|
+
RUN npm ci --production
|
|
210
|
+
COPY . .
|
|
211
|
+
EXPOSE 80 443 3000
|
|
148
212
|
ENTRYPOINT ["bash", "entrypoint.sh"]
|
|
149
213
|
```
|
|
150
214
|
|