absolute madmax

This commit is contained in:
2026-04-12 22:13:42 +10:00
parent 428da5c8c3
commit 942fb165cb

View File

@@ -25,11 +25,13 @@ spec:
args: args:
- | - |
set -e set -e
# Bootstrap if config doesn't exist
if [ ! -f ~/.openclaw/openclaw.json ]; then if [ ! -f ~/.openclaw/openclaw.json ]; then
node /app/openclaw.mjs onboard --non-interactive --accept-risk \ node /app/openclaw.mjs onboard --non-interactive --accept-risk \
--gateway-port 18789 --gateway-bind lan \ --gateway-port 18789 --gateway-bind lan \
--skip-daemon --skip-channels --skip-skills --skip-health --skip-ui --skip-daemon --skip-channels --skip-skills --skip-health --skip-ui
fi fi
<<<<<<< HEAD
# Patch tokens from OCP secrets into openclaw.json if not already set (idempotent) # Patch tokens from OCP secrets into openclaw.json if not already set (idempotent)
node -e " node -e "
const fs = require('fs'); const fs = require('fs');
@@ -76,6 +78,9 @@ spec:
fs.writeFileSync(process.env.HOME + '/.openclaw/openclaw.json', JSON.stringify(d, null, 2)); fs.writeFileSync(process.env.HOME + '/.openclaw/openclaw.json', JSON.stringify(d, null, 2));
console.log('Tokens patched from OCP env vars'); console.log('Tokens patched from OCP env vars');
" "
=======
# Run the gateway
>>>>>>> cc0bb81 (rolled back minimax's madness)
exec node /app/openclaw.mjs gateway --port 18789 --bind lan exec node /app/openclaw.mjs gateway --port 18789 --bind lan
ports: ports:
- name: gateway - name: gateway
@@ -95,10 +100,7 @@ spec:
- name: NODE_OPTIONS - name: NODE_OPTIONS
value: "--dns-result-order=ipv4first --no-network-family-autoselection --import /home/node/canvas-patch.mjs" value: "--dns-result-order=ipv4first --no-network-family-autoselection --import /home/node/canvas-patch.mjs"
- name: OPENCLAW_GATEWAY_TOKEN - name: OPENCLAW_GATEWAY_TOKEN
valueFrom: value: 356a221b029c582ea983c21b8b01a6689fafb1e0182e8af7
secretKeyRef:
name: gateway-token
key: token
- name: GITHUB_TOKEN - name: GITHUB_TOKEN
valueFrom: valueFrom:
secretKeyRef: secretKeyRef: