From aa74df31bf391006e17993f5360b85640ae291ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Guid=C3=A9e?= Date: Fri, 12 Jan 2024 09:13:56 -0500 Subject: [PATCH] docker: Better config.js env filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Quentin Guidée --- docker/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index de5efdf9..35f6399e 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,8 +1,8 @@ #!/usr/bin/env sh -VARS=$(env | grep VERTEX_) # Get all env variables starting with VERTEX_. +VARS=$(env | grep VERTEX_ | grep _ADDR=) # Get all env variables starting with VERTEX_ and ending with _ADDR VARS=$(echo "$VARS" | sed -e 's/VERTEX_\(.*\)_ADDR=\(.*\)/\1:"\2"/g') # Transform VARS from VERTEX_XXX_ADDR=yyy to XXX: yyy -VARS=$(echo "$VARS" | tr '[:upper:]' '[:lower:]') # All lowercase +VARS=$(echo "$VARS" | tr '[:upper:]' '[:lower:]') # All lowercase echo "$VARS"