Skip to content

Commit bed3bbc

Browse files
committed
Do not add Caddyfile directly, but a template instead and let run.sh create it. Possible fix for some deployment platforms (rancher, k8s, etc).
Signed-off-by: Marios Andreopoulos <opensource@andmarios.com>
1 parent f7b8535 commit bed3bbc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN wget "${CONNECT_UI_URL}" -O /kafka-connect-ui.tar.gz \
2121
&& rm -f /kafka-connect-ui.tar.gz
2222

2323
# Add configuration and runtime files
24-
ADD Caddyfile /caddy/
24+
ADD Caddyfile /caddy/Caddyfile.template
2525
ADD run.sh /
2626
RUN chmod +x /run.sh
2727

docker/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ fi
1010

1111
CONNECT_URL="${CONNECT_URL:-http://localhost:8083}"
1212

13+
cat /caddy/Caddyfile.template > /caddy/Caddyfile
14+
1315
echo
1416
echo "Enabling proxy because Connect doesn't send CORS headers yet and setting up clusters."
1517

0 commit comments

Comments
 (0)