We need install the next tools 🧰:
- Docker 🐳 (Docker Desktop on windows)
- optional if only wants to deploy and not to develop
- for develoment is required that the user has permission to use the docker binary
- kubernetes ☸ local cluster (microk8s or minukube)
- if you are in windows can use docker desktop
- you can use a cloud cluster instead
- kubectl 💻
- the binary needs to be in the path or in the place of call of the run.[sh | ps1] script
- Lens 🛠 (optional)
- Bash 💪🏻
- Only for unix like systems
thats works on the follow platforms:
- Windows
- Linux and Unix like system
./run.ps1 createNS
./run.sh createNS
to deploy DB services and deployments use the deployDB parameter and to deploy the App service and deployment you can use the deployApp param
./run.ps1 deployDB deployApp
./run.sh deployDB deployApp
you can only use deploy if you want to do both at time
./run.ps1 deploy
./run.sh deploy
you can build the image using the parameter buildApp
./run.ps1 build
./run.sh build
if the developer have permission can push the image to the repository using the pushApp parameter
./run.ps1 pushApp
./run.sh pushApp
for simplicity yu can only call the script with the reloadChanges parameter to recreate the iamge and app deployment
./run.ps1 reloadChanges
./run.sh reloadChanges
To Stop the DB deployment and services you can use haltDB parameter
./run.ps1 haltDB
./run.sh haltDB
To Stop the App deployment and services you can use haltApp parameter
./run.ps1 haltApp
./run.sh haltApp
To Stop everything you can use halt
./run.ps1 halt
./run.sh halt
the run script eval the arguments as scrips, all the arguments are internal functions on the script, yo can for example source the script to the current shell to have the arguments as toplevel functions or do things like this
./run.ps1 "deploy; sleep 86400; halt"
./run.sh "deploy && sleep 1d && halt" &
deploy all, wait 1 day and halt all.