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