Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
docker: Better config.js env filter
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Jan 12, 2024
1 parent 41f7bc5 commit aa74df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit aa74df3

Please sign in to comment.