Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/cross-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -94,12 +94,12 @@ 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' }}
uses: actions/github-script@v8
continue-on-error: false
with:
script: |
throw new Error('Commit has no DBZ-xxx prefix')
throw new Error('Commit has no RDSC-xxx prefix')
70 changes: 70 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Loading
Loading