Skip to content

Commit 50e3e0d

Browse files
corneliusludmannroboquat
authored andcommitted
[jetbrains] Wait for content before backend start
1 parent 16a23fd commit 50e3e0d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/ide/jetbrains/image/startup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ trap "jobs -p | xargs -r kill" SIGINT SIGTERM EXIT
1010

1111
/ide-desktop/status 24000 "$1" &
1212

13+
echo "Desktop IDE: Waiting for the content initializer ..."
14+
until curl -sS "$SUPERVISOR_ADDR"/_supervisor/v1/status/content/wait/true | grep '"available":true' > /dev/null; do
15+
sleep 1
16+
done
17+
echo "Desktop IDE: Content available."
18+
1319
export CWM_NON_INTERACTIVE=1
1420
export CWM_HOST_PASSWORD=gitpod
1521
export CWM_HOST_STATUS_OVER_HTTP_TOKEN=gitpod

0 commit comments

Comments
 (0)