Repository navigation
Ship the rax CLI in the rax-server image - #11
Merged
Merged
Conversation
A Job or CronJob in the cluster can then apply and resume tasks with the image already there, as piabrota/nix-os's scheduled agents do. The build adds -p rax-cli; the image grows by the CLI binary.
h0ffmann
added a commit
to piabrota/nix-os
that referenced
this pull request
Oct 31, 2026
…ealth snapshot (#38) k8s/agents holds the deploy-doctor and health-digest tasks (agents image sha-32f1e1e by digest) and two CronJobs in ax-system that run the rax CLI from the rax-server image (sha-2037585, piabrota/rax#11): make the task if missing or changed, then resume it. deploy-doctor every 15 minutes, health-digest at 09:30 UTC. piabrota.kubesolo.healthSnapshot writes the box's state at 09:20 UTC as the ConfigMap ax-tasks/health-snapshot, which the task pods' service account alone may read. AGENTS.md gains one exception to the no-agent-trail rule: the signature on piabrota-ops' reports.
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
Dockerfile.serverbuilds-p rax-server -p rax-cliand copies both binaries to/usr/local/bin. The entrypoint staysrax-server;command: [rax, ...]runs the CLI.Why
piabrota/nix-os schedules its agents (piabrota/agents) as rax tasks: a CronJob every 15 minutes resumes
deploy-doctor, one a day resumeshealth-digest. Those CronJobs need theraxCLI in the cluster, and with it in this image they need no second image:rax --server ax-server.ax-system:8080 -a ops apply -f task.yaml && rax ... resume task <name>.Tests
Built here (arm64):
rax --helpandrax-server --helpboth run from the image; it is 134 MB. This PR'simagerun builds it for amd64.