Add missing build dependencies for agent in docker

Change-Id: I19e4f0133bdce9eb9065503ef8781e2ec1ac1c37
This commit is contained in:
Dobroslaw Zybort 2018-11-28 15:01:30 +01:00 committed by Adrian Czarnecki
parent ae2bd9d740
commit 82fcfd3b18
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/ \