Merge "Add missing build dependencies for agent in docker"

This commit is contained in:
Zuul 2019-01-01 17:58:32 +00:00 committed by Gerrit Code Review
commit 8733268ed8
1 changed files with 11 additions and 1 deletions

View File

@ -76,8 +76,18 @@ ONBUILD RUN \
git \
libffi-dev \
libressl-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
make && \
# We need librdkafka at last v0.11.5 so take it from edge.
# It will be default in Apline 3.9.
apk add --no-cache --virtual .build-librdkafka \
libressl2.7-libcrypto \
librdkafka-dev \
libressl2.7-libssl \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community && \
# Clone repository and checkout requested version.
# This many steps are needed to support gerrit patch sets.
mkdir -p /app && \
@ -135,7 +145,7 @@ ONBUILD RUN \
printf "Constraints file: %s\\n" \
"$CONSTRAINTS_FILE"?h="$CONSTRAINTS_BRANCH" >> /VERSIONS && \
# Clean after instalation.
apk del .build-deps && \
apk del .build-deps .build-librdkafka && \
rm -rf \
/app \
/root/.cache/ \