mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-01 05:48:18 +00:00
Run the CLI subprocess suites and benchmark tools as native TypeScript with node:test, and move them under test/e2e-cli. Update CI and Compose runners, run local smoke tests on Linux, macOS, and Windows, and collect source-mapped CLI coverage with c8.
27 lines
905 B
Docker
27 lines
905 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM node:26-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates curl unzip python3 make g++ iproute2 libjpeg-turbo-progs time \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /workspace
|
|
|
|
COPY package.json package-lock.json ./
|
|
COPY src/apps/cli/package.json ./src/apps/cli/package.json
|
|
COPY src/apps/webapp/package.json ./src/apps/webapp/package.json
|
|
COPY src/apps/webpeer/package.json ./src/apps/webpeer/package.json
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN NODE_OPTIONS=--max-old-space-size=3072 LIVESYNC_CLI_TEST_SUPPORT=1 npm run build -w self-hosted-livesync-cli
|
|
|
|
WORKDIR /workspace/test/e2e-cli
|
|
|
|
COPY test/bench-network/run-bench.sh /usr/local/bin/run-livesync-bench
|
|
COPY test/e2e-cli/run-cli-e2e.sh /usr/local/bin/run-livesync-cli-e2e
|
|
RUN chmod +x /usr/local/bin/run-livesync-bench /usr/local/bin/run-livesync-cli-e2e
|
|
|
|
CMD ["run-livesync-bench"]
|