Skip to content

Commit

Permalink
Fix NOMAD environment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed May 10, 2024
1 parent db3020b commit 63748ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker/share-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ set -ex

echo SHARE_REDIS: "$SHARE_REDIS"

if [ -n "$NOMAD_PORT_share_tcp" ]; then
export SHARE_CLIENT_PORT="$NOMAD_PORT_share_tcp"
if [ -n "$NOMAD_PORT_enlil_tcp" ]; then
export SHARE_CLIENT_PORT="$NOMAD_PORT_enlil_tcp"
fi

if [ -n "$NOMAD_IP_share_tcp" ]; then
export SHARE_CLIENT_HOSTNAME="$NOMAD_IP_share_tcp"
if [ -n "$NOMAD_IP_enlil_tcp" ]; then
export SHARE_CLIENT_HOSTNAME="$NOMAD_IP_enlil_tcp"
fi

if [ -n "$NOMAD_PORT_share_http" ]; then
export SHARE_SERVER_PORT="$NOMAD_PORT_share_http"
if [ -n "$NOMAD_PORT_enlil_http" ]; then
export SHARE_SERVER_PORT="$NOMAD_PORT_enlil_http"
fi

export SHARE_IP=0.0.0.0
Expand Down

0 comments on commit 63748ce

Please sign in to comment.