This commit is contained in:
Timothy Jaeryang Baek
2026-07-06 00:21:38 -05:00
Unverified
parent 11f5292d48
commit fba47a2191
2 changed files with 81 additions and 0 deletions
+49
View File
@@ -14,6 +14,9 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check.outputs.skip }}
version: ${{ steps.pkg.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -69,6 +72,20 @@ jobs:
if: steps.check.outputs.skip != 'true'
run: python -m build --wheel
- name: Build Linux wheelhouse
if: steps.check.outputs.skip != 'true'
run: |
VERSION="${{ steps.pkg.outputs.version }}"
WHEEL="dist/cptr-${VERSION}-py3-none-any.whl"
mkdir -p wheelhouse
python -m pip download --dest wheelhouse "${WHEEL}[all]"
tar -czf "cptr-${VERSION}-linux-wheelhouse.tar.gz" -C wheelhouse .
- name: Generate checksums
if: steps.check.outputs.skip != 'true'
run: |
sha256sum dist/*.whl cptr-*-linux-wheelhouse.tar.gz > SHA256SUMS
- name: Upload dist artifacts
if: steps.check.outputs.skip != 'true'
uses: actions/upload-artifact@v4
@@ -76,12 +93,23 @@ jobs:
name: dist
path: dist/
- name: Upload release artifacts
if: steps.check.outputs.skip != 'true'
uses: actions/upload-artifact@v4
with:
name: release-assets
path: |
dist/*.whl
cptr-*-linux-wheelhouse.tar.gz
SHA256SUMS
publish:
needs: build
if: needs.build.outputs.skip != 'true'
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: write
id-token: write
steps:
- name: Download dist artifacts
@@ -90,7 +118,28 @@ jobs:
name: dist
path: dist/
- name: Download release artifacts
uses: actions/download-artifact@v4
with:
name: release-assets
path: release-assets/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# No API token needed - uses OIDC trusted publishing.
# Configure at: https://pypi.org/manage/project/cptr/settings/publishing/
- name: Upload GitHub release artifacts
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ needs.build.outputs.version }}
run: |
for attempt in {1..12}; do
if gh release view "v${VERSION}" >/dev/null 2>&1; then
gh release upload "v${VERSION}" release-assets/* --clobber
exit 0
fi
sleep 10
done
echo "GitHub release v${VERSION} was not found" >&2
exit 1
+32
View File
@@ -170,6 +170,38 @@ If you bind-mount a host directory to `/data`, make sure that directory is writa
The `:dev` image is also available and tracks the `main` branch.
## Air-gapped installation
Open WebUI Computer does not need internet access after it is installed. The Python wheel includes the built frontend assets, and the Docker image is self-contained.
On a connected machine:
```bash
pip download --dest wheelhouse 'cptr[all]'
docker pull ghcr.io/open-webui/computer:latest
docker save ghcr.io/open-webui/computer:latest -o cptr-image.tar
```
Transfer the artifacts, then install or run offline:
```bash
python -m venv .venv
. .venv/bin/activate
pip install --no-index --find-links ./wheelhouse 'cptr[all]'
cptr run --host 0.0.0.0
docker load -i cptr-image.tar
docker run --rm -it \
--network=none \
-p 8000:8000 \
-v cptr-data:/data \
-v "$PWD:/workspace" \
-w /workspace \
ghcr.io/open-webui/computer:latest
```
Core local features run from local assets. External services such as hosted model APIs, web search providers, messaging adapters, Git remotes, and MCP/OpenAPI servers still require reachable endpoints.
## Security model
Open WebUI Computer is designed as **your computer, served to you**. Once authenticated, a user has full access to the host filesystem and shell, equivalent to an SSH session. There is no path sandboxing and no per-user isolation.