-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init temporal search attribute (#1943)
- Loading branch information
Uros Marolt
authored
Dec 11, 2023
1 parent
1a5d211
commit c894429
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
temporal server start-dev --ip 0.0.0.0 & | ||
|
||
# Function to check if Temporal is ready | ||
check_temporal_ready() { | ||
# Execute the Temporal health check command | ||
temporal operator cluster health | ||
|
||
# Return the exit status of the health check command | ||
return $? | ||
} | ||
|
||
# Wait for Temporal server to be ready | ||
echo "Waiting for Temporal server to be ready..." | ||
until check_temporal_ready; do | ||
printf '.' | ||
sleep 1 | ||
done | ||
echo "Temporal server is ready." | ||
|
||
# Run Temporal setup command | ||
temporal operator search-attribute create --name TenantId --type Text --namespace default | ||
|
||
# Keep the container running after setup | ||
# (This could be tailing logs or just a sleep loop) | ||
tail -f /dev/null |