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

On update of container image, rebuild corresponding Workstation config #5

Open
davidstanke opened this issue May 10, 2023 · 2 comments

Comments

@davidstanke
Copy link
Contributor

It appears that the machine images backing Workstations are static—they're based on a container image, but if that container changes (which can happen if the config points to the latest tag), the workstation config doesn't update. This means that even when the workstations are recycled, new ones aren't necessarily based on a fresh, patched container image. :(

So, the pipelines for rebuilding container images (which use the cloudbuild.yaml configs in the cloud-workstations folder of this repo) should be extended to also update workstation config (after the new image is built and pushed).

[or, separate pipelines could monitor for new versions of the containers and then trigger workstation rebuilds based on that event]

@davidstanke
Copy link
Contributor Author

I think there's a new doc that looks relevant here: https://cloud.google.com/workstations/docs/tutorial-automate-container-image-rebuild

@davidstanke
Copy link
Contributor Author

More info: Per this doc, this is happening because I have a warm pool of machines... that makes sense. So we need to force a refresh. It can be done with a (IMHO janky) process of setting the pool size to zero and then back to more-than-zero, or a (IMHO better) process of using setting the container.image field to the new container. This can probably be done via gcloud?

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