From 0d539e1e690af471a371e163cbb3524ed591503b Mon Sep 17 00:00:00 2001 From: Accela Zhao Date: Fri, 8 May 2015 10:57:14 +0800 Subject: [PATCH] Enable shell debugging in container start.sh With set -x the shell prints debug tracing. If scaleio failed to start, user could use docker logs to find where it stops. Otherwise even if the user logged into the container, the current progress of start.sh would be hard to find. --- scaleio-primary-mdm/Dockerfile | 1 + scaleio-secondary-mdm/Dockerfile | 1 + scaleio-tb/Dockerfile | 1 + 3 files changed, 3 insertions(+) diff --git a/scaleio-primary-mdm/Dockerfile b/scaleio-primary-mdm/Dockerfile index d7d827c..c0a9a8d 100644 --- a/scaleio-primary-mdm/Dockerfile +++ b/scaleio-primary-mdm/Dockerfile @@ -7,6 +7,7 @@ RUN yum -y install bash-completion ADD . /opt/emc/scaleio/siinstall/ RUN printf "#!/bin/sh \n\ +set -x \n\ umount /dev/shm \n\ mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=524288k shm /dev/shm \n\ rpm -qa | egrep -i 'ecs|scaleio' \n\ diff --git a/scaleio-secondary-mdm/Dockerfile b/scaleio-secondary-mdm/Dockerfile index 30e9802..e1586a5 100644 --- a/scaleio-secondary-mdm/Dockerfile +++ b/scaleio-secondary-mdm/Dockerfile @@ -7,6 +7,7 @@ RUN yum -y install bash-completion ADD . /opt/emc/scaleio/siinstall/ RUN printf "#!/bin/sh \n\ +set -x \n\ umount /dev/shm \n\ mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=524288k shm /dev/shm \n\ rpm -qa | egrep -i 'ecs|scaleio' \n\ diff --git a/scaleio-tb/Dockerfile b/scaleio-tb/Dockerfile index a3b9324..1731e42 100644 --- a/scaleio-tb/Dockerfile +++ b/scaleio-tb/Dockerfile @@ -7,6 +7,7 @@ RUN yum -y install bash-completion ADD . /opt/emc/scaleio/siinstall/ RUN printf "#!/bin/sh \n\ +set -x \n\ rpm -qa | egrep -i 'ecs|scaleio' \n\ if ((\$? != 0 )); then \n\ rpm -Uvh /opt/emc/scaleio/siinstall/EMC-ScaleIO-tb-*.x86_64.rpm \n\