Adding additonal output for troubleshooting on ci-server

This commit is contained in:
Martin Stockhammer 2018-04-03 23:01:40 +02:00
parent ff44bab792
commit 250dcbe19a
1 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,11 @@ function print_usage() {
echo "Starts or stops the container. Builds the images if necessary"
}
echo "Date: $(date)"
docker ps
echo "netstat"
netstat -anp |grep 4444
if [ "${START_ARG}" == "start" ]; then
IMG=`docker images -q ${TAG}`
# Build the image, if it does not exist
@ -104,6 +109,11 @@ if [ "${START_ARG}" == "start" ]; then
RES=$?
done
docker logs "${INSTANCE_NAME}"
echo "netstat: "
netstat -anp |grep 4444
echo "Trying curl on Webdriver port: "
curl "http://localhost:4444/wd/hub"
echo "Result: "$?
elif [ "${START_ARG}" == "stop" ]; then
docker logs "${INSTANCE_NAME}"
stop_instance