-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (24 loc) · 1.82 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
ARG STRIMZI_KAFKA_TAG="0.38.0-kafka-3.6.0"
FROM quay.io/strimzi/kafka:${STRIMZI_KAFKA_TAG}
ARG AWS_MSK_IAM_AUTH_VERSION="2.1.1"
ENV CLASSPATH=/opt/kafka/libs/aws-msk-iam-auth-${AWS_MSK_IAM_AUTH_VERSION}-all.jar
USER root
RUN curl -sSL -o /opt/kafka/libs/aws-msk-iam-auth-${AWS_MSK_IAM_AUTH_VERSION}-all.jar https://github.com/aws/aws-msk-iam-auth/releases/download/v${AWS_MSK_IAM_AUTH_VERSION}/aws-msk-iam-auth-${AWS_MSK_IAM_AUTH_VERSION}-all.jar
COPY kafka_connect_config_generator.sh /opt/kafka/kafka_connect_config_generator.sh
COPY kafka_mirror_maker_2_connector_config_generator.sh /opt/kafka/kafka_mirror_maker_2_connector_config_generator.sh
COPY kafka_mirror_maker_consumer_config_generator.sh /opt/kafka/kafka_mirror_maker_consumer_config_generator.sh
COPY kafka_mirror_maker_producer_config_generator.sh /opt/kafka/kafka_mirror_maker_producer_config_generator.sh
# JDBC Kafka Connector
COPY confluentinc-kafka-connect-jdbc-10.0.1/ /opt/connectors/confluentinc-kafka-connect-jdbc-10.0.1/
COPY db2-driver/db2jcc4.jar /opt/connectors/confluentinc-kafka-connect-jdbc-10.0.1/lib/
COPY mysql-driver/mysql-connector-java-5.1.49.jar /opt/connectors/confluentinc-kafka-connect-jdbc-10.0.1/lib/
# MongoDB Kafka Connector
COPY mongodb-kafka-connect-mongodb-1.7.0/ /opt/connectors/mongodb-kafka-connect-mongodb-1.7.0/
# S3 Kafka Connector
COPY confluentinc-kafka-connect-s3-10.5.5/ /opt/connectors/confluentinc-kafka-connect-s3-10.5.5/
# Avro Converter
COPY confluentinc-kafka-connect-avro-converter-7.5.1/ /opt/connectors/confluentinc-kafka-connect-avro-converter-7.5.1/
RUN chmod +x /opt/kafka/kafka_connect_config_generator.sh \
&& chmod +x /opt/kafka/kafka_mirror_maker_2_connector_config_generator.sh \
&& chmod +x /opt/kafka/kafka_mirror_maker_consumer_config_generator.sh \
&& chmod +x /opt/kafka/kafka_mirror_maker_producer_config_generator.sh