Skip to content

Commit 37a6c63

Browse files
committed
Fix clustering on fly with versioned Docker image
1 parent 8abde3e commit 37a6c63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rel/server/env.sh.eex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ if [ "$LIVEBOOK_CLUSTER" = "auto" ] && [ ! -z "$FLY_APP_NAME" ]; then
99
esac
1010

1111
if [ -z "${LIVEBOOK_NODE}" ]; then
12-
export LIVEBOOK_NODE="${FLY_APP_NAME}-${FLY_IMAGE_REF##*:}@${FLY_PRIVATE_IP}"
12+
deployment="$(echo "$FLY_IMAGE_REF" | shasum | cut -c 1-10)"
13+
export LIVEBOOK_NODE="${FLY_APP_NAME}-${deployment}@${FLY_PRIVATE_IP}"
1314
fi
1415
fi
1516

0 commit comments

Comments
 (0)