create-openclaw-bot 5.8.5 → 5.8.9
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/README.md +18 -7
- package/README.vi.md +12 -6
- package/dist/server/local-server.js +252 -38
- package/dist/setup/data/index.js +1 -1
- package/dist/setup/shared/bot-config-gen.js +1 -1
- package/dist/setup/shared/common-gen.js +1 -0
- package/dist/setup/shared/docker-gen.js +5 -5
- package/dist/setup/shared/workspace-gen.js +1200 -645
- package/dist/web/app.js +3 -2
- package/package.json +1 -1
- package/dist/setup/data/skills.js +0 -159
|
@@ -211,7 +211,7 @@ if(touched){console.log('[patch-9router] Applied Codex compatibility patch.');}e
|
|
|
211
211
|
dockerfilePlugins = [],
|
|
212
212
|
dockerfileSkillInstallMode = 'none',
|
|
213
213
|
runtimeCommandParts = [],
|
|
214
|
-
volumeMount = '../../.openclaw:/
|
|
214
|
+
volumeMount = '../../.openclaw:/home/node/project/.openclaw\n - ../../:/mnt/project',
|
|
215
215
|
singleComposeName = 'oc-bot',
|
|
216
216
|
multiComposeName = 'oc-multibot',
|
|
217
217
|
singleAppContainerName = 'openclaw-bot',
|
|
@@ -276,7 +276,7 @@ if(touched){console.log('[patch-9router] Applied Codex compatibility patch.');}e
|
|
|
276
276
|
' cd "$NPM_DIR"',
|
|
277
277
|
' npm init -y 2>/dev/null || true',
|
|
278
278
|
' npm install @openclaw/zalouser@latest 2>/dev/null || echo "[entrypoint] warning: failed to install @openclaw/zalouser"',
|
|
279
|
-
' cd /
|
|
279
|
+
' cd /home/node/project',
|
|
280
280
|
' fi',
|
|
281
281
|
'}',
|
|
282
282
|
'ensure_skill() {',
|
|
@@ -337,7 +337,7 @@ ${patchLine}${browserInstall}
|
|
|
337
337
|
|
|
338
338
|
COPY entrypoint.sh /usr/local/bin/openclaw-entrypoint.sh
|
|
339
339
|
RUN chmod +x /usr/local/bin/openclaw-entrypoint.sh
|
|
340
|
-
WORKDIR /
|
|
340
|
+
WORKDIR /home/node/project
|
|
341
341
|
|
|
342
342
|
EXPOSE ${gatewayPort}
|
|
343
343
|
|
|
@@ -348,7 +348,7 @@ CMD ["/bin/sh", "/usr/local/bin/openclaw-entrypoint.sh"]`;
|
|
|
348
348
|
const docker9RouterEntrypointScript = build9RouterComposeEntrypointScript(routerPort);
|
|
349
349
|
const extraHostsBlock = ` extra_hosts:\n - "host.docker.internal:host-gateway"`;
|
|
350
350
|
|
|
351
|
-
const appEnvironmentBlock = ` environment:\n - OPENCLAW_HOME=/
|
|
351
|
+
const appEnvironmentBlock = ` environment:\n - OPENCLAW_HOME=/home/node/project/.openclaw\n - OPENCLAW_STATE_DIR=/home/node/project/.openclaw\n - OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=1\n - OPENCLAW_GATEWAY_PORT=${gatewayPort}\n - OPENCLAW_PORT=${gatewayPort}\n tmpfs:\n - /home/node/project/.openclaw/plugin-runtime-deps\n`;
|
|
352
352
|
|
|
353
353
|
let compose;
|
|
354
354
|
if (isMultiBot) {
|
|
@@ -462,7 +462,7 @@ services:
|
|
|
462
462
|
- 9router
|
|
463
463
|
${appEnvironmentBlock}${extraHostsBlock}\n volumes:
|
|
464
464
|
- ${volumeMount}
|
|
465
|
-
- openclaw-plugins:/
|
|
465
|
+
- openclaw-plugins:/home/node/project/.openclaw/npm
|
|
466
466
|
ports:
|
|
467
467
|
- "${gatewayPort}:${gatewayPort}"
|
|
468
468
|
|