mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 13:06:10 +00:00
* build(docker): package selected external plugins * test(docker): auto-clean plugin fixture * fix(docker): preserve selected image provenance * fix(docker): accept manifest-only plugin selections * fix(docker): resolve selected plugin manifest ids * fix(docker): isolate resolved plugin selection
29 lines
813 B
Bash
Executable File
29 lines
813 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export HOME=/tmp/openclaw-docker-selected-plugins
|
|
export OPENCLAW_STATE_DIR="$HOME/.openclaw"
|
|
export OPENCLAW_CONFIG_PATH="$OPENCLAW_STATE_DIR/openclaw.json"
|
|
export OPENCLAW_DISABLE_BUNDLED_SOURCE_OVERLAYS=1
|
|
|
|
mkdir -p "$OPENCLAW_STATE_DIR"
|
|
node --input-type=module <<'NODE'
|
|
import fs from "node:fs";
|
|
|
|
const entries = Object.fromEntries(
|
|
["clickclack", "slack", "msteams"].map((id) => [id, { enabled: true }]),
|
|
);
|
|
fs.writeFileSync(
|
|
process.env.OPENCLAW_CONFIG_PATH,
|
|
`${JSON.stringify({ plugins: { entries } }, null, 2)}\n`,
|
|
{ mode: 0o600 },
|
|
);
|
|
NODE
|
|
|
|
for plugin_id in clickclack slack msteams clawrouter; do
|
|
node /app/openclaw.mjs plugins inspect "$plugin_id" --runtime --json \
|
|
>"/tmp/openclaw-${plugin_id}-inspect.json"
|
|
done
|
|
|
|
node /openclaw-e2e/assertions.mjs
|