Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,41 @@ jobs:
echo "Skip GitHub Release for $GITHUB_REF_NAME. Official tags look like v1.2.3."
fi

native:
needs: official
if: needs.official.outputs.release == 'true'
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
runner: ubuntu-24.04
- arch: arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Export the native Linux runtime
env:
ARCH: ${{ matrix.arch }}
run: |
docker buildx build --platform "linux/$ARCH" --target native-distribution \
--output type=local,dest=artifacts/native-payload .
bash scripts/pack-native-release.sh artifacts/native-payload artifacts/native-release "$ARCH"
- name: Smoke test the archive on Debian 12
env:
ARCH: ${{ matrix.arch }}
run: bash scripts/qa-native-release.sh "artifacts/native-release/doca-linux-$ARCH-$GITHUB_REF_NAME.tar.gz" "$ARCH" "$GITHUB_REF_NAME"
- uses: actions/upload-artifact@v4
with:
name: native-release-${{ matrix.arch }}
path: artifacts/native-release/
if-no-files-found: error

release:
needs: official
if: needs.official.outputs.release == 'true'
Expand Down Expand Up @@ -79,6 +114,7 @@ jobs:
echo "Image-only deployment files and initialization instructions are attached as doca-deploy-${GITHUB_REF_NAME}.tar.gz with a SHA-256 checksum."
echo "The built plugin SDK and its SHA-256 checksum are also attached for rebuilding plugins against this release's public contract; this does not publish an npm package."
echo "Transfer this bundle to servers without GitHub access; no source checkout is needed."
echo "Native Debian 12 release assets are attached by the Linux build jobs after their smoke tests pass. See the deployment guide for the install command."
echo "The container image is separate. Pull the matching smartdoca/doca image or transfer it with docker save/load."
echo

Expand All @@ -87,3 +123,25 @@ jobs:
--title "$GITHUB_REF_NAME" \
--verify-tag \
--notes-file "$notes"

native-assets:
needs: [release, native]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: native-release-*
path: artifacts/native-release
- name: Publish both native bundles and their installer
env:
GH_TOKEN: ${{ github.token }}
run: |
amd64="artifacts/native-release/native-release-amd64"
arm64="artifacts/native-release/native-release-arm64"
cmp "$amd64/doca-install.sh" "$arm64/doca-install.sh"
gh release upload "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --clobber \
"$amd64/doca-linux-amd64-$GITHUB_REF_NAME.tar.gz" \
"$amd64/doca-linux-amd64-$GITHUB_REF_NAME.tar.gz.sha256" \
"$arm64/doca-linux-arm64-$GITHUB_REF_NAME.tar.gz" \
"$arm64/doca-linux-arm64-$GITHUB_REF_NAME.tar.gz.sha256"
gh release upload "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --clobber "$amd64/doca-install.sh"
86 changes: 50 additions & 36 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,24 @@ COPY packages ./packages
COPY docker/prune-runtime-modules.mjs docker/prune-runtime-build-inputs.mjs docker/split-runtime-modules.mjs docker/split-runtime-web.mjs ./docker/
RUN pnpm build \
&& node docker/prune-runtime-modules.mjs --apply /app \
&& node docker/prune-runtime-build-inputs.mjs --apply /app \
&& node docker/split-runtime-modules.mjs /app \
&& node docker/prune-runtime-build-inputs.mjs --apply /app

FROM build AS container-layers
RUN node docker/split-runtime-modules.mjs /app \
&& node docker/split-runtime-web.mjs /app

# Export with buildx --target native-distribution --output type=local.
FROM scratch AS native-distribution
COPY --from=build /usr/local/bin/node /bin/node
COPY --from=build /usr/local/LICENSE /LICENSE.node
COPY --from=build /app/package.json /app/tsconfig.json /app/
COPY --from=build /app/node_modules /app/node_modules
COPY --from=build /app/packages /app/packages
COPY --from=build /app/apps/server /app/apps/server
COPY --from=build /app/apps/browser-extension /app/apps/browser-extension
COPY --from=build /app/apps/web/dist /app/apps/web/dist
COPY LICENSE docker/pdf-requirements.txt docker/doca.service /

FROM ${NODE_IMAGE} AS render-runtime

WORKDIR /app
Expand Down Expand Up @@ -91,44 +105,44 @@ FROM render-runtime AS runtime
# AI's SQLite file defaults to ai.db alongside DOCA_SQLITE_PATH.
# Supply the browser-facing HTTP(S) DOCA_ORIGIN at runtime, behind a proxy.
COPY --link --from=build /app/package.json /app/tsconfig.json ./
COPY --link --from=build /app/artifacts/runtime-layers/common/node_modules ./node_modules
COPY --link --from=build /app/artifacts/runtime-layers/canvas/node_modules ./node_modules
COPY --link --from=build /app/artifacts/runtime-layers/markdown/node_modules ./node_modules
COPY --link --from=build /app/artifacts/runtime-layers/sheet/node_modules ./node_modules
COPY --link --from=build /app/artifacts/runtime-layers/slate/node_modules ./node_modules
COPY --link --from=build /app/artifacts/runtime-layers/slides/node_modules ./node_modules
COPY --link --from=build /app/artifacts/runtime-layers/metadata/node_modules ./node_modules
COPY --link --from=container-layers /app/artifacts/runtime-layers/common/node_modules ./node_modules
COPY --link --from=container-layers /app/artifacts/runtime-layers/canvas/node_modules ./node_modules
COPY --link --from=container-layers /app/artifacts/runtime-layers/markdown/node_modules ./node_modules
COPY --link --from=container-layers /app/artifacts/runtime-layers/sheet/node_modules ./node_modules
COPY --link --from=container-layers /app/artifacts/runtime-layers/slate/node_modules ./node_modules
COPY --link --from=container-layers /app/artifacts/runtime-layers/slides/node_modules ./node_modules
COPY --link --from=container-layers /app/artifacts/runtime-layers/metadata/node_modules ./node_modules
COPY --link --from=build /app/packages ./packages
COPY --link --from=build /app/apps/server ./apps/server
COPY --link docker/admin.sh ./docker/admin.sh
COPY --link --from=build /app/apps/browser-extension ./apps/browser-extension
COPY --link --from=build /app/artifacts/runtime-web-layers/cad ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/fonts ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-00 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-01 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-02 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-03 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-04 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-05 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-06 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/large-07 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-00 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-01 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-02 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-03 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-04 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-05 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-06 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-07 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-08 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-09 ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-0a ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-0b ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-0c ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-0d ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-0e ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/code-0f ./apps/web/dist
COPY --link --from=build /app/artifacts/runtime-web-layers/entry ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/cad ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/fonts ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-00 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-01 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-02 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-03 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-04 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-05 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-06 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/large-07 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-00 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-01 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-02 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-03 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-04 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-05 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-06 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-07 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-08 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-09 ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-0a ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-0b ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-0c ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-0d ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-0e ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/code-0f ./apps/web/dist
COPY --link --from=container-layers /app/artifacts/runtime-web-layers/entry ./apps/web/dist


# Mount a persistent volume here for SQLite, AI memory and local file storage.
Expand Down
2 changes: 1 addition & 1 deletion README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Necesitas Docker Engine, Docker Compose y una dirección HTTP(S) para el sitio. Descarga el archivo Compose, configura `DOCA_ORIGIN` y genera una clave maestra de credenciales exclusiva antes de arrancar.

```sh
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Prévoyez Docker Engine, Docker Compose et une URL HTTP(S) pour le site. Téléchargez le fichier Compose, renseignez `DOCA_ORIGIN` et générez une clé maîtresse dédiée pour les identifiants avant de démarrer.

```sh
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Docker Engine、Docker Compose、サイトを公開する HTTP(S) の URL を用意します。Compose ファイルをダウンロードし、`DOCA_ORIGIN` と専用に生成した資格情報用のマスターキーを設定してから起動します。

```sh
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Docker Engine, Docker Compose 및 사이트의 HTTP(S) 주소를 준비합니다. Compose 파일을 내려받고 `DOCA_ORIGIN`과 새로 생성한 자격 증명용 마스터 키를 설정한 뒤 실행합니다.

```sh
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml
```

```sh
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@

![Doca workspace with recent documents, a team knowledge library, and the AI assistant entry](docs/images/en/workspace.jpg)

For native Debian 12 setup, see the [interactive Linux installer](docs/deployment.md#native-linux-installation).

## Quick start with Docker

Requires Docker Engine, Docker Compose, and an HTTP(S) origin served by a reverse proxy. A fresh SQLite/local-storage installation needs only one YAML file: no Git, no source checkout, no seccomp JSON, and no external initialization scripts. Existing installations must read the [release requirements](https://workhold.github.io/doca/#/en/releases/0.3.10) and retain their project name, volumes, databases, attachments and master key.
Requires Docker Engine, Docker Compose, and an HTTP(S) origin served by a reverse proxy. A fresh SQLite/local-storage installation needs only one YAML file: no Git, no source checkout, no seccomp JSON, and no external initialization scripts. Existing installations must read the [release requirements](https://workhold.github.io/doca/#/en/releases/0.3.11) and retain their project name, volumes, databases, attachments and master key.

```sh
# 1. Download the standalone configuration into a permanent deployment directory
mkdir doca && cd doca
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml

# 2. Generate the master key with openssl rand -hex 32
# Edit compose.yaml: fill in DOCA_ORIGIN and DOCA_CREDENTIAL_MASTER_KEY
Expand Down Expand Up @@ -173,7 +175,7 @@ Map out a process on an infinite board.
- [Deployment and configuration](https://workhold.github.io/doca/#/en/operations/deployment)
- [Plugin development](https://workhold.github.io/doca/#/en/plugins/plugin-development)
- [HTTP API](https://workhold.github.io/doca/#/en/reference/api); the running application also provides `/api/openapi.json`.
- [Release notes](https://workhold.github.io/doca/#/en/releases/0.3.10)
- [Release notes](https://workhold.github.io/doca/#/en/releases/0.3.11)
- [Documentation source](docs/README.md)

For a documentation preview, run `pnpm docs:dev` and open `http://127.0.0.1:39140/#/en/`. `pnpm docs:check` verifies language editions and local links. See the GitHub Pages setup in [documentation maintenance](docs/documentation.md).
Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Подготовьте Docker Engine, Docker Compose и адрес сайта по HTTP(S). Скачайте файл Compose, задайте `DOCA_ORIGIN` и сгенерируйте отдельный мастер-ключ учётных данных. Затем запустите сервис.

```sh
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml
```

```sh
Expand Down
8 changes: 5 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@

![Doca 工作台:最近访问的文档、团队知识库与 AI 助手入口](docs/images/zh-cn/workspace.jpg)

使用 Debian 12 的服务器可查看[原生一键安装向导](docs/deployment.zh-CN.md#linux-原生一键安装)。

## Docker 快速开始

需要 Docker Engine、Docker Compose,以及通过反向代理访问的 HTTP(S) 地址。全新 SQLite/本地存储安装只需一个 YAML,无需 Git、源码、seccomp JSON 或外部初始化脚本。已有部署更换版本前,先阅读[发行要求](https://workhold.github.io/doca/#/zh-cn/releases/0.3.10),保留原项目名、持久卷、数据库、附件和主密钥。
需要 Docker Engine、Docker Compose,以及通过反向代理访问的 HTTP(S) 地址。全新 SQLite/本地存储安装只需一个 YAML,无需 Git、源码、seccomp JSON 或外部初始化脚本。已有部署更换版本前,先阅读[发行要求](https://workhold.github.io/doca/#/zh-cn/releases/0.3.11),保留原项目名、持久卷、数据库、附件和主密钥。

```sh
# 1. 在固定部署目录下载单文件配置
mkdir doca && cd doca
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml

# 2. 用 openssl rand -hex 32 生成主密钥
# 编辑 compose.yaml,填写 DOCA_ORIGIN 和 DOCA_CREDENTIAL_MASTER_KEY
Expand Down Expand Up @@ -173,7 +175,7 @@ Doca 提供 Streamable HTTP MCP 服务,让支持 MCP 的客户端发现已授
- [部署与配置](https://workhold.github.io/doca/#/zh-cn/operations/deployment)
- [插件开发](https://workhold.github.io/doca/#/zh-cn/plugins/plugin-development)
- [HTTP API](https://workhold.github.io/doca/#/zh-cn/reference/api),运行中的应用还提供 `/api/openapi.json`。
- [发行记录](https://workhold.github.io/doca/#/zh-cn/releases/0.3.10)
- [发行记录](https://workhold.github.io/doca/#/zh-cn/releases/0.3.11)
- [文档源码](docs/README.zh-CN.md)

预览文档时,执行 `pnpm docs:dev` 并打开 `http://127.0.0.1:39140/#/zh-cn/`。`pnpm docs:check` 校验语言版本和本地链接。GitHub Pages 设置见[文档维护](docs/documentation.zh-CN.md)。
Expand Down
2 changes: 1 addition & 1 deletion README.zh-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
請準備 Docker Engine、Docker Compose 以及網站的 HTTP(S) 公開位址。下載 Compose 檔案,填寫 `DOCA_ORIGIN` 並產生專用的憑證主金鑰,再啟動服務。

```sh
curl -fL https://github.com/workhold/doca/releases/download/v0.3.10/doca-compose-v0.3.10.yaml -o compose.yaml
curl -fL https://github.com/workhold/doca/releases/download/v0.3.11/doca-compose-v0.3.11.yaml -o compose.yaml
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@doca/desktop",
"version": "0.3.10",
"version": "0.3.11",
"license": "MIT",
"private": true,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "doca-desktop"
version = "0.3.10"
version = "0.3.11"
description = "Doca desktop client"
authors = ["Doca"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Doca",
"version": "0.3.10",
"version": "0.3.11",
"identifier": "com.smartdoca.desktop",
"build": {
"beforeDevCommand": "pnpm exec vite --host 127.0.0.1 --port 1420 --strictPort",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Doca",
"slug": "zhangxiaojia",
"scheme": "doca",
"version": "0.3.10",
"version": "0.3.11",
"icon": "./assets/icon.png",
"orientation": "portrait",
"userInterfaceStyle": "light",
Expand All @@ -23,7 +23,7 @@
},
"android": {
"package": "app.doca.mobile",
"versionCode": 9,
"versionCode": 10,
"usesCleartextTraffic": true,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
Expand Down
Loading
Loading