David Barragán Merino f4256b8b80 🐳 Migrate media-processor image to DHI and wire up its build"
Migrate docker/images/Dockerfile.media-processor from ubuntu:26.04 to
dhi.io/node (Debian 13/trixie), which also drops the manual Node tarball
download since the base image ships it. The -dev tag stays as the final
image: fontforge, woff2 and the graphics libraries are needed at runtime.

scripts/build now assembles the release bundle under target/ (dist/ plus
the manifests and a generated setup script), the way the other modules do,
since esbuild leaves the runtime dependencies external. manage.sh gains
build-media-processor-bundle and build-media-processor-docker-image, both
wired into build-bundle and build-docker-images.

The CI workflows are intentionally left untouched: the module is still work
in progress and its images are not published yet, so this only enables
local builds."

Signed-off-by: David Barragán Merino <david.barragan@kaleidos.net>
2026-09-02 13:11:03 +02:00

46 lines
810 B
Bash
Executable File

#!/usr/bin/env bash
# NOTE: this script should be called from the parent directory to
# properly work
SCRIPT_DIR=$(dirname $0);
URL=${1:-http://localhost:9090}
echo "Preparing bundle for types from $URL"
set -ex
corepack enable;
corepack install;
# Ensure clean working directory
rm -rf dist;
rm -rf node_modules;
rm -rf packages/server/dist;
rm -rf packages/server/node_modules;
pushd $SCRIPT_DIR;
set +e
./build-types $URL;
set -e
popd
pnpm -r --filter "!mcp-plugin" install;
pnpm -r --filter "mcp-server" run build;
rsync -avr packages/server/dist/ ./dist/;
cp packages/server/package.json ./dist/;
cp pnpm-lock.yaml ./dist/;
touch ./dist/pnpm-workspace.yaml;
cat <<EOF | tee ./dist/setup
#!/usr/bin/env bash
set -e;
corepack enable;
corepack install;
pnpm install -P
EOF
chmod +x ./dist/setup;