From 771734f224863310a563f66e6574206304065a28 Mon Sep 17 00:00:00 2001 From: Petar Kostov Date: Wed, 7 May 2025 14:56:46 +0300 Subject: [PATCH 1/2] Merge pull request #1 from peperon/custom-debezium-version Custom debezium version --- Dockerfile | 70 ++++ debezium-server-dist/pom.xml | 624 +++++++++++++++++------------------ 2 files changed, 382 insertions(+), 312 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..6721cac94 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,70 @@ +# Stage 1: Build stage +FROM registry.access.redhat.com/ubi8/openjdk-21 AS builder + +LABEL maintainer="Debezium Community" + +# +# Set the version, home directory, and MD5 hash. +# +ENV DEBEZIUM_VERSION=3.0.8.Final \ + SERVER_HOME=/debezium \ + MAVEN_REPO_CENTRAL="https://repo1.maven.org/maven2" +ENV SERVER_URL_PATH=io/debezium/debezium-server-dist/$DEBEZIUM_VERSION/debezium-server-dist-$DEBEZIUM_VERSION.tar.gz \ + SERVER_MD5=8bbe45300cebec09364a6a1986c1134f + +# +# Create a directory for Debezium Server +# +USER root +RUN microdnf -y install gzip && \ + microdnf clean all && \ + mkdir $SERVER_HOME && \ + chmod 755 $SERVER_HOME + +# +# Copy local debezium tar file as root +COPY debezium-server-dist/target/debezium-server-dist-3.0.8.Final.tar.gz /tmp/debezium.tar.gz + +# Extract the archive and set permissions as root +RUN tar xzf /tmp/debezium.tar.gz -C $SERVER_HOME --strip-components 1 && \ + rm -f /tmp/debezium.tar.gz && \ + chown -R jboss:jboss $SERVER_HOME && \ + chmod -R g+w,o+w $SERVER_HOME + +# Switch to jboss user after file operations are complete +USER jboss +RUN mkdir -p $SERVER_HOME/config && \ + mkdir -p $SERVER_HOME/data + + +# +# 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-21 + +LABEL maintainer="Debezium Community" + +ENV DEBEZIUM_VERSION=3.0.8.Final \ + SERVER_HOME=/debezium \ + MAVEN_REPO_CENTRAL="https://repo1.maven.org/maven2" + +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 +WORKDIR $SERVER_HOME + +# +# Expose the ports and set up volumes for the data, transaction log, and configuration +# +EXPOSE 8080 +VOLUME ["/debezium/config","/debezium/data"] + +CMD ["/debezium/run.sh"] \ No newline at end of file diff --git a/debezium-server-dist/pom.xml b/debezium-server-dist/pom.xml index f8c7c0581..7299cba0e 100644 --- a/debezium-server-dist/pom.xml +++ b/debezium-server-dist/pom.xml @@ -107,14 +107,14 @@ io.debezium debezium-server-http - - io.debezium - debezium-server-pubsub - - - io.debezium - debezium-server-pulsar - + + + + + + + + io.debezium debezium-server-eventhubs @@ -127,10 +127,10 @@ io.debezium debezium-server-kafka - - io.debezium - debezium-server-pravega - + + + + io.debezium debezium-server-nats-streaming @@ -147,10 +147,10 @@ io.debezium debezium-server-rabbitmq - - io.debezium - debezium-server-rocketmq - + + + + io.debezium debezium-server-milvus @@ -305,306 +305,306 @@ - - io.debezium - debezium-connector-cassandra-3 - ${project.parent.version} - plugin - zip - - - io.debezium - debezium-connector-cassandra-core - - - io.debezium - debezium-core - - - org.apache.cassandra - cassandra-all - - - com.fasterxml.jackson.core - jackson-annotations - - - com.datastax.oss - java-driver-core-shaded - - - com.datastax.oss - java-driver-query-builder - - - io.dropwizard.metrics - metrics-core - - - io.dropwizard.metrics - metrics-jmx - - - io.dropwizard.metrics - metrics-healthchecks - - - io.dropwizard.metrics - metrics-servlets - - - org.eclipse.jetty - jetty-servlet - - - com.google.guava - guava - - - org.apache.kafka - connect-api - - - org.apache.kafka - connect-json - - - org.slf4j - slf4j-api - - - ch.qos.logback - logback-classic - - - - - io.debezium - debezium-connector-cassandra-5 - ${project.parent.version} - plugin - zip - - - io.debezium - debezium-connector-cassandra-core - - - io.debezium - debezium-core - - - org.apache.cassandra - cassandra-all - - - com.fasterxml.jackson.core - jackson-annotations - - - com.datastax.oss - java-driver-core-shaded - - - com.datastax.oss - java-driver-query-builder - - - io.dropwizard.metrics - metrics-core - - - io.dropwizard.metrics - metrics-jmx - - - io.dropwizard.metrics - metrics-healthchecks - - - io.dropwizard.metrics - metrics-servlets - - - org.eclipse.jetty - jetty-servlet - - - com.google.guava - guava - - - org.apache.kafka - connect-api - - - org.apache.kafka - connect-json - - - org.slf4j - slf4j-api - - - ch.qos.logback - logback-classic - - - - - io.debezium - debezium-connector-cassandra-4 - ${project.parent.version} - plugin - zip - - - io.debezium - debezium-connector-cassandra-core - - - io.debezium - debezium-core - - - org.apache.cassandra - cassandra-all - - - com.fasterxml.jackson.core - jackson-annotations - - - com.datastax.oss - java-driver-core-shaded - - - com.datastax.oss - java-driver-query-builder - - - io.dropwizard.metrics - metrics-core - - - io.dropwizard.metrics - metrics-jmx - - - io.dropwizard.metrics - metrics-healthchecks - - - io.dropwizard.metrics - metrics-servlets - - - org.eclipse.jetty - jetty-servlet - - - com.google.guava - guava - - - org.apache.kafka - connect-api - - - org.apache.kafka - connect-json - - - org.slf4j - slf4j-api - - - ch.qos.logback - logback-classic - - - - - io.debezium - debezium-connector-dse - ${project.parent.version} - plugin - zip - - - io.debezium - debezium-connector-cassandra-core - - - io.debezium - debezium-core - - - org.apache.cassandra - cassandra-all - - - com.fasterxml.jackson.core - jackson-annotations - - - com.datastax.oss - java-driver-core-shaded - - - com.datastax.oss - java-driver-query-builder - - - io.dropwizard.metrics - metrics-core - - - io.dropwizard.metrics - metrics-jmx - - - io.dropwizard.metrics - metrics-healthchecks - - - io.dropwizard.metrics - metrics-servlets - - - org.eclipse.jetty - jetty-servlet - - - com.google.guava - guava - - - org.apache.kafka - connect-api - - - org.apache.kafka - connect-json - - - org.slf4j - slf4j-api - - - ch.qos.logback - logback-classic - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + io.debezium debezium-connector-db2 - - io.debezium - debezium-connector-spanner - + + + + io.debezium debezium-connector-vitess From a57306966557b1babebd47a6099e8842e363f14d Mon Sep 17 00:00:00 2001 From: Orhan Abdula Date: Fri, 24 Oct 2025 08:40:48 +0300 Subject: [PATCH 2/2] DBZ-3872 - replace debeizum org checks with RedisLabs --- .github/workflows/cross-maven.yml | 4 ++-- .github/workflows/sanity-check.yml | 10 +++++----- Dockerfile | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cross-maven.yml b/.github/workflows/cross-maven.yml index f8f90b2fe..0b84ab3f0 100644 --- a/.github/workflows/cross-maven.yml +++ b/.github/workflows/cross-maven.yml @@ -35,7 +35,7 @@ jobs: env: branch_name: ${{ github.head_ref }} run: | - curl --silent -X "GET" https://api.github.com/repos/debezium/debezium/pulls | jq '.[] | {branch: .head.ref}' | jq -r '.branch' >> SORTED_PULLS.txt + curl --silent -X "GET" https://api.github.com/repos/RedisLabs/debezium/pulls | jq '.[] | {branch: .head.ref}' | jq -r '.branch' >> SORTED_PULLS.txt while IFS=" " read -r BRANCH; do @@ -54,7 +54,7 @@ jobs: if: ${{ steps.branch.outputs.BRANCH_FOUND != 'true' }} uses: actions/checkout@v5 with: - repository: debezium/debezium + repository: RedisLabs/debezium ref: ${{ github.base_ref }} path: core - name: Set up JDK diff --git a/.github/workflows/sanity-check.yml b/.github/workflows/sanity-check.yml index 882ea9da0..d80f74669 100644 --- a/.github/workflows/sanity-check.yml +++ b/.github/workflows/sanity-check.yml @@ -16,7 +16,7 @@ jobs: name: Commit message runs-on: ubuntu-latest steps: - - name: Commit messages in format DBZ-xxx + - name: Commit messages in format RDSC-xxx id: check env: pull_request_number: ${{ github.event.pull_request.number }} @@ -72,14 +72,14 @@ jobs: while IFS= read -r line; do echo "-> checking: $line" - if [[ ! $line =~ (^DBZ-[[:digit:]]+)|(\[release\])|(\[jenkins-jobs\])|(\[docs\])|(\[maven-release-plugin\])|(\[ci\]) ]]; then + if [[ ! $line =~ (^RDSC-[[:digit:]]+)|(\[release\])|(\[jenkins-jobs\])|(\[docs\])|(\[maven-release-plugin\])|(\[ci\]) ]]; then NON_PREFIX_COMMITS="${NON_PREFIX_COMMITS} -> ${line}\n" fi done < COMMIT_MSGS.txt if [[ -n $NON_PREFIX_COMMITS ]]; then echo "========================================================================" - echo " COMMIT MESSAGES WITH MISSING \"DBZ\" PREFIX" + echo " COMMIT MESSAGES WITH MISSING \"RDSC\" PREFIX" echo "========================================================================" echo -e "$NON_PREFIX_COMMITS" echo "PREFIX_COMMITS=false" >> $GITHUB_OUTPUT @@ -94,7 +94,7 @@ jobs: with: issue-number: ${{ github.event.pull_request.number }} body: | - Hi @${{ github.event.pull_request.user.login }}, thanks for your contribution. Please prefix the commit message(s) with the [DBZ-xxx JIRA issue key](https://github.com/debezium/debezium/blob/main/CONTRIBUTE.md#making-changes). + Hi @${{ github.event.pull_request.user.login }}, thanks for your contribution. Please prefix the commit message(s) with the [RDSC-xxx JIRA issue key](https://github.com/debezium/debezium/blob/main/CONTRIBUTE.md#making-changes). - name: Check failure if: ${{ steps.check.outputs.PREFIX_COMMITS == 'false' }} @@ -102,4 +102,4 @@ jobs: continue-on-error: false with: script: | - throw new Error('Commit has no DBZ-xxx prefix') + throw new Error('Commit has no RDSC-xxx prefix') diff --git a/Dockerfile b/Dockerfile index 6721cac94..8b074048f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,4 +67,4 @@ WORKDIR $SERVER_HOME EXPOSE 8080 VOLUME ["/debezium/config","/debezium/data"] -CMD ["/debezium/run.sh"] \ No newline at end of file +CMD ["/debezium/run.sh"]