Repository navigation
Add CNCjs deployment configuration for NU31 infra - #1
Merged
Merged
Conversation
Deploys cncjs to the nu31 infra swarm the same way gancio-deploy and matterbridge-deploy do: one stack file, one workflow, deployment over ssh, no local image build because cncjs publishes its own image to Docker Hub. The image tag is hardcoded as cncjs/cncjs:v1.11.3 rather than latest, so a redeploy of an unchanged stack file cannot silently change the running version and an upgrade is a reviewable one line change. cncjs keeps all state in .cncrc. $HOME in the image is /root, which holds the node runtime and cannot be a volume, so the config file is moved onto the cncjs-data volume via --config. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gh6tURnZZGAyos78ZtNuze
Drop the Files, Runtime details, Infra dependencies and step by step deploy sections from the README, and the two paragraphs explaining how upstream tags the image. Strip the explanatory comments from docker-stack.yml, the commented out serial block stays because the README points at it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gh6tURnZZGAyos78ZtNuze
Leaves the README with the intro and the notes. Removes the commented out serial block from docker-stack.yml and the header comment from the deploy workflow. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gh6tURnZZGAyos78ZtNuze
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.
Summary
This PR adds complete deployment infrastructure for CNCjs, a web interface for CNC controllers, to the NU31 Hackerspace Docker Swarm infrastructure. The setup follows the established deployment pattern used by other services in the infra repository.
Key Changes
docker-stack.yml: Docker Swarm stack configuration that deploys CNCjs v1.11.3 with:
/var/lib/cncjs/.cncrc)infra_reverse-proxynetwork for Caddy routing.github/workflows/deploy.yml: GitHub Actions workflow that:
ROOT_SSH_PRIVATE_KEYsecret for authenticationREADME.md: Comprehensive documentation covering:
.gitignore: Excludes environment files from version control
Notable Implementation Details
.cncrcfile mounted on a persistent volume, avoiding the need for external databaseshttps://claude.ai/code/session_01Gh6tURnZZGAyos78ZtNuze