-
Notifications
You must be signed in to change notification settings - Fork 320
docs: Stage A mirror URL + daemon registry-mirrors example #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
6dadf12
2281266
dda9634
38a5d75
c192c60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -33,6 +33,11 @@ Preflight: | |||||
|
|
||||||
| - Verify Docker Engine and the Compose plugin are installed and the daemon is running. | ||||||
| - Check whether `127.0.0.1` ports 3100 and 5173 are available. | ||||||
| - Restricted / Mainland-style networks (optional but do this before Setup if pulls fail): | ||||||
| 1. Stage A: can you `curl -fsSL --connect-timeout 5 --max-time 20 -o /dev/null` the installer URL? If not, set `RAKAZO_INSTALLER_URL` to your HTTPS mirror of `install-images.sh`. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Include the installer URL in the Stage A probe.
Proposed fix- 1. Stage A: can you `curl -fsSL --connect-timeout 5 --max-time 20 -o /dev/null` the installer URL? If not, set `RAKAZO_INSTALLER_URL` to your HTTPS mirror of `install-images.sh`.
+ 1. Stage A: run `curl -fsSL --connect-timeout 5 --max-time 20 -o /dev/null "${RAKAZO_INSTALLER_URL:-https://raw.githubusercontent.com/elie222/rakazo/main/infra/compose/install-images.sh}"`. If it fails, set `RAKAZO_INSTALLER_URL` to your HTTPS mirror of `install-images.sh`.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| 2. Stage B: set `RAKAZO_DOWNLOAD_BASE` to a HTTPS mirror of `infra/compose`, or use `--local` / `RAKAZO_DOWNLOAD_SKIP_EXISTING=1` with files already on disk. | ||||||
| 3. Stage C: if GHCR fails, set `RAKAZO_IMAGE` and `RAKAZO_COMPUTER_IMAGE` to registry/repository values **without** tags, and set `RAKAZO_IMAGE_TAG` / `RAKAZO_COMPUTER_IMAGE_TAG` explicitly (Compose appends those tags). If Hub fails for Postgres/busybox, set `POSTGRES_IMAGE` / `BUSYBOX_IMAGE` on a registry you control that serves the same `postgres:16` / `busybox:1` content — prefer digest pins when the mirror has them; verify the pulled digest before startup (or merge `infra/compose/docker-daemon.registry-mirrors.example.json` into daemon config, replacing the example URL). See docs/self-host.md (Restricted networks / mirror downloads). | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift 🧩 Analysis chain🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
printf '%s\n' '--- setup flow ---'
sed -n '36,57p' SETUP_PROMPT.md
printf '%s\n' '--- installer image lifecycle ---'
rg -n -C 8 \
'docker compose|docker-compose|pull|up|POSTGRES_IMAGE|BUSYBOX_IMAGE|RAKAZO_IMAGE|RAKAZO_COMPUTER_IMAGE' \
infra/compose/install-images.sh \
infra/compose/docker-compose.images.ymlRepository: elie222/rakazo Length of output: 22333 Security Misconfiguration (CWE-494): Download of Code Without Integrity Check Reachability: External · Exploitability: Difficult Add an executable digest check before startup. Stage C requires digest verification, but Setup Step 5 runs 🤖 Prompt for AI Agents |
||||||
| Do not invent vendor-specific CDN hostnames. | ||||||
|
|
||||||
| Setup: | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "registry-mirrors": ["https://registry.example.com"] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.