rit-devops
v1.3.1
Published
Quick-reference CLI for common Dockerfile and Jenkinsfile templates (Java, Maven, Python, Flask, React) with Docker Swarm / Kubernetes deploy stages.
Maintainers
Readme
rit-devops
A quick-reference CLI for common Dockerfile and Jenkinsfile templates (Java, Maven, Python, Flask, React) with Docker Swarm / Kubernetes deploy stages.
Usage
npx rit-devops # show everything (dockerfiles + jenkinsfiles + swarm-config + minikube + your config notes)
npx rit-devops dockerfile # show only the Dockerfile templates
npx rit-devops jenkins # show only the Jenkinsfile templates
npx rit-devops swarm-config # show the Docker Swarm cluster setup guide (VirtualBox + Vagrant)
npx rit-devops minikube # show the Minikube + kubectl local Kubernetes setup guide
npx rit-devops config # view saved config notes
npx rit-devops config "text" # save a new config note
npx rit-devops config --clear # clear all saved config notes
npx rit-devops --help # show all commands
npx rit-devops -v # show versionConfig notes are stored locally per-user at ~/.rit-devops/config.json, so they persist across runs on the same machine.
Publishing this package to npm
You said you already have an npm account, so here's exactly what to do:
Install Node.js if you don't already have it (v14+): https://nodejs.org
Log in to npm from your terminal:
npm loginThis will ask for your username, password, and email (and possibly a one-time 2FA code).
Move into the project folder (unzip the file I gave you first):
cd rit-devops npm installTest it locally before publishing (optional but recommended):
node bin/cli.js --help node bin/cli.js dockerfileOr link it globally to test the real
rit-devopscommand:npm link rit-devops --helpPublish:
npm publishThat's it —
rit-devopswas free on the registry when I checked, so this should succeed on the first try. If you get a 403/name-taken error, someone grabbed it in the meantime; just rename it inpackage.json(namefield) and in thebinfield, then publish again.From then on, anyone (including you) can run it with:
npx rit-devopsnpx automatically downloads and runs the latest published version — no separate install step needed.
Publishing updates later
Whenever you edit the templates or add features:
npm version patch # bumps 1.0.0 -> 1.0.1 (use "minor" or "major" for bigger changes)
npm publishProject structure
rit-devops/
├── bin/
│ └── cli.js # CLI entry point (uses Commander.js)
├── lib/
│ ├── dockerfiles.js # Dockerfile template data
│ ├── jenkinsfiles.js # Jenkinsfile template data
│ ├── swarmConfig.js # Docker Swarm (VirtualBox + Vagrant) setup guide
│ ├── minikube.js # Minikube + kubectl setup guide
│ └── config.js # reads/writes ~/.rit-devops/config.json
├── package.json
└── README.mdTo add more templates, just add new { title, content } entries to the arrays in lib/dockerfiles.js or lib/jenkinsfiles.js.
