TamasBakai | bab325b | 2019-03-26 09:20:16 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | echo "======= docker ps" |
| 4 | docker ps |
| 5 | |
| 6 | echo "======= Docker image cache" |
| 7 | docker images nexus3.onap.org:10003/onap/masspnf-simulator |
| 8 | |
| 9 | export NUM_OF_SIMS=`find pnf-sim-lw* -maxdepth 0 | wc -l` |
| 10 | echo $NUM_OF_SIMS |
| 11 | |
| 12 | if [ "$NUM_OF_SIMS" -gt 0 ]; |
| 13 | then |
| 14 | echo "======= docker-compose, first instance" |
| 15 | cat pnf-sim-lw-0/docker-compose.yml |
| 16 | |
| 17 | echo "======= Java config.yml, first instance" |
| 18 | cat pnf-sim-lw-0/config/config.yml |
| 19 | fi |
| 20 | |
| 21 | if (("$NUM_OF_SIMS" > 2)); |
| 22 | then |
| 23 | echo "======= docker-compose, last instance" |
| 24 | cat pnf-sim-lw-$(($NUM_OF_SIMS-1))/docker-compose.yml |
| 25 | |
| 26 | echo "======= Java config.yml, last instance" |
| 27 | cat pnf-sim-lw-$(($NUM_OF_SIMS-1))/config/config.yml |
| 28 | fi |
| 29 | |
| 30 | |