Initial commit

This commit is contained in:
2026-11-15 18:15:03 -05:00
commit b76aea2899
36 changed files with 9424 additions and 0 deletions

31
Dockerfile.demo Normal file
View File

@@ -0,0 +1,31 @@
# The fake FreshRSS from the demo stack.
#
# It serves the same in-process stand-in the test suite uses, which is why this
# image needs tests/ and tools/ -- the production image copies only app/ and stays
# minimal. Nothing here talks to a real account: the account is three feeds of
# sample articles held in memory.
FROM python:3.13-alpine
RUN adduser -D -u 10001 -h /srv app
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
WORKDIR /srv
COPY app/ ./app/
COPY tests/ ./tests/
COPY tools/ ./tools/
USER app
EXPOSE 8099
# Only says the fake server is answering; it is what the catalogue waits for.
HEALTHCHECK --interval=2s --timeout=3s --start-period=2s --retries=15 \
CMD ["python", "-c", "import sys, urllib.request; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8099/healthz', timeout=2).status == 200 else 1)"]
ENTRYPOINT ["python", "tools/fake-freshrss.py"]
# Binds the whole container interface so the catalogue can reach it by service
# name, and writes its generated configuration to /tmp purely so the demo
# credentials show up in the log.
CMD ["--api-bind=0.0.0.0", "--api-port=8099", "--api-public-host=fresh", \
"--app-host=0.0.0.0", "--app-port=8080", "--write-config=/tmp/config.json"]