This commit cleans up the distillery code by making each component a distinct struct. Each of these components is also returned by by a new Component() function that replaces the Stacks() function.
1.5 KiB
1.5 KiB
WissKI-Distillery in Go
This document describes the process of moving the distillery to using golang for the control plane (outside of docker containers).
Bootstrapping
This documents the bootstraping process. Work in progress.
-
wdcli bootstrap $DIRECTORY0. Create the deployment directory- Copy over the executable (unless it already exists)
- Create a default configuration file (unless it already exists)
- Store the directory in a file called .wdcli in the $HOME directory
-
wdcli system_update- to be documented
Future Work
- Move
provision_entrypoint.shinto go - Rename backups to 'snapshots' and make them restorable
- Snapshot the docker images being used also!
- Avoid running
docker composeexecutable and shift it to a library - Automatically bootstrap the docker container sql connection (use proper environment variables)
- Make error handling consistent
- Add a server that serves information
- Migrate the individual commands below
- restructure resource files
- Documentation
Migrating Individual Commands
- backup_all.sh
- backup_instance.sh
- blind_update.sh
- blind_update_all.sh
- cron_all.sh
- info.sh
- ls.sh
- make_mysql_account.sh
- monday_full.sh
- monday_short.sh
- mysql.sh
- provision.sh
- purge.sh
- rebuild.sh
- rebuild_all.sh
- reserve.sh
- shell.sh
- system_install.sh
- system_update.sh
- update_prefix_config.sh
TO BE REMOVED
- call_update_php_hack.sh