gitoria
All repositories: gitoria
1.1 KB
#!/bin/sh# Start: the account `git` takes the owner of the repo folder (the app's user; files stay writable for both), the shared secret is# written where only `git` reads it, host keys live in /hostkeys (a volume: clients keep trusting the server).set -e[ -n "$GITORIA_SSH_SECRET" ] || { echo "GITORIA_SSH_SECRET is not set" >&2; exit 1; }uid=$(stat -c %u /repos); gid=$(stat -c %g /repos)grep -q "^git:" /etc/passwd || echo "git:x:$uid:$gid:git:/repos:/bin/sh" >> /etc/passwdecho "git:*:19000:0:99999:7:::" >> /etc/shadow[ -n "$(getent group "$gid")" ] || echo "gitgroup:x:$gid:" >> /etc/group( umask 077; printf '%s' "$GITORIA_SSH_SECRET" > /run/gitoria-secret ); chown "$uid:$gid" /run/gitoria-secret# sshd hands its commands an empty environment: what they need is written to filesprintf "%s" "${GITORIA_URL:-http://127.0.0.1:45004}" > /run/gitoria-urlmkdir -p /hostkeys[ -f /hostkeys/ssh_host_ed25519_key ] || ssh-keygen -q -t ed25519 -N '' -f /hostkeys/ssh_host_ed25519_key[ -f /hostkeys/ssh_host_rsa_key ] || ssh-keygen -q -t rsa -b 3072 -N '' -f /hostkeys/ssh_host_rsa_keygit config --system --add safe.directory '*'exec /usr/sbin/sshd -D -e -p "${GITORIA_SSH_PORT:-2222}"
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 6bd7fb3cgitoria 009: theme re-copied from layouts 76f99f6 (menu marks the current page), current = true on the menu item, e2e marker checks, reportmre
- 44de915cidentkit: refuse a taken ident port, cold-start deadline, abort on dead ident, clear no-code error (as notes)mre
- 2bf5343egitoria 007: theme re-copied from layouts dbe3de7 (44 px taps), redundant tap overrides dropped, crumbs class, real-browser walk test, reportmre
- 18843648deploy.sh: a gate without a 'passed,' line (check-theme) no longer ends the script silently (grep under pipefail) — print check-theme's summary, as layouts doesmre
- e6dff0cbgitoria#23: report 005, STATUS, LOGmre
- 7f992d62gitoria#23: phone first on the shared theme — brand, branch and pull links 44 px, readme code 14 px; gate block "phone first" (15 pages at 390 + the three dropdowns, fails 20 on old), dropdown-aware login/logout clicks, check-theme in GATESmre
- a2a840a5gitoria#23 WIP (quota stop): theme from layouts, styles inherit it, shell on the theme's header/menus/sidebar, phone measurement script; gates not runmre
- 12b665b0mission brief 005mre
- b680c483Revert "gitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)"mre
- 4fda244fgitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)mre
- 0fd5e280mission brief 004mre
- e1d425e7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
- e59ff114deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
- bcafcceb003: compose cache volume + tmpfs /tmp, gate start waits 120 s, report/LOG/STATUSmre
- bed3f2d5Re-vendor Hybriel to the shared static build 0f396652 (plugins; bin/ is git-ignored)mre
- 3207e128mission brief 003mre
- 18ab71fbtests/ticketskit: wait up to 120 s for tickets (native Hybriel cold compile ~25 s, hybriel#148)mre
- 4fffa966docker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
- 4f47843egate: ticket links use the tickets short URL (/<slug>/<n>, tickets#25)mre
- 86605446mission 002 (code order) 4/4: README file map + import order + 'Same output' test + gate run with a tickets HEAD copy, STATUS (entry, lessons), LOG, report; tests/realdata-baseline.mjs + realdata-compare.py (a cleanup answers the same on live data: pages, modules, API, git over HTTPS and SSH, faces), tests/letcount.pymre