mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 12:04:20 +08:00
parent
43292398ac
commit
736abe31d7
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ else
|
|||
export LIVEBOOK_NODE="${FLY_APP_NAME}-${deployment}@${FLY_PRIVATE_IP}"
|
||||
fi
|
||||
elif [ "$LIVEBOOK_CLUSTER" = "auto" ] && [ ! -z "$ECS_CONTAINER_METADATA_URI" ]; then
|
||||
metadata="$(curl --silent $ECS_CONTAINER_METADATA_URI)"
|
||||
metadata="$(wget --quiet --output-document=- $ECS_CONTAINER_METADATA_URI)"
|
||||
machine_ip="$(echo $metadata | $RELEASE_ROOT/bin/livebook eval 'IO.read(:stdio, :eof) |> JSON.decode!() |> Map.fetch!("Networks") |> hd() |> Map.fetch!("IPv4Addresses") |> hd() |> IO.write()')"
|
||||
image_id="$(echo $metadata | $RELEASE_ROOT/bin/livebook eval 'IO.read(:stdio, :eof) |> JSON.decode!() |> Map.fetch!("ImageID") |> IO.write()')"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue