mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Add a `dev` target which adds a convenient developer loop which rebuilds and reruns the daemon after a SIGINT is received. It can be exited by sending SIGINT (Ctrl+C) a couple times. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
14 lines
242 B
Bash
Executable File
14 lines
242 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while true; do
|
|
if ! ./hack/make.sh binary; then
|
|
# If the build fails, sleep for 5 seconds and continue
|
|
sleep 5
|
|
continue
|
|
fi
|
|
KEEPBUNDLE=1 ./hack/make.sh install-binary || continue
|
|
|
|
dockerd --debug || true
|
|
sleep 0.1
|
|
done
|