summaryrefslogtreecommitdiffstats
path: root/csit/scripts/simulator_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'csit/scripts/simulator_script.sh')
-rwxr-xr-xcsit/scripts/simulator_script.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/csit/scripts/simulator_script.sh b/csit/scripts/simulator_script.sh
index e146cb9..f6daab6 100755
--- a/csit/scripts/simulator_script.sh
+++ b/csit/scripts/simulator_script.sh
@@ -44,9 +44,20 @@ chmod +x ./build_sim_image.sh
# run osdf_sim
docker run -d --name osdf_sim -p "5000:5000" osdf_sim:latest;
+#wait for docker setup a while
+sleep 10
+
+docker ps -a
+
+echo "logs of the osdf_sim"
+sudo cat `docker inspect -f '{{.LogPath}}' osdf_sim`
+
+
OSDF_SIM_IP=`${WORKSPACE}/scripts/get-instance-ip.sh osdf_sim`
echo "OSDF_SIM_IP=${OSDF_SIM_IP}"
+docker inspect osdf_sim
+
${WORKSPACE}/scripts/wait_for_port.sh ${OSDF_SIM_IP} 5000
@@ -54,5 +65,4 @@ ${WORKSPACE}/scripts/wait_for_port.sh ${OSDF_SIM_IP} 5000
sleep 2
echo "inspect docker things for tracing purpose"
-docker inspect osdf_sim