forked from MikeZLin/kcat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (25 loc) · 978 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/kcat
ENV BUILD_DEPS bash make gcc g++ cmake curl pkgconfig python perl bsd-compat-headers zlib-dev zstd-dev zstd-libs lz4-dev openssl-dev curl-dev
ENV RUN_DEPS libcurl lz4-libs zstd-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/kcat && \
rm -rf tmp-bootstrap && \
echo "Source versions:" && \
grep ^github_download ./bootstrap.sh && \
./bootstrap.sh --no-install-deps --no-enable-static && \
mv kcat /usr/bin/ && \
echo Cleaning up && \
cd / && \
rm -rf /usr/src/kcat && \
apk del .dev_pkgs && \
rm -rf /var/cache/apk/*
RUN kcat -V
ENTRYPOINT ["kcat"]