Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/catalyst: implement stack of configuration files #680

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

iameli-streams
Copy link
Contributor

@iameli-streams iameli-streams commented Sep 28, 2023

For overriding stuff! This will allow people to better override configuration settings in their development environment and set up the framework for people to run their own boxes in production-like settings.

I'm trying to figure out the new command-line options and it's hard. Braindump:

It's confusing because there's a few operations here:

  • 🗒 update-manifest: Update manifest file
  • 📩 download: Download new binaries
  • 🏗 build-config: Build MistController JSON config from YAML files
  • 🔁 roll-mist: Trigger Mist reload for running process (SIGUSR1) (mutually exclusive with exec)
  • 🍪 exec: Exec myself to become MistController (mutually exclusive with roll-mist)

Workflow: Boot up a prod server
catalyst

  • 🏗 build-config
  • 🍪 exec

Workflow: Boot up a canary server w/ a custom manifest pointing at different branches
catalyst --update-manifest --download

  • 🗒 update-manifest
  • 📩 download
  • 🏗 build-config
  • 🍪 exec

Workflow: Download binaries from manifest (Dev environment init)
catalyst --download --exec=false

  • 📩 download

Workflow: Build a new manifest (CI)
catalyst --update-manifest --exec=false

  • 🗒 update-manifest

Workflow: Run an inplace-deploy on a prod server (Manifest from somewhere else)
catalyst --download --roll-mist

  • 📩 download
  • 🏗 build-config
  • 🔁 roll-mist

@iameli iameli force-pushed the eli/configuration-stack branch from a1451da to 283a8af Compare October 2, 2023 15:49
@iameli-streams iameli-streams force-pushed the eli/configuration-stack branch from 283a8af to 6ebd893 Compare October 18, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants