Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Parameterizing WAIT_TIME to facilitate debugging
Jim Van Fleet committed Sep 5, 2016
1 parent cfceb36 commit 3b2d3fc
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
@@ -14,6 +14,8 @@ LABEL Version=$version
ENV VERSION=$version
ENV TOMCAT_VERSION="6.0.35"

ENV WAIT_TIME=60

LABEL Build docker build --rm --tag $maintainer/$imagename .

COPY MariaDB.repo /etc/yum.repos.d/MariaDB.repo
2 changes: 1 addition & 1 deletion container_files/bin/start.sh
@@ -17,7 +17,7 @@ then
fi
else
echo "Composed so waiting for MariaDB: " > $log
/opt/wait-for-it/wait-for-it.sh $MYSQL_HOST:3306 -t 60 --strict -- /opt/bin/main.sh
/opt/wait-for-it/wait-for-it.sh $MYSQL_HOST:3306 -t $WAIT_TIME --strict -- /opt/bin/main.sh
laststatus="$?"
echo "Composed status: $laststatus"
if [ "$laststatus" != "0" ]; then

0 comments on commit 3b2d3fc

Please sign in to comment.