coder / envbuilder

Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly.
Apache License 2.0
152 stars 26 forks source link

extract RunCacheProbe function #284

Closed johnstcn closed 3 months ago

johnstcn commented 3 months ago

Part of https://github.com/coder/team-coconut/issues/11

Builds on top of https://github.com/coder/envbuilder/pull/282 and https://github.com/coder/envbuilder/pull/283

Extracts the logic for --get-cached-image to a separate function

Also pulls out some other common logic shared between Run and RunCacheProbe. There is more that could be DRYed up, but leaving this for later.