-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98f327a
commit e499b64
Showing
2 changed files
with
58 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
|
||
@echo off | ||
|
||
set EXPECTED_JAVA_VERSION=21 | ||
|
||
set SUBCOMMAND=%~1 | ||
|
||
@REM Configuration file defaults overriden because upstream config doesn't export to elasticsearch | ||
setx ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_CLASSNAME "io.camunda.zeebe.exporter.ElasticsearchExporter" | ||
setx ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_URL "http://localhost:9200" | ||
setx ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_INDEX_PREFIX "zeebe-record" | ||
|
||
if %SUBCOMMAND% == "start" ( | ||
|
||
) | ||
|
||
if %SUBCOMMAND% == "stop" ( | ||
|
||
) | ||
|
||
if %SUBCOMMAND% == "help" ( | ||
|
||
) |
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,34 @@ | ||
|
||
@echo off | ||
|
||
:checkCamundaStartup | ||
set RETRIES=24 | ||
set SLEEP_TIME=14 | ||
set URL=%~1 | ||
set NAME=%~2 | ||
set COMMAND="curl -XGET %URL%" | ||
|
||
:loop | ||
%COMMAND% | ||
set commandErrorLevel=%ERROR_LEVEL% | ||
timeout /NOBREAK %SLEEP_TIME% | ||
set RETRIES=%RETRIES%-1 | ||
|
||
if %RETRIES% == 0 ( | ||
echo "Error: %NAME% did not start!" | ||
EXIT /B 1 | ||
) | ||
echo "Polling %NAME% ... %RETRIES% retries left" | ||
|
||
if %commandErrorLevel% NEQ 0 ( | ||
goto loop | ||
) | ||
echo "%NAME% has successfully been started." | ||
start %URL% | ||
EXIT /B 0 | ||
|
||
set URL="http://localhost:8080/operate/login" | ||
start /B checkCamundaStartup "%URL%" "Camunda" | ||
|
||
@REM start /B internal\run.bat | ||
call internal\run.bat %* |