Skip to content

Commit

Permalink
debezium-connect-entrypoint-3.0: refresh patch
Browse files Browse the repository at this point in the history
  • Loading branch information
OddBloke committed Mar 3, 2025
1 parent b7f187f commit 040dd42
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions debezium-connect-entrypoint-3.0/fix-entrypoint-for-wolfi.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,26 @@ Subject: [PATCH] fix entrypoint for wolfi

Signed-off-by: Dentrax <furkan.turkal@chainguard.dev>
---
connect-base/3.0/docker-entrypoint.sh | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/connect-base/3.0/docker-entrypoint.sh b/connect-base/3.0/docker-entrypoint.sh
index 45ffb3c..520711d 100755
index ba811a7..ce5ad69 100755
--- a/connect-base/3.0/docker-entrypoint.sh
+++ b/connect-base/3.0/docker-entrypoint.sh
@@ -261,15 +261,9 @@ case $1 in
echo " OFFSET_FLUSH_TIMEOUT_MS=$CONNECT_OFFSET_FLUSH_TIMEOUT_MS"
echo " SHUTDOWN_TIMEOUT=$CONNECT_TASK_SHUTDOWN_GRACEFUL_TIMEOUT_MS"

- # Choose the right `cp` argument, `--update=none` is not available on RHEL
- release=`cat /etc/redhat-release | cut -d ' ' -f1`
- if [ $release = "Fedora" ]; then
- cp_arg="-r --update=none"
- else
- cp_arg="-rn"
- fi
- # Copy config files if not provided in volume
- # Choose the right `cp` argument, `--update=none` is not available on RHEL
- release=`cat /etc/redhat-release | cut -d ' ' -f1`
- if [ $release = "Fedora" ]; then
- cp_arg="-r --update=none"
- else
- cp_arg="-rn"
- fi
- # Copy config files if not provided in volume
- cp $cp_arg $KAFKA_HOME/config.orig/* $KAFKA_HOME/config
+ # Patched by Chainguard
+ # Use Wolfi-compatible cp arguments.
+ cp -r -n $KAFKA_HOME/config.orig/* $KAFKA_HOME/config

#
# Configure the log files ...
--
2.39.5 (Apple Git-154)

0 comments on commit 040dd42

Please sign in to comment.