Closed PI-Victor closed 5 years ago
@PI-Victor Awesome Idea, completely agree! After thinking it through a bit, we should seperate these into a seperate CLI as vastctl
has the intention of interacting with a running ecosystem rather than provisioning. So this could be the start of a provisioner cli, which could deploy the ecosystem on any arch with the concept of "backends" or something?
i think backends is a great idea, i didn't think of that. regarding vastctl
i thought the same that it's a lot of stuff to add to it and doesn't exactly fit the purpose.
I already started to stub something out and will show a PoC when i have it working. I've done it in a private repo because i know myself and i never finish stuff so i don't wanna disappoint.
@PI-Victor It would be nice to have a repo here and see the progression, that way I can also work on it too?
sure, no problem! if you're interested i will migrate it to the org immediately. L.E.: available at: https://github.com/vastness-io/vastup
Purpose
e.g.: oc cluster up
Add functionality to
vastctl
to bring up the platform with all components isolated in docker containers running locally.This feature would help with
Motivation
I started to add all of the components to the existing docker-compose and realized there might be a better way that provides a better out-of-the-box experience see above ^^.
Proposed functionality
e.g.:
Optionally:
vastctl up --stateful /Users/local-user/coordinator/persistent_db_data_path
would mount a local path of your choice where the persistent data is stored from the container. In this case it's postgres backing service, but can be any type of persistent data path separated based on component.Driver and OS support
docker/machine
machine
Aiding local development (Future)
You can pass container local build context to the docker daemon
This will save a yaml file with a context definition containing the path to your component. You could then code, build the component and do a
vastctl up
and that will:92981d500e9d
likeI know this sounds like "a LOT" but i've done this before in https://github.com/openshift/origin/pull/9564/files unfortunately that didn't make it in.