Skip to content

Commit

Permalink
Merge pull request #9 from kbase/dev-starrocks_setup
Browse files Browse the repository at this point in the history
Add sleep option to FE entrypoint
  • Loading branch information
MrCreosote authored Jun 17, 2024
2 parents 1d37951 + 282d966 commit 1857841
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ https://docs.starrocks.io/docs/deployment/environment_configurations/

These are NOT taken into account in these Dockerfiles.

However, the AVX2 instruction set is required for these images to run.

## Variables

Variables that need to be set are documented in the scripts in the ./scripts directory.
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ services:
- MINIO_BUCKET=starrocks
- MINIO_ACCESS_KEY=AAAAAAAAAAAAAAAAAAAA
- MINIO_SECRET_KEY=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
- SLEEP_FOR=0.1s
ports:
- 8031:8031
- 9021:9021
Expand Down
1 change: 1 addition & 0 deletions scripts/cn-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ echo "BRPC_PORT=${BRPC_PORT}"
echo "STARLET_PORT=${STARLET_PORT}"

if [ -n "$SLEEP_FOR" ]; then
echo "Sleeping for $SLEEP_FOR"
sleep $SLEEP_FOR;
fi

Expand Down
5 changes: 5 additions & 0 deletions scripts/fe-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ echo "SQL_QUERY_PORT=${SQL_QUERY_PORT}"
echo "EDIT_LOG_PORT=${EDIT_LOG_PORT}"
echo "START_FOLLOWER_W_LEADER_EDIT_LOG_URL=${START_FOLLOWER_W_LEADER_EDIT_LOG_URL}"

if [ -n "$SLEEP_FOR" ]; then
echo "Sleeping for $SLEEP_FOR"
sleep $SLEEP_FOR;
fi

# NOTE: this env var is only required the first time the follower is added to the cluster
# See https://docs.starrocks.io/docs/deployment/deploy_manually/
if [ -n "$START_FOLLOWER_W_LEADER_EDIT_LOG_URL" ]; then
Expand Down

0 comments on commit 1857841

Please sign in to comment.