Skip to content

Commit d3a4e3d

Browse files
authored
fix: #62 Pass arguments to yaci-cli app and increase yaci-store startup timeout (#64)
1 parent 6a883f5 commit d3a4e3d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

applications/cli/docker/yaci-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ fi
77

88
# Check the value of yaci_cli_mode and run the appropriate command
99
if [ "$yaci_cli_mode" == "java" ]; then
10-
java -jar /app/yaci-cli.jar
10+
java -jar /app/yaci-cli.jar $*
1111
elif [ "$yaci_cli_mode" == "native" ]; then
12-
/app/yaci-cli
12+
/app/yaci-cli $*
1313
else
1414
echo "Invalid mode. Please use 'java' or 'native'."
1515
exit 1

applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yacistore/YaciStoreService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ private Process startStoreApp(ClusterInfo clusterInfo, Era era) throws IOExcepti
132132
Future<?> future = Executors.newSingleThreadExecutor().submit(processStream);
133133

134134
int counter = 0;
135-
while (counter < 20) {
135+
while (counter < 40) {
136136
counter++;
137137
if (started.get())
138138
break;
139139
Thread.sleep(1000);
140140
writeLn("Waiting for Yaci Store to start ...");
141141
}
142142

143-
if (counter == 20) {
143+
if (counter == 40) {
144144
writeLn(error("Waited too long. Could not start Yaci Store. Something is wrong.."));
145145
writeLn(error("Use \"yaci-store-logs\" to see the logs"));
146146
writeLn(error("Please verify if another yaci-store in running in the same port. " +

0 commit comments

Comments
 (0)