-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
39 lines (31 loc) · 1.15 KB
/
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
33
34
35
36
37
38
39
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
# check=error=true
FROM stackable/image/kcat AS kcat
FROM stackable/image/stackable-base AS final
ARG PRODUCT
ARG KCAT
ARG RELEASE
ARG STACKABLE_USER_UID
LABEL name="Kafka Testing Tools" \
maintainer="[email protected]" \
vendor="Stackable GmbH" \
version="${PRODUCT}" \
release="${RELEASE}" \
summary="The Stackable image for the kcat tool." \
description="Used for integration testing"
# diffutils (diff) and binutils (cmp) are needed for the kafka integration tests
RUN microdnf install \
binutils \
cyrus-sasl \
diffutils \
libcurl-minimal \
openssl \
zlib \
&& microdnf clean all \
&& rm -rf /var/cache/yum
# Store kcat version with binary name and add softlink
COPY --chown=${STACKABLE_USER_UID}:0 --from=kcat /stackable/kcat-${KCAT}/kcat /stackable/kcat-${KCAT}
RUN ln -s /stackable/kcat-${KCAT} /stackable/kcat
COPY --chown=${STACKABLE_USER_UID}:0 --from=kcat /licenses /licenses
COPY --chown=${STACKABLE_USER_UID}:0 kafka-testing-tools/licenses /licenses
ENTRYPOINT ["/stackable/kcat"]