aboutsummaryrefslogtreecommitdiff
path: root/protoc-artifacts
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2017-05-11 14:04:34 -0700
committerGitHub <noreply@github.com>2017-05-11 14:04:34 -0700
commit82e50ba5c311f26786bb1dffa64c3e9ff6e957d7 (patch)
tree14324f63d8d9889687d7b03afddbdb7b7da33d10 /protoc-artifacts
parent455b61c6b0f39ac269b26969877dd3c6f3e32270 (diff)
downloadprotobuf-82e50ba5c311f26786bb1dffa64c3e9ff6e957d7.tar.gz
protobuf-82e50ba5c311f26786bb1dffa64c3e9ff6e957d7.tar.bz2
protobuf-82e50ba5c311f26786bb1dffa64c3e9ff6e957d7.zip
Workaround the docker bug when compiling artifacts
This is a workaround (https://github.com/moby/moby/issues/10180#issuecomment-190429512) the docker issue (https://github.com/moby/moby/issues/10180) which breaks protoc-artifacts build process with following error ```Rpmdb checksum is invalid: dCDPT(pkg checksums): devtoolset-1.1-elfutils.x86_64 0:0.154-6.el6 - u The command '/bin/sh -c yum clean all && yum install -y devtoolset-1.1 devtoolset-1.1-libstdc++-devel devtoolset-1.1-libstdc++-devel.i686' returned a non-zero code: 1``` https://github.com/moby/moby/issues/10180#issuecomment-190429512
Diffstat (limited to 'protoc-artifacts')
-rw-r--r--protoc-artifacts/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/protoc-artifacts/Dockerfile b/protoc-artifacts/Dockerfile
index 5143b028..36b547a2 100644
--- a/protoc-artifacts/Dockerfile
+++ b/protoc-artifacts/Dockerfile
@@ -30,7 +30,7 @@ RUN wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -P /etc/yum
RUN bash -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo'
RUN bash -c "sed -e 's/\$basearch/i386/g' /etc/yum.repos.d/devtools-1.1.repo > /etc/yum.repos.d/devtools-i386-1.1.repo"
RUN sed -e 's/testing-/testing-i386-/g' -i /etc/yum.repos.d/devtools-i386-1.1.repo
-RUN yum install -y devtoolset-1.1 \
+RUN rpm --rebuilddb && yum install -y devtoolset-1.1 \
devtoolset-1.1-libstdc++-devel \
devtoolset-1.1-libstdc++-devel.i686