From ab4bd90e18ceb4dd9d1e94dc376d6b04f8f12fa9 Mon Sep 17 00:00:00 2001 From: Orhan Abdula Date: Fri, 24 Oct 2025 08:40:48 +0300 Subject: [PATCH 1/2] DBZ-3872 - replace debeizum org checks with RedisLabs --- .github/workflows/cross-maven.yml | 4 +- .github/workflows/sanity-check.yml | 10 ++--- Dockerfile | 70 ++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 7 deletions(-) create mode 100644 Dockerfile diff --git a/.github/workflows/cross-maven.yml b/.github/workflows/cross-maven.yml index f8f90b2f..0b84ab3f 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 882ea9da..d80f7466 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 new file mode 100644 index 00000000..8b074048 --- /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"] From 017e77191f99285f6828a563a15946cfa2bcaa6a Mon Sep 17 00:00:00 2001 From: Orhan Abdula Date: Fri, 24 Oct 2025 11:48:29 +0300 Subject: [PATCH 2/2] rm Dockerfile --- Dockerfile | 70 ------------------------------------------------------ 1 file changed, 70 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8b074048..00000000 --- a/Dockerfile +++ /dev/null @@ -1,70 +0,0 @@ -# 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"]