diff --git a/Dockerfile b/Dockerfile index b619355..e9fa5bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -#Download base image debian 11 -FROM debian:bullseye +#Download base image debian 12 +FROM debian:bookworm # environment variables ARG VERSION="Latest" diff --git a/healthcheck.sh b/healthcheck.sh new file mode 100644 index 0000000..ea9e891 --- /dev/null +++ b/healthcheck.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +#/bin/bash +STRING="GetStatus" +LENGTH=$(printf "%s" "$STRING" | wc -c) +HEADER=$(printf "`printf '%s%08x' "0x80000000" "$LENGTH" `" | tac -rs ..) +RESULT=$(echo "$HEADER"| xxd -p -r) +echo -n $RESULT $STRING | nc -w1 localhost 5000