PostgreSQL and MySQL backups run through paired outposts, with operator sign-in, off-site copies, and legacy import. Retention stays on each orbit, so the unused retention console is removed. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
900 B
Docker
29 lines
900 B
Docker
FROM node:22-bookworm AS web
|
|
WORKDIR /build
|
|
COPY web/package.json web/package-lock.json* ./
|
|
RUN npm ci
|
|
COPY web/ ./
|
|
RUN npm run build
|
|
|
|
FROM rust:1.88-bookworm AS rust
|
|
WORKDIR /build
|
|
COPY Cargo.toml Cargo.lock* ./
|
|
COPY crates ./crates
|
|
COPY --from=web /build/dist ./web/dist
|
|
RUN cargo build --release -p tessera-hub
|
|
|
|
FROM restic/restic:0.19.1 AS restic
|
|
FROM mysql:8.4 AS mysql-client
|
|
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates postgresql-client libstdc++6 && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=rust /build/target/release/tessera-hub /usr/local/bin/
|
|
COPY --from=restic /usr/bin/restic /usr/local/bin/restic
|
|
COPY --from=mysql-client /usr/bin/mysqldump /usr/local/bin/mysqldump
|
|
RUN restic version && mysqldump --version
|
|
ENV TESSERA_LISTEN=0.0.0.0:8787
|
|
ENV TESSERA_DATA_DIR=/data
|
|
EXPOSE 8787
|
|
VOLUME ["/data"]
|
|
ENTRYPOINT ["tessera-hub"]
|