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

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/