File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,7 @@ WORKDIR /kafka-connect-source-github
44COPY config config
55COPY target target
66
7- CMD connect-standalone config/worker.properties config/GitHubSourceConnectorExample.properties
7+ VOLUME /kafka-connect-source-github/config
8+ VOLUME /kafka-connect-source-github/offsets
9+
10+ CMD CLASSPATH="$(find target/ -type f -name '*.jar'| grep '\- package' | tr '\n ' ':')" connect-standalone config/worker.properties config/GitHubSourceConnectorExample.properties
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ export CLASSPATH="$(find target/ -type f -name '*.jar'| grep '\-package' | tr '\
33if hash docker 2> /dev/null; then
44 # for docker lovers
55 docker build . -t simplesteph/kafka-connect-source-github:1.0
6- docker run -e CLASSPATH=$CLASSPATH \
7- --net=host --rm -t \
6+ docker run --net=host --rm -t \
87 -v $( pwd) /offsets:/kafka-connect-source-github/offsets \
98 simplesteph/kafka-connect-source-github:1.0
109elif hash connect-standalone 2> /dev/null; then
You can’t perform that action at this time.
0 commit comments