Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dbz 2.7 #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions server/2.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build stage
FROM registry.access.redhat.com/ubi8/openjdk-11 AS builder
FROM --platform=linux/amd64 registry.access.redhat.com/ubi8/openjdk-11 AS builder

LABEL maintainer="Debezium Community"

Expand All @@ -8,7 +8,8 @@ LABEL maintainer="Debezium Community"
#
ENV DEBEZIUM_VERSION=2.7.2.Final \
SERVER_HOME=/debezium \
MAVEN_REPO_CENTRAL="https://repo1.maven.org/maven2"
MAVEN_REPO_CENTRAL="https://repo1.maven.org/maven2" \
AWS_MSK_IAM_VERSION=1.1.6
ENV SERVER_URL_PATH=io/debezium/debezium-server-dist/$DEBEZIUM_VERSION/debezium-server-dist-$DEBEZIUM_VERSION.tar.gz \
SERVER_MD5=4e07624cf388cfc121477aa9a050595d

Expand All @@ -21,13 +22,6 @@ RUN microdnf -y install gzip && \
mkdir $SERVER_HOME && \
chmod 755 $SERVER_HOME

#
# Change ownership and switch user
#
RUN chown -R jboss $SERVER_HOME && \
chgrp -R jboss $SERVER_HOME
USER jboss

RUN mkdir $SERVER_HOME/conf && \
mkdir $SERVER_HOME/data

Expand All @@ -43,13 +37,19 @@ RUN echo "$SERVER_MD5 /tmp/debezium.tar.gz" | md5sum -c - &&\
tar xzf /tmp/debezium.tar.gz -C $SERVER_HOME --strip-components 1 &&\
rm -f /tmp/debezium.tar.gz

# Mount our Kafka jar to Debezium
COPY debezium-server-kafka-2.7.2.Final.jar /debezium/lib/

# Install AWS IAM
RUN curl -fSL -o "$SERVER_HOME/lib/aws-msk-iam-auth-all.jar" https://github.com/aws/aws-msk-iam-auth/releases/download/v$AWS_MSK_IAM_VERSION/aws-msk-iam-auth-$AWS_MSK_IAM_VERSION-all.jar

#
# Allow random UID to use Debezium Server
#
RUN chmod -R g+w,o+w $SERVER_HOME

# Stage 2: Final image
FROM registry.access.redhat.com/ubi8/openjdk-11
FROM --platform=linux/amd64 registry.access.redhat.com/ubi8/openjdk-11

LABEL maintainer="Debezium Community"

Expand All @@ -60,8 +60,6 @@ ENV DEBEZIUM_VERSION=2.7.2.Final \
USER root
RUN microdnf clean all

USER jboss

COPY --from=builder $SERVER_HOME $SERVER_HOME

# Set the working directory to the Debezium Server home directory
Expand Down
Binary file added server/2.7/debezium-server-kafka-2.7.2.Final.jar
Binary file not shown.