Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created December 12, 2019 16:27
Show Gist options
  • Save recursivecodes/7e84604bfff63a8646ffc745d78c948b to your computer and use it in GitHub Desktop.
Save recursivecodes/7e84604bfff63a8646ffc745d78c948b to your computer and use it in GitHub Desktop.
connect-demo.sh
#!/usr/bin/env bash
CONNECT_CONFIG_ID=<connectConfigOCID>
CONFIG_STORAGE_TOPIC=$CONNECT_CONFIG_ID-config
OFFSET_STORAGE_TOPIC=$CONNECT_CONFIG_ID-offset
STATUS_STORAGE_TOPIC=$CONNECT_CONFIG_ID-status
docker build -t connect .
docker run -it --rm --name connect -p 8083:8083 \
-e GROUP_ID=connect-demo-group \
-e BOOTSTRAP_SERVERS=<streamPoolBootstrapServer> \
-e CONFIG_STORAGE_TOPIC=$CONFIG_STORAGE_TOPIC \
-e OFFSET_STORAGE_TOPIC=$OFFSET_STORAGE_TOPIC \
-e STATUS_STORAGE_TOPIC=$STATUS_STORAGE_TOPIC \
-v `pwd -P`/connect-distributed.properties:/kafka/config.orig/connect-distributed.properties \
connect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment