Repository navigation
dev2: REMOTE_BUILD=c0mpute builds site images on a c0mpute builder - #263
Merged
Merged
Conversation
deploy-app.sh gets an opt-in remote build: with REMOTE_BUILD=c0mpute in deploy.env it git-archives each build service's context at the deployed sha, passes the Dockerfile, target and build args compose resolved (the exported public NEXT_PUBLIC_*-style values), runs `c0mpute build --load -t <image>` on the builders in C0MPUTE_BUILDERS, then the usual standby / up / health / rollback. A failed remote build stops before the running stack is touched (REMOTE_BUILD_FALLBACK=local builds here instead). dev2-site writes the variables from sites.d remote_build / remote_builders / remote_build_fallback. On for c0mpute.com and threatcrush.com, building on vienna (node AmaKBdpB), to keep build scratch off dev2's full disk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan41 finding(s) HIGH/CRITICAL: 15 | MEDIUM: 12 | LOW: 14
Snippets are redacted; ThreatCrush never prints matched credential material. |
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.
Opt-in
REMOTE_BUILD=c0mputefor dev2deploy-app.sh: build each service's image on a c0mpute builder (container.run, profullstack/c0mpute#318, DIP 0033) instead of on dev2, whose disk build scratch keeps filling.git archiveof the build context at the deployed sha (the job takes a plain tarball, no git). Dockerfile/target/build args come fromdocker compose config(only the public values the script already exports).c0mpute build --load -t <compose image>, then the unchanged standby / up / health / rollback.REMOTE_BUILD_FALLBACK=localopts into a local build instead.dev2-sitewritesREMOTE_BUILD,C0MPUTE_BUILDERS,REMOTE_BUILD_FALLBACKfrom sites.dremote_build,remote_builders,remote_build_fallback.🤖 Generated with Claude Code