kurtosis-tech / kurtosis-cli-release-artifacts

Public-facing repo containing release artifacts for the kurtosis-cli repo
0 stars 1 forks source link

restart is highly appriciated #1

Open gdvyas opened 2 years ago

gdvyas commented 2 years ago

As a developer we need to switch between enviornments and in that case docker stop/start and enclave stop/start is very much needed function. I hope this could be low hanging fruit that can boost deverlopers productivity.

sccheruku commented 2 years ago

Would love to see this feature added!

mieubrisse commented 2 years ago

Hey folks, want to chime in with an update here: we're slowly working towards refactoring the backend to make this a reality. The technical challenge we need to solve is that Kurtosis stores extra metadata associated with services (e.g. what are the IDs of services), and that information is persisted in the memory of the Kurtosis engine container that runs in the enclave. So restarts would currently wipe out the state and lead to a very enclave.

We think we have a solution (storing the information as labels on the Docker container), though we're still trying to figure out one hurdle with Docker which is "when you call RemoveService we want to leave the container around for debugging purposes. How would an engine container that's been restarted know which stopped containers should be restarted, and which should be left stopped?" We're trying out some stuff, and should have something in the next month-ish.

Thanks for your patience as we try to figure this guy out!