forked from project-kessel/inventory-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.connect
More file actions
28 lines (23 loc) · 1.83 KB
/
Dockerfile.connect
File metadata and controls
28 lines (23 loc) · 1.83 KB
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
FROM quay.io/strimzi/kafka:0.45.2-kafka-3.9.0
USER root:root
# Notes on ENV settings and variables
# DEBEZIUM_MAVEN_VERSION = Maven Package Version (x.x.x.FINAL) - https://mvnrepository.com/artifact/io.debezium/debezium-connector-postgres)
# DEBEZIUM_RELEASE_VERSION = x.y release version (matches x.y of Maven Package Version)
# DEBEZIUM_TARBALL_MD5 = md5 value of tar.gz file from Maven (set by script)
# DEBEZIUM_SCRIPTING_TARBALL_MD5 = md5 value from tar.gz file from Maven (set by script)
# Update the debezium maven and release versions to update Debezium and related plugins
ENV KAFKA_CONNECT_PLUGINS_DIR=/opt/kafka/plugins \
EXTERNAL_LIBS_DIR=/opt/kafka/libs \
DEBEZIUM_MAVEN_VERSION=3.1.3.Final \
DEBEZIUM_RELEASE_VERSION=3.1
RUN rm -rf /opt/kafka-exporter
# The docker-maven-downlad script is a handy tool to add packages/plugins from Maven
# Review the info at the start of the script for more details on use:
RUN mkdir -p "$KAFKA_CONNECT_PLUGINS_DIR" "$EXTERNAL_LIBS_DIR" && \
DEBEZIUM_TARBALL_MD5=$(curl https://repo1.maven.org/maven2/io/debezium/debezium-connector-postgres/${DEBEZIUM_MAVEN_VERSION}/debezium-connector-postgres-${DEBEZIUM_MAVEN_VERSION}-plugin.tar.gz.md5) && \
DEBEZIUM_SCRIPTING_TARBALL_MD5=$(curl https://repo1.maven.org/maven2/io/debezium/debezium-scripting/${DEBEZIUM_MAVEN_VERSION}/debezium-scripting-${DEBEZIUM_MAVEN_VERSION}.tar.gz.md5) && \
curl -o /usr/local/bin/docker-maven-download https://raw.githubusercontent.com/debezium/container-images/refs/heads/main/connect-base/${DEBEZIUM_RELEASE_VERSION}/docker-maven-download.sh && \
chmod +x /usr/local/bin/docker-maven-download && \
docker-maven-download debezium postgres "$DEBEZIUM_MAVEN_VERSION" "$DEBEZIUM_TARBALL_MD5" && \
docker-maven-download debezium-optional scripting "$DEBEZIUM_MAVEN_VERSION" "$DEBEZIUM_SCRIPTING_TARBALL_MD5"
USER 1001