-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
29 lines (23 loc) · 1.21 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
# Extending confluent kafka-connect image
FROM confluentinc/cp-kafka-connect:7.2.0
# Build argument for connector version
ARG CONNECTOR_VERSION
# Copying schemas are only relevant if using <topic-name>.schema.url configuration
# Configuration is relevant only in case where incoming data is of type Json-string
# and format is either Parquet or Avro
#
# The schemas(file) can be passed to the configuration as below example:
# <topic-name>.schema.url: file:///usr/share/java/<schema-file>
#
# Copying of schema is not needed if schema will be fetched from a remote service
#
# The schemas(remote service) can be passed to the configuration as below example:
# <topic-name>.schema.url: https://link/to/schema-file
#
# If changing the destination directory, make sure it has required access permissions
# COPY ./schemas /usr/share/java/
# Copying the connector and dependencies jar to the kafka directory
RUN echo "Connector version configured: ${CONNECTOR_VERSION}"
COPY ./target/kafka-connect-azure-blob-storage-${CONNECTOR_VERSION}-package /usr/share/java/kafka/
# `kafka-connect-azure-blob-storage-${CONNECTOR_VERSION}-package` does not contain
# kafka and confluent dependencies as it is provided by the confluent image