Files
stpweb/.deprecated/quartz/Dockerfile
adamfandClaude Opus 5.5 8d7606bbe8
Deploy with Docker Compose / deploy (push) Successful in 1m1s
Retire quartz, hasura and autoheal into .deprecated/
Quartz was already replaced by silverbullet-public; its build context moves
to .deprecated/quartz. Hasura and autoheal are removed from the stack, with
their compose services (and Hasura's nginx blocks) kept verbatim under
.deprecated/ alongside a README on how to bring each back.

Removes the /hasura/ route from both nginx templates and the envsubst
allow-list, and updates the docs and comments that referred to the three
services. With autoheal gone nothing restarts an unhealthy container; the
healthchecks are now informational only, and the docs say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-01 14:58:17 +01:00

50 lines
2.1 KiB
Docker

# =============================================================================
# Quartz image — builds the Obsidian notes site.
#
# STATUS: RETIRED (not live). /notes/ is now served by the read-only
# silverbullet-public service; this directory is no longer referenced by
# docker-compose.yml or nginx. Kept for reference / rollback: restoring it means
# re-adding the service, the QUARTZ_* vars to nginx/entrypoint.sh's allow-list,
# and pointing /notes/ back at it (with the prefix-strip rewrite Quartz needs).
#
# HOW THE SOURCE IS OBTAINED: Quartz is not an npm package you depend on, it is
# an application you clone and configure. So the image `git clone`s the
# upstream repo at build time, which is why `git` is installed. --depth 1
# --branch pins to an exact tag (QUARTZ_VERSION, overridable as a build ARG)
# and fetches no history — a shallow clone is much faster on a Pi and the
# history is of no use here.
#
# Because this clone happens at build time, upstream Quartz is only updated
# when the image is rebuilt with a bumped QUARTZ_VERSION. The tag pin is the
# thing stopping an upstream change from breaking the notes site on a routine
# redeploy.
#
# gettext-base supplies `envsubst` for rendering quartz.config.ts from its
# template at container start (see quartz/entrypoint.sh).
#
# quartz.config.ts.template and quartz.layout.ts are copied in AFTER the clone
# so they land on top of the upstream defaults — layout is used as-is, config
# is templated at runtime because it needs DOMAIN.
#
# node:22-slim is multi-arch, so this builds unchanged on the Pi.
# =============================================================================
FROM node:22-slim
RUN apt-get update \
&& apt-get install --yes git gettext-base \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /quartz
ARG QUARTZ_VERSION=v4.4.0
RUN git clone --depth 1 --branch ${QUARTZ_VERSION} \
https://github.com/jackyzha0/quartz.git . \
&& npm ci
COPY quartz.config.ts.template /quartz/quartz.config.ts.template
COPY quartz.layout.ts /quartz/quartz.layout.ts
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]