Installing the Project
cd /opt
sudo git clone https://gitlab.com/Snogard/kaido
Then in your .zshrc or .bashrc
alias kaido="/opt/kaido/kaido.sh"
Configuration
every configuration must be under /etc/kaido.
(to implement): if "/etc/kaido/" is a git repository, the update function will also take that into account when deciding what container to recreate
Folder structure
- /etc/kaido
- commands (not implemented)
- containers
- container1
- config
- secrets
- envs.sh
- container2
- ecc...
- container1
- system (not implemented)
- user (not implemented)
- update.conf
- envs.sh
/etc/kaido/update.conf
this file contains the definitions of what must be installed/configured/built when using the "kaido update" command
example file
install-youtubedl
configure-reverse-proxy-server
build-mongodb
regardless of the order in the file, the execution is in this order:
- build
- install
- configure
warning: No parameters are supported yet
/etc/kaido/envs.sh
This file will be sourced to overrwrite default envs
CONTAINERS_FOLDER: where container folders are created by default BUILDS_FOLDER: where files are downloaded for build purposes KAIDO_CONFIG_FOLDER: where kaido will look for a kaido-config repository (not fully implemented)
Container Installation:
gitlab-runner
first time:
kaido install gitlab-runner register "insert_token_here"
other times:
kaido install gitlab-runner