Sleep to avoid text file busy error

This commit is contained in:
Rob Parker
2017-09-13 11:46:28 +01:00
parent f89b828435
commit cee4234703
2 changed files with 6 additions and 4 deletions

View File

@@ -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/