bump debian version

This commit is contained in:
Beu 2023-11-18 15:12:16 +01:00
parent 44936966d6
commit 3d474e4242
2 changed files with 10 additions and 2 deletions

View File

@ -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"

8
healthcheck.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
#/bin/bash
STRING="<?xml version=\"1.0\" encoding=\"UTF-8\"?><methodCall><methodName>GetStatus</methodName><params></params></methodCall>"
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