From e098c73bb8928dae9601f8dcbedc0811b17fa116 Mon Sep 17 00:00:00 2001 From: Djeex Date: Wed, 24 Sep 2025 14:40:29 +0200 Subject: [PATCH] Testing fix --- entrypoint-simple.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 entrypoint-simple.sh diff --git a/entrypoint-simple.sh b/entrypoint-simple.sh new file mode 100644 index 0000000..139e31c --- /dev/null +++ b/entrypoint-simple.sh @@ -0,0 +1,19 @@ +#!/bin/sh +set -e + +# Simple version that mimics alpine/socat behavior +TARGET_HOST=${TARGET_HOST:-socket-proxy-beszel} +TARGET_PORT=${TARGET_PORT:-2375} +UNIX_SOCKET_PATH=${UNIX_SOCKET_PATH:-/socket} +UNIX_SOCKET_NAME=${UNIX_SOCKET_NAME:-docker.sock} + +# Remove trailing slashes +UNIX_SOCKET_PATH=${UNIX_SOCKET_PATH%/} +FULL_SOCKET_PATH="$UNIX_SOCKET_PATH/$UNIX_SOCKET_NAME" + +echo "Starting socat proxy..." +echo "Socket: $FULL_SOCKET_PATH" +echo "Target: $TARGET_HOST:$TARGET_PORT" + +# Just run socat directly like alpine/socat does +exec socat UNIX-LISTEN:$FULL_SOCKET_PATH,fork,unlink-early TCP:$TARGET_HOST:$TARGET_PORT