Adds name argument to deploy-and-run script

This commit is contained in:
benbierens 2023-10-17 14:32:05 +02:00
parent 8c82b4c527
commit 6b1102efa7
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,8 @@
set -e
replication=5
name=testnamehere
filter=TwoClient
echo "Deploying..."
cd ../../Tools/CodexNetDeployer
@ -8,8 +10,8 @@ for i in $( seq 0 $replication)
do
dotnet run \
--kube-config=/opt/kubeconfig.yaml \
--kube-namespace=codex-continuous-tests-$i \
--deploy-file=codex-deployment-$i.json \
--kube-namespace=codex-continuous-$name-tests-$i \
--deploy-file=codex-deployment-$name-$i.json \
--nodes=5 \
--validators=3 \
--log-level=Trace \
@ -25,7 +27,7 @@ do
--check-connect=1 \
-y
cp codex-deployment-$i.json ../../Tests/CodexContinuousTests
cp codex-deployment-$name-$i.json ../../Tests/CodexContinuousTests
done
echo "Starting tests..."
cd ../../Tests/CodexContinuousTests
@ -33,12 +35,12 @@ for i in $( seq 0 $replication)
do
screen -d -m dotnet run \
--kube-config=/opt/kubeconfig.yaml \
--codex-deployment=codex-deployment-$i.json \
--log-path=logs-$i \
--data-path=data-$i \
--codex-deployment=codex-deployment-$name-$i.json \
--log-path=logs-$name-$i \
--data-path=data-$name-$i \
--keep=1 \
--stop=1 \
--filter=TwoClient \
--filter=$filter \
--cleanup=1 \
--full-container-logs=1 \
--target-duration=172800 # 48 hours