You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add tag, cleanup containers at end of dev, rebuild hotkey, lots of refactoring etc. etc. (#9605)
* add tag and set imageName outside of miniflare
* delete containers at the end of dev session
* rebuild containers hotkey
* move build and cleanup into wrangler
* hide hotkey
* fix tests
* set container name to DO class_name not optional `name` field
* pr feedback
* fix tests
* changeset
* Update packages/wrangler/src/api/startDevWorker/LocalRuntimeController.ts
Co-authored-by: Victor Berchet <[email protected]>
* Update packages/containers-shared/src/build.ts
Co-authored-by: Carmen Popoviciu <[email protected]>
---------
Co-authored-by: Carmen Popoviciu <[email protected]>
Co-authored-by: Victor Berchet <[email protected]>
* Builds (or pulls - TODO) the container images for local development. This
76
+
* will be called before starting the local development server, and by a rebuild
77
+
* hotkey during development.
78
+
*
79
+
* Because this runs when local dev starts, we also do some validation here,
80
+
* such as checking if the Docker CLI is installed, and if the container images
81
+
* expose any ports.
82
+
*/
83
+
exportasyncfunctionprepareContainerImagesForDev(
84
+
dockerPath: string,
85
+
containerOptions: ContainerDevOptions[]
86
+
){
87
+
if(process.platform==="win32"){
88
+
thrownewError(
89
+
"Local development with containers is currently not supported on Windows. You should use WSL instead. You can also set `enable_containers` to false if you do not need to develop the container as part of your application."
0 commit comments