tickets
All repositories: gitoria
3.8 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. only main sends subscription wakes; standby writes are reconciled by main on takeover.# 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_WAKES_DISABLED=1- TICKETS_WATCH=0- IDENT_EXCHANGE_URL=http://127.0.0.1:45002- HL_CACHE_DIR=/root/.hybriel/cachevolumes:hybriel-cache:
Branches
Latest commits
- ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre
- 6dea1c60Merge branch 'r35-day72' into mainTickets
- 7bcfdc22|||PR drop worker edits to conductor recordsmre
- 2617b6ee|||PR dialogs: host flag cleared on close, dialog gate (tickets#40)mre
- 6e701371|||PR record partial day72 dialog validationmre
- b9fb9a91|||PR bind ticket dialog visibility to member flagsmre
- 0788e65f|||PR re-vendor Hybriel day72mre
- e2a6bdcfMerge branch 'records-t35' into mainTickets
- d8d54df1|||PR records: R35 day72 + #40mre
- 8a7f475aMerge branch 'records-t33' into mainTickets
- e685d0c2|||PR records: PROCEDURES merge callmre
- b42aff2b|||PR records: GO 2026-11-23, workers L33 O34, PROCEDURES.mdmre
- ed091d44Merge branch 'records' into mainTickets
- 180c0cdb|||PR records: ticket move live (M32), hybriel#439mre
- 497cae7bMerge branch 'm32-move' into mainTickets
- 772e0696|||PR Allow project admins to move tickets between their projectsmre
- be92a560Merge branch 'records' into mainTickets
- 0daf2ea8|||PR records: PR-only workflow, #50 donemre
- 0185d0b6Log PR 1 deploymre
- f5bf16e2Mission 031: deploy PR 1mre