File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1- standalone.offsets
21target /
32.idea /
43* .log
Original file line number Diff line number Diff line change 1+ FROM confluentinc/cp-kafka-connect:3.2.0
2+
3+ WORKDIR /kafka-connect-source-github
4+ COPY config config
5+ COPY target target
6+
7+ CMD connect-standalone config/worker.properties config/GitHubSourceConnectorExample.properties
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ internal.value.converter.schemas.enable=true
1313rest.port =8086
1414rest.host.name =127.0.0.1
1515# this config is only for standalone workers
16- offset.storage.file.filename =standalone.offsets
16+ offset.storage.file.filename =offsets/ standalone.offsets
1717offset.flush.interval.ms =10000
Original file line number Diff line number Diff line change 1+ standalone.offsets
Original file line number Diff line number Diff line change 22export CLASSPATH=" $( find target/ -type f -name ' *.jar' | grep ' \-package' | tr ' \n' ' :' ) "
33if hash docker 2> /dev/null; then
44 # for docker lovers
5+ docker build . -t simplesteph/kafka-connect-source-github:1.0
56 docker run -e CLASSPATH=$CLASSPATH \
6- --net=host --rm \
7- -v $( pwd) :/kafka-connect-github-source \
8- -w /kafka-connect-github-source \
9- confluentinc/cp-kafka-connect:3.2.0 \
10- connect-standalone config/worker.properties config/GitHubSourceConnectorExample.properties
7+ --net=host --rm -t \
8+ -v $( pwd) /offsets:/kafka-connect-source-github/offsets \
9+ simplesteph/kafka-connect-source-github:1.0
1110elif hash connect-standalone 2> /dev/null; then
1211 # for mac users who used homebrew
1312 connect-standalone config/worker.properties config/GitHubSourceConnectorExample.properties
You can’t perform that action at this time.
0 commit comments