feat: support specifying local offline package path via AI_WORKSPACE_OFFLINE_PACKAGE

This commit is contained in:
Haitao Pan 2026-06-23 14:05:08 +08:00
parent 4a36b22bf0
commit df282ae735
4 changed files with 18 additions and 1 deletions

View File

@ -40,6 +40,14 @@ export OLLAMA_API_KEY="your-key-here"
curl -sfL https://raw.githubusercontent.com/ai-workspace-lab/xworkspace-console/main/scripts/setup-ai-workspace-all-in-one.sh | bash -
```
3. Offline installation:
Use a pre-downloaded deployment package by specifying its file path:
```bash
export AI_WORKSPACE_OFFLINE_PACKAGE="/path/to/offline-package.tar.gz"
curl -sfL https://raw.githubusercontent.com/ai-workspace-lab/xworkspace-console/main/scripts/setup-ai-workspace-all-in-one.sh | bash -
```
### Uninstallation
```bash

View File

@ -64,6 +64,13 @@ AI_WORKSPACE_OFFLINE_RELEASE_TAG=offline-ai-workspace-<run_number> \
bash scripts/setup-ai-workspace-all-in-one.sh
```
To use a specific, pre-downloaded offline deployment package from the local file system:
```bash
AI_WORKSPACE_OFFLINE_PACKAGE=/path/to/offline-package.tar.gz \
bash scripts/setup-ai-workspace-all-in-one.sh
```
You can also extract the target package on the host and run:
```bash

View File

@ -42,6 +42,7 @@ curl -sfL https://raw.githubusercontent.com/ai-workspace-lab/xworkspace-console/
| `LITELLM_API_CADDY_STRICT_WHITELIST` | false | Enable with strict deployments when LiteLLM is exposed through Caddy. |
| `XWORKSPACE_CONSOLE_ENABLE_XRDP` | false | Enable only when remote desktop access is required. |
| `XWORKMATE_BRIDGE_DOMAIN` | host-specific | Set the public Bridge domain, for example `acp-bridge.onwalk.net`. |
| `AI_WORKSPACE_OFFLINE_PACKAGE` | none | Use a pre-downloaded offline package for installation (e.g., `/path/to/offline.tar.gz`). |
## 4. Target Host Example

View File

@ -866,7 +866,8 @@ run_offline_installer() {
XWORKSPACE_CONSOLE_HOME \
XWORKSPACE_CONSOLE_SOURCE_REPO \
XWORKSPACE_CONSOLE_SOURCE_VERSION \
AI_WORKSPACE_APT_LOCK_TIMEOUT; do
AI_WORKSPACE_APT_LOCK_TIMEOUT \
AI_WORKSPACE_OFFLINE_PACKAGE; do
if [ -n "${!env_name+x}" ]; then
env_args+=("$env_name=${!env_name}")
fi