summaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/diagnostic.sh
blob: 99e35cd0a30a0d62e2c9f748d2d8f90dbce8119e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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