18 lines
658 B
Docker
18 lines
658 B
Docker
|
# FROM confluentinc/cp-kafka-connect:7.0.9 as cp
|
||
|
FROM confluentinc/cp-kafka-connect:7.7.1 as cp
|
||
|
RUN confluent-hub install --no-prompt confluentinc/kafka-connect-s3:10.5.17
|
||
|
RUN confluent-hub install --no-prompt confluentinc/kafka-connect-avro-converter:7.7.1
|
||
|
|
||
|
|
||
|
FROM quay.io/strimzi/kafka:0.34.0-kafka-3.4.0
|
||
|
USER root:root
|
||
|
COPY --from=cp /usr/share/confluent-hub-components/ /opt/kafka/plugins/
|
||
|
|
||
|
# Rename files
|
||
|
COPY rename_files.sh /opt/kafka/rename_files.sh
|
||
|
RUN chmod +x /opt/kafka/rename_files.sh && \
|
||
|
# Run the script during the build process
|
||
|
/opt/kafka/rename_files.sh && \
|
||
|
# Remove the script after execution
|
||
|
rm /opt/kafka/rename_files.sh
|