Add workaround for building docker on debian 8 (#47106)

Looks like there's a workaround with aufs used in debian 8.
Adding `tsflags=nodocs` works around this issue and results in smaller
image files also.

Closes #47097 and elastic/infra#14780
This commit is contained in:
Alpar Torok 2019-09-30 09:34:11 +03:00
parent 2be351c5d0
commit d229e15b8d

View File

@ -39,8 +39,8 @@ FROM centos:7
ENV ELASTIC_CONTAINER true
RUN for iter in {1..10}; do yum update -y && \
yum install -y nc && \
RUN for iter in {1..10}; do yum update --setopt=tsflags=nodocs -y && \
yum install -y --setopt=tsflags=nodocs nc && \
yum clean all && exit_code=0 && break || exit_code=\$? && echo "yum error: retry \$iter in 10s" && sleep 10; done; \
(exit \$exit_code)