Skip to content

Commit ab4bd90

Browse files
DBZ-3872 - replace debeizum org checks with RedisLabs
1 parent ca2091b commit ab4bd90

File tree

3 files changed

+77
-7
lines changed

3 files changed

+77
-7
lines changed

.github/workflows/cross-maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
env:
3636
branch_name: ${{ github.head_ref }}
3737
run: |
38-
curl --silent -X "GET" https://api.github.com/repos/debezium/debezium/pulls | jq '.[] | {branch: .head.ref}' | jq -r '.branch' >> SORTED_PULLS.txt
38+
curl --silent -X "GET" https://api.github.com/repos/RedisLabs/debezium/pulls | jq '.[] | {branch: .head.ref}' | jq -r '.branch' >> SORTED_PULLS.txt
3939
4040
while IFS=" " read -r BRANCH;
4141
do
@@ -54,7 +54,7 @@ jobs:
5454
if: ${{ steps.branch.outputs.BRANCH_FOUND != 'true' }}
5555
uses: actions/checkout@v5
5656
with:
57-
repository: debezium/debezium
57+
repository: RedisLabs/debezium
5858
ref: ${{ github.base_ref }}
5959
path: core
6060
- name: Set up JDK

.github/workflows/sanity-check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Commit message
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Commit messages in format DBZ-xxx
19+
- name: Commit messages in format RDSC-xxx
2020
id: check
2121
env:
2222
pull_request_number: ${{ github.event.pull_request.number }}
@@ -72,14 +72,14 @@ jobs:
7272
while IFS= read -r line;
7373
do
7474
echo "-> checking: $line"
75-
if [[ ! $line =~ (^DBZ-[[:digit:]]+)|(\[release\])|(\[jenkins-jobs\])|(\[docs\])|(\[maven-release-plugin\])|(\[ci\]) ]]; then
75+
if [[ ! $line =~ (^RDSC-[[:digit:]]+)|(\[release\])|(\[jenkins-jobs\])|(\[docs\])|(\[maven-release-plugin\])|(\[ci\]) ]]; then
7676
NON_PREFIX_COMMITS="${NON_PREFIX_COMMITS} -> ${line}\n"
7777
fi
7878
done < COMMIT_MSGS.txt
7979
8080
if [[ -n $NON_PREFIX_COMMITS ]]; then
8181
echo "========================================================================"
82-
echo " COMMIT MESSAGES WITH MISSING \"DBZ\" PREFIX"
82+
echo " COMMIT MESSAGES WITH MISSING \"RDSC\" PREFIX"
8383
echo "========================================================================"
8484
echo -e "$NON_PREFIX_COMMITS"
8585
echo "PREFIX_COMMITS=false" >> $GITHUB_OUTPUT
@@ -94,12 +94,12 @@ jobs:
9494
with:
9595
issue-number: ${{ github.event.pull_request.number }}
9696
body: |
97-
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).
97+
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).
9898
9999
- name: Check failure
100100
if: ${{ steps.check.outputs.PREFIX_COMMITS == 'false' }}
101101
uses: actions/github-script@v8
102102
continue-on-error: false
103103
with:
104104
script: |
105-
throw new Error('Commit has no DBZ-xxx prefix')
105+
throw new Error('Commit has no RDSC-xxx prefix')

Dockerfile

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Stage 1: Build stage
2+
FROM registry.access.redhat.com/ubi8/openjdk-21 AS builder
3+
4+
LABEL maintainer="Debezium Community"
5+
6+
#
7+
# Set the version, home directory, and MD5 hash.
8+
#
9+
ENV DEBEZIUM_VERSION=3.0.8.Final \
10+
SERVER_HOME=/debezium \
11+
MAVEN_REPO_CENTRAL="https://repo1.maven.org/maven2"
12+
ENV SERVER_URL_PATH=io/debezium/debezium-server-dist/$DEBEZIUM_VERSION/debezium-server-dist-$DEBEZIUM_VERSION.tar.gz \
13+
SERVER_MD5=8bbe45300cebec09364a6a1986c1134f
14+
15+
#
16+
# Create a directory for Debezium Server
17+
#
18+
USER root
19+
RUN microdnf -y install gzip && \
20+
microdnf clean all && \
21+
mkdir $SERVER_HOME && \
22+
chmod 755 $SERVER_HOME
23+
24+
#
25+
# Copy local debezium tar file as root
26+
COPY debezium-server-dist/target/debezium-server-dist-3.0.8.Final.tar.gz /tmp/debezium.tar.gz
27+
28+
# Extract the archive and set permissions as root
29+
RUN tar xzf /tmp/debezium.tar.gz -C $SERVER_HOME --strip-components 1 && \
30+
rm -f /tmp/debezium.tar.gz && \
31+
chown -R jboss:jboss $SERVER_HOME && \
32+
chmod -R g+w,o+w $SERVER_HOME
33+
34+
# Switch to jboss user after file operations are complete
35+
USER jboss
36+
RUN mkdir -p $SERVER_HOME/config && \
37+
mkdir -p $SERVER_HOME/data
38+
39+
40+
#
41+
# Allow random UID to use Debezium Server
42+
#
43+
RUN chmod -R g+w,o+w $SERVER_HOME
44+
45+
# Stage 2: Final image
46+
FROM registry.access.redhat.com/ubi8/openjdk-21
47+
48+
LABEL maintainer="Debezium Community"
49+
50+
ENV DEBEZIUM_VERSION=3.0.8.Final \
51+
SERVER_HOME=/debezium \
52+
MAVEN_REPO_CENTRAL="https://repo1.maven.org/maven2"
53+
54+
USER root
55+
RUN microdnf clean all
56+
57+
USER jboss
58+
59+
COPY --from=builder $SERVER_HOME $SERVER_HOME
60+
61+
# Set the working directory to the Debezium Server home directory
62+
WORKDIR $SERVER_HOME
63+
64+
#
65+
# Expose the ports and set up volumes for the data, transaction log, and configuration
66+
#
67+
EXPOSE 8080
68+
VOLUME ["/debezium/config","/debezium/data"]
69+
70+
CMD ["/debezium/run.sh"]

0 commit comments

Comments
 (0)