Skip to content

Commit

Permalink
debugging application type toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
tome215 committed Oct 2, 2024
1 parent 8dff810 commit a3f146a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 6 additions & 3 deletions profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,13 @@
j += 1
if TBCMD is not None:
node.addService(RSpec.Execute(shell="sh",command="sudo mkdir -p /local/setup"))
if params.application == 0:
node.addService(RSpec.Execute(shell="sh",command="sudo echo \"K8S\" > /local/setup/app-type"))
node.addService(RSpec.Execute(shell="sh",command="sudo mkdir -p /local/setup/app-type"))
if int(params.application) == 0:
# node.addService(RSpec.Execute(shell="sh",command="sudo echo \"K8S\" > /local/setup/app-type"))
node.addService(RSpec.Execute(shell="sh",command="sudo touch /local/setup/app-type/k8s"))
else:
node.addService(RSpec.Execute(shell="sh",command="sudo echo \"DOCKER\" > /local/setup/app-type"))
# node.addService(RSpec.Execute(shell="sh",command="sudo echo \"DOCKER\" > /local/setup/app-type"))
node.addService(RSpec.Execute(shell="sh",command="sudo touch /local/setup/app-type/docker"))
node.addService(RSpec.Execute(shell="sh",command=TBCMD))
if disableTestbedRootKeys:
node.installRootKeys(False, False)
Expand Down
9 changes: 8 additions & 1 deletion setup-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ for script in $ALLNODESCRIPTS ; do
fi
done
if [ "$HOSTNAME" = "node-0" ]; then
for script in $HEADNODESCRIPTS_$(cat /local/setup/app-type)
HEADNODESCRIPTS=""
if [ -f /local/setup/app-type/k8s ]; then
HEADNODESCRIPTS=HEADNODESCRIPTS_K8S
fi
if [ -f /local/setup/app-type/docker ]; then
HEADNODESCRIPTS=HEADNODESCRIPTS_DOCKER
fi
for script in $HEADNODESCRIPTS
do
cd $SRC
$SRC/$script | tee - /local/logs/${script}.log 2>&1
Expand Down

0 comments on commit a3f146a

Please sign in to comment.