From 7a554ff45c73be838d64caddbadacdd76202206d Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 6 Apr 2023 12:53:34 -0400 Subject: [PATCH] add scaleway --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index f9cabfb..8b8e314 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,6 +37,10 @@ case $CLOUD in PRIVATE_INTERFACE="private/${LOCAL_IP}" PUBLIC_INTERFACE="public/${LOCAL_IP}!${PUBLIC_IP}" ;; + scaleway) + LOCAL_IP=$(curl -s --local-port 1-1024 http://169.254.42.42/conf | grep PRIVATE_IP | cut -d = -f 2) + PUBLIC_IP=$(curl -s --local-port 1-1024 http://169.254.42.42/conf | grep PUBLIC_IP_ADDRESS | cut -d = -f 2) + ;; *) ;; esac