18
18
# Alpine-based docker container with:
19
19
# * Python3
20
20
# * librdkafka (fully featured)
21
- # * kafkacat (withouth schema-registry/Avro support)
21
+ # * kcat (withouth schema-registry/Avro support)
22
22
# * confluent-kafka-python
23
23
#
24
24
# How to build (from confluent-kafka-python top-level directory):
@@ -30,13 +30,14 @@ FROM alpine:3.12
30
30
31
31
COPY . /usr/src/confluent-kafka-python
32
32
33
- ENV LIBRDKAFKA_VERSION v2.8.0
34
- ENV KAFKACAT_VERSION master
33
+ ENV LIBRDKAFKA_VERSION="v2.8.0"
34
+ ENV KCAT_VERSION="master"
35
+ ENV CKP_VERSION="master"
35
36
36
37
37
- ENV BUILD_DEPS git make gcc g++ curl pkgconfig bsd-compat-headers zlib-dev openssl-dev cyrus-sasl-dev curl-dev zstd-dev yajl-dev python3-dev
38
+ ENV BUILD_DEPS=" git make gcc g++ curl pkgconfig bsd-compat-headers zlib-dev openssl-dev cyrus-sasl-dev curl-dev zstd-dev yajl-dev python3-dev"
38
39
39
- ENV RUN_DEPS bash libcurl cyrus-sasl-gssapiv2 ca-certificates libsasl heimdal-libs krb5 zstd-libs zstd-static yajl python3 py3-pip
40
+ ENV RUN_DEPS=" bash libcurl cyrus-sasl-gssapiv2 ca-certificates libsasl heimdal-libs krb5 zstd-libs zstd-static yajl python3 py3-pip"
40
41
41
42
RUN \
42
43
apk update && \
@@ -56,25 +57,25 @@ RUN \
56
57
rm -rf /usr/src/librdkafka
57
58
58
59
RUN \
59
- echo Installing kafkacat && \
60
- mkdir -p /usr/src/kafkacat && \
61
- cd /usr/src/kafkacat && \
62
- curl -LfsS https://github.com/edenhill/kafkacat /archive/${KAFKACAT_VERSION }.tar.gz | \
60
+ echo Installing kcat && \
61
+ mkdir -p /usr/src/kcat && \
62
+ cd /usr/src/kcat && \
63
+ curl -LfsS https://github.com/edenhill/kcat /archive/${KCAT_VERSION }.tar.gz | \
63
64
tar xvzf - --strip-components=1 && \
64
65
./configure --prefix=/usr && \
65
66
make -j && \
66
67
make install && \
67
68
cd / && \
68
- rm -rf /usr/src/kafkacat && \
69
- kafkacat -V
69
+ rm -rf /usr/src/kcat && \
70
+ kcat -V
70
71
71
72
RUN \
72
73
echo Installing confluent-kafka-python && \
73
74
mkdir -p /usr/src/confluent-kafka-python && \
74
75
cd /usr/src/confluent-kafka-python && \
75
76
rm -rf build && \
76
77
rm -rf dist && \
77
- python3 -m pip install build \
78
+ python3 -m pip install build && \
78
79
python3 -m build && \
79
80
python3 -m pip install dist/confluent_kafka*whl && \
80
81
cd / && \
0 commit comments