Sleep to avoid text file busy error
This commit is contained in:
@@ -19,7 +19,7 @@ LABEL "ProductID"="4486e8c4cc9146fd9b3ce1f14a2dfc5b" \
|
|||||||
"ProductVersion"="9.0.3"
|
"ProductVersion"="9.0.3"
|
||||||
|
|
||||||
# The URL to download the MQ installer from in tar.gz format
|
# 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
|
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
|
# 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/
|
COPY install-mq.sh /usr/local/bin/
|
||||||
RUN chmod u+x /usr/local/bin/install-mq.sh \
|
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/runmqserver /usr/local/bin/
|
||||||
COPY build/chkmq* /usr/local/bin/
|
COPY build/chkmq* /usr/local/bin/
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ ARG IBM_PRODUCT_NAME
|
|||||||
ARG IBM_PRODUCT_VERSION
|
ARG IBM_PRODUCT_VERSION
|
||||||
|
|
||||||
# The URL to download the MQ installer from in tar.gz format
|
# 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
|
ARG MQ_URL
|
||||||
|
|
||||||
# The MQ packages to install
|
# The MQ packages to install
|
||||||
@@ -31,7 +31,8 @@ LABEL "ProductID"=$IBM_PRODUCT_ID \
|
|||||||
|
|
||||||
COPY install-mq.sh /usr/local/bin/
|
COPY install-mq.sh /usr/local/bin/
|
||||||
RUN chmod u+x /usr/local/bin/install-mq.sh \
|
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/runmqserver /usr/local/bin/
|
||||||
COPY build/chkmq* /usr/local/bin/
|
COPY build/chkmq* /usr/local/bin/
|
||||||
|
|||||||
Reference in New Issue
Block a user