forked from edenhill/kcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (25 loc) · 930 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM alpine:3.10
COPY . /usr/src/kafkacat
ENV BUILD_DEPS bash make gcc g++ cmake curl pkgconfig python perl bsd-compat-headers zlib-dev lz4-dev openssl-dev curl-dev
ENV RUN_DEPS libcurl lz4-libs ca-certificates
# Kerberos requires a default realm to be set in krb5.conf, which we can't
# do for obvious reasons. So skip it for now.
#ENV BUILD_DEPS_EXTRA cyrus-sasl-dev
#ENV RUN_DEPS_EXTRA libsasl heimdal-libs krb5
RUN echo Installing ; \
apk add --no-cache --virtual .dev_pkgs $BUILD_DEPS $BUILD_DEPS_EXTRA && \
apk add --no-cache $RUN_DEPS $RUN_DEPS_EXTRA && \
echo Building && \
cd /usr/src/kafkacat && \
rm -rf tmp-bootstrap && \
echo "Source versions:" && \
grep ^github_download ./bootstrap.sh && \
./bootstrap.sh && \
mv kafkacat /usr/bin/ ; \
echo Cleaning up ; \
cd / ; \
rm -rf /usr/src/kafkacat; \
apk del .dev_pkgs ; \
rm -rf /var/cache/apk/*
RUN kafkacat -V
ENTRYPOINT ["kafkacat"]