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

better service orchestration (ability to delete apps and set env vars) #11

Open
6 tasks
Ivshti opened this issue Jun 25, 2020 · 0 comments
Open
6 tasks
Milestone

Comments

@Ivshti
Copy link
Member

Ivshti commented Jun 25, 2020

A bunch of architectural improvements to bring the following improvements:

  • ability to delete apps
  • ability to set env vars (secrets)
  • running reverse proxy server on all swarm nodes, allowing for load balancing

To implement:

  • rename beamup-sync-swarm to beamup-orchestrate
  • beamup-orchestrate to receive the app name and env vars (secrets); that'd be easy as we have $APP here https://github.com/Stremio/stremio-beamup/blob/master/dokku-plugins/beamup-trigger-swarm-sync/post-deploy#L13 ; it will need it so that it only updates the app rather than triggering a swarm deploy; we need the env vars so we can set them for that service
  • configured environment variables to work
  • auto-configure NGINX/stremio-addon-proxy on BOTH swarm nodes: this can work through a container that auto-configures itself in a way similar to nginx-proxy, but based on the Docker /services endpoint
  • Cloudflare err handling: if we fail adding the record, fail from beamup-orchestrate, which will propagate the error through ssh back to the deployer, so that the user will know deployment failed
  • deleting apps to work, again through beamup-orchestrate
    • btw dokku apps:destroy needs a tty: except with --force
    • how to delete from a private docker registry? rm -rf /var/lib/registry/docker/registry/v2/repositories/dokku/ivshti_topmovies/?
@Ivshti Ivshti pinned this issue Jun 25, 2020
@Ivshti Ivshti added this to the v2.0 milestone Jun 25, 2020
@Ivshti Ivshti changed the title better service orchestration better service orchestration (ability to delete apps and set env vars) Jun 25, 2020
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

No branches or pull requests

1 participant