Move CI runners to Droplet and enable application HTTPS
vpn-dns-gateway/pipeline/pr-main This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
This commit is contained in:
+48
-5
@@ -2,11 +2,17 @@
|
||||
|
||||
These are execution instructions, not completed release evidence.
|
||||
|
||||
Current status, 15 November 2026: Billy's DNS records resolve correctly and the
|
||||
two Caddy routes are active with trusted certificates and HTTP-to-HTTPS redirects.
|
||||
502 is expected while the app backends are absent. The one-time HTTPS helper
|
||||
has already run; use the normal validate/reload procedure for later changes.
|
||||
Monitoring additions and assessed releases remain pending.
|
||||
|
||||
## Authority and preparation
|
||||
|
||||
Billy reviews code; Vincent commits/pushes. Jenkins users `billy` or `vsun1`
|
||||
may approve production interactively; administrators retain override authority.
|
||||
The laptop agent must be online and source/configuration commits reviewed and
|
||||
The Droplet delivery agent must be online and source/configuration commits reviewed and
|
||||
merged into protected main. Do not run untrusted PR/fork code with its Docker
|
||||
socket or the delivery folder's credentials. Exclusive scheduling alone does
|
||||
not prevent someone authorized to alter jobs from selecting the node.
|
||||
@@ -52,8 +58,8 @@ procedure. The temporary candidate checks already passed without a reload.
|
||||
|
||||
## Healthy production rollback
|
||||
|
||||
Record the detection/decision UTC and reason. Before approval, start the laptop
|
||||
observer, for example:
|
||||
Record the detection/decision UTC and reason. Before approval, start the HTTPS
|
||||
observer on an available client or the remote agent, for example:
|
||||
|
||||
```text
|
||||
python delivery/ci/observe.py --url https://app.yebilly.me --seconds 600 --output build/evidence/assignment8/rollback-health.csv
|
||||
@@ -99,7 +105,10 @@ below the alert duration. HTTP status cannot validate the expected price.
|
||||
|
||||
Each stateless app is capped at 64 MiB RAM, 96 MiB RAM+swap, 0.25 CPU and 64
|
||||
PIDs, with a read-only root filesystem, 16 MiB /tmp tmpfs, UID 10001 and all
|
||||
capabilities dropped. The laptop agent is capped at 2 GiB/2 CPU. One droplet
|
||||
capabilities dropped. The remote agent is capped at 512 MiB RAM / 768 MiB
|
||||
RAM+swap and 0.5 CPU; its pinned BuildKit builder at 256 MiB / 384 MiB and
|
||||
0.5 CPU. The preparation trial passed but used swap and is not a full release
|
||||
load test. Keep one exclusive executor and serialized delivery. One droplet
|
||||
and a shared proxy network provide neither high availability nor strong lateral
|
||||
isolation. A real database migration or external payment can invalidate image
|
||||
rollback; use compatible expand/migrate/contract changes and tested backups.
|
||||
@@ -110,7 +119,7 @@ Archive required evidence first. Remove only the two pricing Compose projects,
|
||||
their routes, monitoring additions and test DNS names. Revoke the two named
|
||||
Assignment 8 package tokens, then remove the deploy key/sudo grant and its
|
||||
Jenkins folder/node when no longer needed. Preserve required job history before
|
||||
removing configuration. Stop the local agent; remove only its identity/workspace
|
||||
removing configuration. Stop the remote agent and dedicated builder; remove only their identity/workspace
|
||||
volumes after approval. Preserve Gitea, Jenkins home, proxy storage, monitoring
|
||||
volumes and earlier assignments. Never system-prune or use `down -v` here.
|
||||
|
||||
@@ -122,3 +131,37 @@ creation. Metadata records token names, not values. Transient private inputs
|
||||
are erased after Jenkins encrypts them. If setup fails partway, inspect its
|
||||
marker/logs and existing state rather than rerunning or rotating credentials.
|
||||
Do not restore entire volumes/databases over later work without a reviewed plan.
|
||||
|
||||
## Agent placement and campus demonstration
|
||||
|
||||
The node name `ssw590-vince-delivery` is historical; it now runs on The-Ocean.
|
||||
Deployment SSH goes to `host.docker.internal` through the mounted SSH config,
|
||||
with the original public-IP host-key alias and strict verification. The Jenkins
|
||||
connection is private HTTP/WebSocket on `gitea_web`; public browser access
|
||||
continues through Caddy HTTPS and its existing allowlist. No campus SSH is
|
||||
needed for this delivery path. Rehearse campus browser access before presenting.
|
||||
The Gitea Actions PDF runner now also runs on The-Ocean. Its existing label
|
||||
`latex-local` is historical. Both laptop copies are stopped; run manual builds
|
||||
and delivery releases sequentially. See `../gitea/droplet-runner/README.md`.
|
||||
|
||||
To stop the remote agent from an authorized administrator shell:
|
||||
|
||||
```sh
|
||||
cd /opt/ssw590-delivery-agent
|
||||
docker compose -f compose.droplet.yaml stop
|
||||
docker stop buildx_buildkit_ssw590-delivery-limited0
|
||||
```
|
||||
|
||||
To reconnect, run `bash /opt/ssw590-delivery-agent/start-droplet-agent.sh`.
|
||||
It reuses protected identity and workspace volumes; do not rerun the original
|
||||
host/account bootstrap. Agent recreation reuses the node identity. The verified
|
||||
tool image was transferred from Docker Desktop and checked by archive SHA-256
|
||||
and image ID before loading. It can be rebuilt from `agent/Dockerfile` on a
|
||||
build-capable machine and transferred again if required.
|
||||
|
||||
For a laptop fallback, stop the remote copy first, load the administrator key
|
||||
into Windows ssh-agent, then run
|
||||
`./delivery/bootstrap/start-agent.ps1 -AllowLaptopFallback`.
|
||||
Stop the laptop copy before starting the remote one again.
|
||||
No new cloud instance or plan change was made; existing Droplet billing applies.
|
||||
VS maintains this agent and BY retains server administration ownership.
|
||||
|
||||
Reference in New Issue
Block a user