tickets
All repositories: gitoria
3.7 KB
# tickets.worldapi.org on Byrodin — house pattern of notes.worldapi.org# (/CONTAINERS/projects/notes.worldapi.org): ./Dockerfile = debian:12-slim + libssl3 + ca-certificates (bin/hybriel is a glibc binary,# needs GLIBC_2.36 = debian 12), host network, the app on 127.0.0.1:45003, nginx proxies# it and ends TLS (vhost needs the WebSocket Upgrade headers: the live push rides `/`).# The whole folder is the bind mount: storage/mpackdb/ and .sessions/ live here and persist.# Deploy: ./deploy.sh on Loreana (README "Deploy").# HYBRIEL COMPILES THE APP AT ITS START (no interpreter since hybriel mission 326; hybriel#148): it writes scratch# files to /tmp (a tmpfs here) and its build cache to HL_CACHE_DIR (hybriel a832f73b, mission 332: run/ = the built# program, incr/ = the incremental stages, lib/ = the carried runtime library) = /root/.hybriel/cache, inside the named# volume `hybriel-cache`, so a restart starts warm (~1–3 s) and only a new binary or changed code compiles again (cold ~25 s).# LOGIN VIA IDENT (ticket #7): IDENT_API_KEY, IDENT_API_SECRET and TICKETS_CREATOR_IDENTITY come# from `.env` in this folder (the hybriel runtime loads a .env beside project.hl; the real# environment wins) — never written here. IDENT_URL / TICKETS_PUBLIC_URL default to the public# https origins. IDENT_EXCHANGE_URL: the server-side code exchange goes straight to ident's# loopback port (host network) instead of through Cloudflare + nginx.services:tickets:container_name: tickets.worldapi.orginit: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)build: .image: "worldapi-hybriel-runtime:debian12"working_dir: /home/ticketsnetwork_mode: hostrestart: unless-stoppedulimits:nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)environment:- HL_HOST=127.0.0.1- TICKETS_PORT=45003- TICKETS_WATCH=0- IDENT_EXCHANGE_URL=http://127.0.0.1:45002- HL_CACHE_DIR=/root/.hybriel/cachevolumes:- ./:/home/tickets- hybriel-cache:/root/.hybrieltmpfs:- /tmp:exec,mode=1777command: ./bin/hybriel project.hl# STANDBY (deploys without a gap): the same image and the same bind mount on port 45013 (= main port + 10). nginx lists it as the# `backup` server of the tickets upstream, so it only gets requests while 45003 is down. The profile keeps `docker compose up -d` from# starting it; ../worldapi-conductor/standby-swap.sh starts it for a deploy and stops it again. tickets has no background jobs or timers.# About 40 s with two processes: the live push list (subscribers of /api/events) is per process, so a page connected to the main container does# not get the pushes of a change made on the standby (and the other way round) until its connection reopens; the data itself is read from the# shared storage, and a reload shows everything. Sessions: as in gitoria, a login made in that window may need one more sign-in.tickets-standby:init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)build: .image: "worldapi-hybriel-runtime:debian12"working_dir: /home/ticketsnetwork_mode: hostulimits:nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)volumes:- ./:/home/tickets- hybriel-cache:/root/.hybrieltmpfs:- /tmp:exec,mode=1777command: ./bin/hybriel project.hlcontainer_name: tickets.worldapi.org-standbyprofiles: ["standby"]restart: "no"environment:- HL_HOST=127.0.0.1- TICKETS_PORT=45013- TICKETS_WATCH=0- IDENT_EXCHANGE_URL=http://127.0.0.1:45002- HL_CACHE_DIR=/root/.hybriel/cachevolumes:hybriel-cache:
Branches
Latest commits
- 467d7286Tickets conductor: T36 done, deploy questionmre
- 8542fc8aTickets conductor: T36 proof reviewedmre
- 2a5b8b91Tickets conductor: T36 cap stop, resumed for proofmre
- 6a82097fTickets conductor: Arachne W228 on day35 flakemre
- 0ee5a6f2Tickets conductor: T36 resumedmre
- 9149c165Tickets conductor: T36 diagnosismre
- 91713313Tickets conductor: T36 report 1mre
- 756315d2Tickets conductor: T36 startedmre
- 0814ce6bTickets conductor: brief 025 tickets#36 style formmre
- 1b6916c4Tickets conductor: Atlas handover tickets#36mre
- aab95226Tickets conductor: worldapi-conductor paths, deploy blocker = read-only diskmre
- 6372b06dTickets conductor: worker port slotmre
- 836af31cTickets conductor: token pathsmre
- b03f11b6Tickets conductor: CONDUCTOR.md (project part), short STATUS.md, old STATUS to archive/2026-10-31mre
- a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmre
- cefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mre
- 99bd6570tickets: lib/migrate.hl writes no table of another topic any more: projects.hl rewriteSlug / addProjectNamed / hasMembers, tickets.hl moveToProject / ticketRecords / ticketRecordsOf, events.hl renameStates / eventRecords / eventRecordsOf; the migration calls them (tickets#47)mre
- b57161e3tickets: the markup names its own rules (Style.pMessage, Style.olTickets, ...) instead of hand-written class strings that copy a stylesheet rule; the shared bodies sit in lib/looks.hl (tickets#38)mre
- f767b24dtickets: 111 needless let became plain declarations (3 in ticket.hl, ticket_list.hl, comments.hl and 108 never-reassigned, not captured loop-body ones); the 212 really reassigned lets stay (tickets#44)mre
- 16c0d3b5tickets: the modal window is phone first: the full-screen sheet is the base rule, the centred window sits in the min-width 60rem block (tickets#39)mre