diff options
author | Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> | 2020-12-16 09:15:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-12-16 09:15:09 +0000 |
commit | ab27141d3585af25de56f00cb763f08d734299e0 (patch) | |
tree | 01bfef6f105fa23d651a5c3cdedfc14435964771 /diagnostic.sh | |
parent | 4c7c4eb6b8f43e3dd27a0581de62cb93148f649e (diff) | |
parent | b761beb3ea2bafd786473775b5ba0afcb3fa2fd3 (diff) |
Merge "Move Masspnf simulator code from Integration repository to it's own"
Diffstat (limited to 'diagnostic.sh')
-rwxr-xr-x | diagnostic.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/diagnostic.sh b/diagnostic.sh new file mode 100755 index 0000000..99e35cd --- /dev/null +++ b/diagnostic.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +echo "======= docker ps" +docker ps + +echo "======= Docker image cache" +docker images nexus3.onap.org:10003/onap/masspnf-simulator + +export NUM_OF_SIMS=`find pnf-sim-lw* -maxdepth 0 | wc -l` +echo $NUM_OF_SIMS + +if [ "$NUM_OF_SIMS" -gt 0 ]; +then + echo "======= docker-compose, first instance" + cat pnf-sim-lw-0/docker-compose.yml + + echo "======= Java config.yml, first instance" + cat pnf-sim-lw-0/config/config.yml +fi + +if (("$NUM_OF_SIMS" > 2)); +then + echo "======= docker-compose, last instance" + cat pnf-sim-lw-$(($NUM_OF_SIMS-1))/docker-compose.yml + + echo "======= Java config.yml, last instance" + cat pnf-sim-lw-$(($NUM_OF_SIMS-1))/config/config.yml +fi + + |