Commit 37272ca
committed
fix: wire DockerSocket config and keep VM alive after entrypoint exits
Two fixes for macOS development:
1. Wire cfg.Build.DockerSocket into builds.Config so the config file
value (e.g. Colima socket path) is actually used instead of always
falling back to /var/run/docker.sock.
2. Restore pre-PR#99 behavior of keeping the VM alive after the
entrypoint exits by waiting on the guest-agent. PR#99 changed init
to immediately power off the VM when the entrypoint exits, which
breaks images like alpine:latest whose CMD is /bin/sh — the shell
gets no stdin and exits instantly, killing the VM before anyone can
`hm exec` into it. The guest-agent keeps the VM alive and accessible
until an explicit stop/delete.1 parent 3696d16 commit 37272ca
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
| |||
0 commit comments