Files
openworker/deploy/service/install.sh
Rohit PrasadandDevika Verma d53e058eda Introduce OpenWorker Harness SDK (in beta), agent service cluster and relevant developer documentation (#844)
Allow developers to easily build AI apps without worrying about the harness part.
Bundles the Rust agent runtime as a SDK (Rust and TypeScript) for building desktop and web applications. Applications can manage a local harness or connect to an authenticated harness service on k8s with separately scaled workers and sandbox execution.

The implementation is primarily contained in harness/, with deployment tooling in deploy/, Markdown guides in docs/harness/guides/, and the static documentation site in docs-site/. It does not replace the existing Python harness or migrate OpenWorker Desktop.

Co-authored-by: Devika Verma <devikaverma11@gmail.com>
2026-11-06 09:45:20 -08:00

42 lines
1.3 KiB
Bash

#!/bin/sh
set -eu
# Installer only; no Docker socket, no privilege escalation in runtime roles.
mkdir -p /service /gateway /ingress /postgres /runner /bootstrap
cp /input/config.json /service/config.json
cp /input/database-url /service/database-url
cp /input/pg-ca.crt /service/pg-ca.crt
chown -R 1000:1000 /service
chmod 0500 /service
chmod 0400 /service/*
cp /input/openshell/* /gateway/
chown -R 1000:1000 /gateway
chmod 0500 /gateway
chmod 0400 /gateway/*
cp /input/api.crt /ingress/tls.crt
cp /input/api.key /ingress/tls.key
cp /input/nginx.conf /ingress/nginx.conf
chown -R 101:101 /ingress
chmod 0500 /ingress
chmod 0400 /ingress/*
cp /input/pg.crt /postgres/tls.crt
cp /input/pg.key /postgres/tls.key
cp /input/pg-password /postgres/password
chown -R 70:70 /postgres
chmod 0500 /postgres
chmod 0400 /postgres/*
cp /input/admin-token /bootstrap/admin-token
chown -R 1000:1000 /bootstrap
chmod 0500 /bootstrap
chmod 0400 /bootstrap/*
cp /input/runner /runner/openworker
chown -R 1000:1000 /runner
chmod 0555 /runner /runner/openworker
mkdir -p /models
for provider in openai anthropic; do
if [ -f "/input/model-$provider" ]; then cp "/input/model-$provider" "/models/$provider"; fi
done
chown -R 1000:1000 /models
chmod 0500 /models
find /models -type f -exec chmod 0400 {} \;