Skip to content

Commit 56ff74b

Browse files
committed
dockerfile improvements, run.sh simplification
1 parent 825d8fc commit 56ff74b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ WORKDIR /kafka-connect-source-github
44
COPY config config
55
COPY 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

run.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ export CLASSPATH="$(find target/ -type f -name '*.jar'| grep '\-package' | tr '\
33
if 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
109
elif hash connect-standalone 2>/dev/null; then

0 commit comments

Comments
 (0)