feat(news-aq): implement daily 00:00 GMT current-events pipeline, TZ handling, Nov 2 dossier, and RHEL packaging

This commit is contained in:
Hermes Agent committed 2026-11-02 21:21:53 +00:00
1 parent ed3b3a2b60
commit 9861367f34
34 files changed
+10736 -121

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
# Containerfile (RHEL 9 / UBI 9 Minimal)
# Rootless Podman OCI Container for current-events-isopsephic-exegesis daily 00:00 GMT pipeline
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
LABEL org.opencontainers.image.title="ingglish-isopsephic-exegesis" \
org.opencontainers.image.description="Daily 00:00 GMT Current-Events Ingglish AQ & Hyperdope-Gematria CI Pipeline" \
org.opencontainers.image.version="0.1.0" \
org.opencontainers.image.licenses="MIT"
# Pin container TZ strictly to UTC/GMT
ENV TZ=UTC \
CRON_TZ=UTC \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
NODE_PATH=/opt/ingglish-exegesis/node_modules \
HERMES_SKIP_DICT_REBUILD=0
# Install Python 3, Node.js 20 AppStream, words (/usr/share/dict/words), curl, tar, xz
RUN microdnf module enable -y nodejs:20 && \
microdnf install -y python3 python3-pip nodejs words curl tar xz gzip findutils && \
microdnf clean all
# Create application and state directories
RUN mkdir -p /opt/ingglish-exegesis/scripts \
/usr/share/hermes/skills \
/workspace/ingglish-aq-archive
# Copy pre-vendored node_modules (ingglish + @ingglish/dictionary) for zero-network runtime
COPY vendor/node_modules /opt/ingglish-exegesis/node_modules
COPY scripts/collect_news_aq.py /opt/ingglish-exegesis/scripts/collect_news_aq.py
COPY scripts/ci_provision_ingglish.py /opt/ingglish-exegesis/scripts/ci_provision_ingglish.py
COPY skills/ /usr/share/hermes/skills/
RUN chmod 0755 /opt/ingglish-exegesis/scripts/collect_news_aq.py \
/opt/ingglish-exegesis/scripts/ci_provision_ingglish.py
WORKDIR /workspace
ENTRYPOINT ["/usr/bin/python3", "/opt/ingglish-exegesis/scripts/collect_news_aq.py"]
CMD ["--mode", "closing-bell", "--archive-dir", "/workspace/ingglish-aq-archive", "--workdir", "/opt/ingglish-exegesis"]
@@ -0,0 +1,27 @@
# ~/.config/containers/systemd/ingglish-exegesis.container (Rootless Podman Quadlet)
# Or /etc/containers/systemd/ingglish-exegesis.container (Rootful systemd generator)
[Unit]
Description=Current Events Isopsephic Exegesis Daily 00:00 GMT Collector & CI Container
After=network-online.target
Wants=network-online.target
[Container]
Image=localhost/ingglish-isopsephic-exegesis:0.1.0
ContainerName=ingglish-exegesis-daily
# Pin TZ=UTC inside the container regardless of RHEL host /etc/localtime
Environment=TZ=UTC
Environment=CRON_TZ=UTC
Environment=NODE_PATH=/opt/ingglish-exegesis/node_modules
EnvironmentFile=-%h/.hermes/.env
# SELinux :Z flag relabels bind-mounted archive directory with container_file_t MCS category
Volume=/var/lib/ingglish-aq-archive:/workspace/ingglish-aq-archive:Z
WorkingDir=/workspace
Exec=--mode closing-bell --archive-dir /workspace/ingglish-aq-archive --workdir /opt/ingglish-exegesis --out /workspace/ingglish-aq-archive/latest-harvest.json
[Service]
Type=oneshot
Restart=no
TimeoutStartSec=180
[Install]
WantedBy=default.target
+13
View File
@@ -0,0 +1,13 @@
# ~/.config/containers/systemd/ingglish-exegesis.timer
[Unit]
Description=Daily 00:00:00 UTC Timer for Current Events Isopsephic Exegesis
[Timer]
# Explicit UTC calendar specification guarantees 00:00 GMT execution even when host TZ is EST/EDT
OnCalendar=*-*-* 00:00:00 UTC
Persistent=true
AccuracySec=1s
Unit=ingglish-exegesis.service
[Install]
WantedBy=timers.target