From cee42347031bee1280ca23a55da490051ef1aeaf Mon Sep 17 00:00:00 2001 From: Rob Parker Date: Wed, 13 Sep 2017 11:46:28 +0100 Subject: [PATCH] Sleep to avoid text file busy error --- Dockerfile-devserver | 5 +++-- Dockerfile-server | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile-devserver b/Dockerfile-devserver index b9bbd23..904e48d 100644 --- a/Dockerfile-devserver +++ b/Dockerfile-devserver @@ -19,7 +19,7 @@ LABEL "ProductID"="4486e8c4cc9146fd9b3ce1f14a2dfc5b" \ "ProductVersion"="9.0.3" # The URL to download the MQ installer from in tar.gz format -# This assumes an archive containing the MQ Debian (.deb) install packages +# This assumes an archive containing the MQ Debian (.deb) install packages ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev903_ubuntu_x86-64.tar.gz # The MQ packages to install @@ -27,7 +27,8 @@ ARG MQ_PACKAGES="ibmmq-server ibmmq-java ibmmq-jre ibmmq-gskit ibmmq-msg-.* ibmm COPY install-mq.sh /usr/local/bin/ RUN chmod u+x /usr/local/bin/install-mq.sh \ - && install-mq.sh +# To avoid a "text file busy" error here we sleep before installing. + && sleep 1 && install-mq.sh COPY build/runmqserver /usr/local/bin/ COPY build/chkmq* /usr/local/bin/ diff --git a/Dockerfile-server b/Dockerfile-server index 47895e3..985a890 100644 --- a/Dockerfile-server +++ b/Dockerfile-server @@ -19,7 +19,7 @@ ARG IBM_PRODUCT_NAME ARG IBM_PRODUCT_VERSION # The URL to download the MQ installer from in tar.gz format -# This assumes an archive containing the MQ Debian (.deb) install packages +# This assumes an archive containing the MQ Debian (.deb) install packages ARG MQ_URL # The MQ packages to install @@ -31,7 +31,8 @@ LABEL "ProductID"=$IBM_PRODUCT_ID \ COPY install-mq.sh /usr/local/bin/ RUN chmod u+x /usr/local/bin/install-mq.sh \ - && install-mq.sh +# To avoid a "text file busy" error here we sleep before installing. + && sleep 1 && install-mq.sh COPY build/runmqserver /usr/local/bin/ COPY build/chkmq* /usr/local/bin/