Skip to content

Commit

Permalink
update health check for eos parsing warning and rebuild when file cha…
Browse files Browse the repository at this point in the history
…nges
  • Loading branch information
elvece committed Feb 21, 2022
1 parent 92c22c7 commit 100465c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ vaultwarden.s9pk: manifest.yaml LICENSE image.tar instructions.md icon.png $(ASS
instructions.md: docs/instructions.md $(DOC_ASSETS)
cd docs && md-packer < instructions.md > ../instructions.md

image.tar: Dockerfile $(VAULTWARDEN_SRC) docker_entrypoint.sh manifest.yaml
image.tar: Dockerfile $(VAULTWARDEN_SRC) docker_entrypoint.sh check-web.sh manifest.yaml
cp ./docker_entrypoint.sh ./vaultwarden/docker_entrypoint.sh
cp ./check-web.sh ./vaultwarden/check-web.sh
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --tag start9/${PKG_ID}/main:${EMVER} --platform=linux/arm64/v8 -o type=docker,dest=image.tar -f Dockerfile ./vaultwarden
Expand Down
6 changes: 3 additions & 3 deletions check-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ DURATION=$(</dev/stdin)
if (($DURATION <= 5000 )); then
exit 60
else
curl --silent --fail vaultwarden.embassy:80/alive
RES=$?
if test "$RES" != 0; then
curl --silent --fail vaultwarden.embassy:80/alive &>/dev/null
exit_code=$?
if test "$exit_code" != 0; then
echo "Web interface is unreachable" >&2
exit 1
fi
Expand Down

0 comments on commit 100465c

Please sign in to comment.