From 3d474e42420aa65fd2bd8c6e70ab7e7541ef26fd Mon Sep 17 00:00:00 2001 From: Beu Date: Sat, 18 Nov 2023 15:12:16 +0100 Subject: [PATCH] bump debian version --- Dockerfile | 4 ++-- healthcheck.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 healthcheck.sh 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