Testing fix
This commit is contained in:
19
entrypoint-simple.sh
Normal file
19
entrypoint-simple.sh
Normal file
@@ -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
|
Reference in New Issue
Block a user