Files
openclaw/scripts/e2e/lib/docker-selected-plugins/scenario.sh
Peter Steinberger a238dead67 fix(docker): package selected external plugins in source-built images (#103629)
* 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
2026-07-10 13:00:50 +01:00

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