Skip to content

Commit

Permalink
portal: fix task IP
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Apr 7, 2022
1 parent b21d508 commit 0ea697f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-portal/start.sh
Expand Up @@ -5,7 +5,7 @@ echo "$SUPERVISOR_PROCESS_NAME: waiting for $zzz seconds before start..."
sleep $zzz

if [ ! -z "$METADATA_URI" ]; then
task_ip=`curl ${METADATA_URI}/task | jq -r '.Networks[0].IPv4Addresses[0]'`
task_ip=`curl ${METADATA_URI}/task | jq -r '.Containers[0].Networks[0].IPv4Addresses[0]'`
export MPCONTRIBS_CLIENT_HOST=$task_ip:$MPCONTRIBS_API_PORT
else
export MPCONTRIBS_CLIENT_HOST=$MPCONTRIBS_API_HOST
Expand Down

0 comments on commit 0ea697f

Please sign in to comment.