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
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.git
.indexion
.env
.env.*
!.env.example
**/node_modules
**/target
**/.output
**/.nitro
**/dist
db-data
backup
*.log
40 changes: 37 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
FROM oven/bun:debian

# Install python3, ffmpeg, and ca-certificates for yt-dlp and media processing
# Install the native build toolchain, Python for the CPU ONNX Runtime package,
# ffmpeg, and certificates for media processing.
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
ffmpeg \
build-essential \
ca-certificates \
curl \
ffmpeg \
libssl-dev \
pkg-config \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*

# dghs-imgutils-rs is a Rust N-API addon and requires a current Rust toolchain
# during bun install. The addon loads the runtime dynamically at application
# startup, so keep the compatible CPU runtime beside its provider library.
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- -y --profile minimal --default-toolchain stable
ENV PATH="/root/.cargo/bin:${PATH}"

RUN python3 -m pip install --no-cache-dir --target /tmp/onnxruntime \
onnxruntime==1.24.2 \
&& mkdir -p /usr/local/lib/onnxruntime \
&& find /tmp/onnxruntime/onnxruntime/capi -maxdepth 1 -type f \
-name 'libonnxruntime*.so*' \
-exec cp {} /usr/local/lib/onnxruntime/ \; \
&& test -f /usr/local/lib/onnxruntime/libonnxruntime.so.1.24.2 \
&& test -f /usr/local/lib/onnxruntime/libonnxruntime_providers_shared.so \
&& rm -rf /tmp/onnxruntime

ENV ORT_DYLIB_PATH="/usr/local/lib/onnxruntime/libonnxruntime.so.1.24.2"
ENV LD_LIBRARY_PATH="/usr/local/lib/onnxruntime"
ENV DGHS_BACKEND="cpu"
ENV DGHS_PRECISION="fp32"

WORKDIR /app

COPY . .

RUN bun install --frozen-lockfile
RUN bun run --cwd apps/server validate:native
RUN bun run --cwd apps/server build
2 changes: 1 addition & 1 deletion REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
| AI接続状態・latency | 実装済み | `ai.health` contract/router と V2 Config画面 |
| リロード後の前後メディア移動 | 実装済み | `apps/server/src/routes/v2/media-context.ts` と sessionStorage |
| Collectionのgrid / list表示 | 実装済み | `packages/ui/src/source-media-grid.tsx` と V2 Search / Source画面 |
| Tauriの `/v2/*` route adapter | 対応済み(Jobsを除く) | `apps/tauri/src/routes/v2/`。既存Tauri画面へ検索、Manager、Config、About、Sourcesを接続 |
| Tauriの `/v2/*` route adapter | 実装済み | `apps/tauri/src/routes/v2/` と `apps/tauri/src/routes/jobs.tsx`。既存Tauri画面へ検索、Manager、Jobs、Config、About、Sourcesを接続 |

未対応の画面やAPIを追加する場合は、loading / error / offline / retryとリアルタイム更新まで同じ画面内で接続します。
10 changes: 10 additions & 0 deletions apps/server/drizzle/0026_nebulous_metal_master.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE TABLE "search_snapshots" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"version" integer DEFAULT 1 NOT NULL,
"fingerprint" text NOT NULL,
"state" jsonb NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
CONSTRAINT "search_snapshots_fingerprint_unique" UNIQUE("fingerprint")
);
--> statement-breakpoint
CREATE INDEX "idx_search_snapshots_created_at" ON "search_snapshots" USING btree ("created_at");
Loading