Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09c627bf8b | ||
|
|
3bcb2cd6e5 | ||
|
|
582ff66ba6 |
+4
-2
@@ -16,8 +16,10 @@ main() {
|
|||||||
# removed on exit.
|
# removed on exit.
|
||||||
key="$(head -c 32 /dev/urandom | base64)"
|
key="$(head -c 32 /dev/urandom | base64)"
|
||||||
|
|
||||||
# --health-interval=1s overrides the image's 30s interval so the
|
# Docker 25 and later probe every 5 seconds during the image's
|
||||||
# first probe does not use up the whole wait.
|
# 10-second start period. --health-interval=1s makes it probe every
|
||||||
|
# second after that instead of every 30, so a slow start still shows
|
||||||
|
# as healthy within the 30-second wait.
|
||||||
cid="$(docker create --health-interval=1s \
|
cid="$(docker create --health-interval=1s \
|
||||||
-e PIXA_SIGNING_KEY="$key" "$("$SCRIPT_DIR/projectname")")"
|
-e PIXA_SIGNING_KEY="$key" "$("$SCRIPT_DIR/projectname")")"
|
||||||
# Remove the container on any exit; turning signals into exit makes
|
# Remove the container on any exit; turning signals into exit makes
|
||||||
|
|||||||
Reference in New Issue
Block a user