Repository navigation
demo: teams-demo organization server on GCP (deploy + teardown) - #2630
Merged
Merged
Conversation
…server on GCP scripts/demo-org-server-deploy.sh builds a static linux/amd64 codeaf from a given ref and runs it as `codeaf factory serve` under systemd on one e2-small VM, behind Caddy with HTTPS on <ip>.sslip.io; it creates the VM, static address and firewall rules the first time and only updates afterwards. scripts/demo-org-server-teardown.sh deletes everything labelled purpose=codeaf-teams-demo so the demo stops billing. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
The default GCP project id spells the old name and cannot be renamed, so its lines carry the legacy-name marker the name law reads. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
…#2630) Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A one-command deploy and teardown for the organization server the teams demo records against: two desks on two Macs joining one
codeaf factory serveas two people.scripts/demo-org-server-deploy.sh [ref](defaultorigin/work/teams) does a static linux/amd64 build from the ref in a throwaway worktree, copies it to one e2-small Debian 12 VM inopenaf-505800/us-central1-a, and restartscodeaf factory serveunder systemd. On the first run it also creates the VM, static IP and firewall rules (80/443/22). A redeploy keeps the server's state and its access token.<static-ip>.sslip.io(Let's Encrypt) proxies to the server on127.0.0.1:8787, withflush_interval -1so event streams are not buffered. The server runstls: off,domain:set, andtrusted_proxies: [127.0.0.1/32], so every link it prints names the public https address.Ov23liZE8n5kPnDn5RcK). No client secret is needed: the server's refresh path sends onlyclient_id.scripts/demo-org-server-teardown.sh [-y]deletes every VM, disk and address labelledpurpose=codeaf-teams-demo, plus thecodeaf-teams-demo-*firewall rules (firewall rules cannot carry labels), and prints each thing it deletes.deploy/demo-org-server/README.mdcovers claiming and joining.Live now
https://34-55-128-185.sslip.io, built from
origin/work/teams@ 384f15b. The server is not claimed yet: the operator link is in the service log (see the README).Proof
GET /v1/aboutreturnsscheme: https,served_by: factory,contract: 2, version 384f15b./v1/meand/v1/teamsreturn 401 without a session./healthz, which is loopback-only, so that check was fixed. The third run exited 0, and the access token was unchanged.n) lists the VM and its disk,codeaf-teams-demo-ip,codeaf-teams-demo-webandcodeaf-teams-demo-ssh.No Go changes, so there is no change entry for the engine surface. This is demo infrastructure only.