fix healthcheck and dockerfile label
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
29d9ea4193
commit
8d842b8393
@ -1,7 +1,7 @@
|
|||||||
FROM alpine:3.10.0
|
FROM alpine:3.10.0
|
||||||
|
|
||||||
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
|
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
|
||||||
org.label-schema.name="TT-RSS" \
|
org.label-schema.name="Kanboard" \
|
||||||
org.label-schema.version="1.2" \
|
org.label-schema.version="1.2" \
|
||||||
org.label-schema.vendor="Robert Kaussow" \
|
org.label-schema.vendor="Robert Kaussow" \
|
||||||
org.label-schema.schema-version="1.0"
|
org.label-schema.schema-version="1.0"
|
||||||
|
@ -6,12 +6,4 @@ URL=http://localhost
|
|||||||
wget --quiet --tries=1 --spider ${URL}
|
wget --quiet --tries=1 --spider ${URL}
|
||||||
[ $? -ne 0 ] && exit 1
|
[ $? -ne 0 ] && exit 1
|
||||||
|
|
||||||
CONTENT=$(wget --quiet -O - ${URL})
|
|
||||||
case "$CONTENT" in
|
|
||||||
*Exception*) exit 1 ;;
|
|
||||||
*alert-*alert-*SELF_URL_PATH*) exit 1 ;;
|
|
||||||
*alert-*SELF_URL_PATH*alert-*) exit 1 ;;
|
|
||||||
*SELF_URL_PATH*alert-*alert-*) exit 1 ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user