hpgrahsl / kafka-connect-mongodb

**Unofficial / Community** Kafka Connect MongoDB Sink Connector -> integrated 2019 into the official MongoDB Kafka Connector here: https://www.mongodb.com/kafka-connector
Apache License 2.0
153 stars 60 forks source link

Docker image for kafka-connect-mongodb #100

Closed mostafaghadimi closed 5 years ago

mostafaghadimi commented 5 years ago

Is there any image on docker hub? I have search but I didn't find any image over the internet.

hpgrahsl commented 5 years ago

hi @mostafaghadimi! short answer -> no.

somewhat longer answer: it's not really common to provide docker images with single/separate custom connectors pre-installed. instead you typically use docker images for kafka-connect (e.g. like the ones provided by confluent https://hub.docker.com/u/confluentinc/ ) and mount a pre-built connector into the respective installation folder of the container via volumes. since you most likely need several other components as well (zookeeper, kafka, ...) it's better to use at least docker-compose to setup the whole stack. find an example which was used for one of my recent blog post here https://github.com/hpgrahsl/mongodb-kafka-connect-environment/blob/master/docker-compose.yml#L30-L54

thx again for reaching out!

mostafaghadimi commented 5 years ago

Hi @hpgrahsl, I have tried https://github.com/mongodb/mongo-kafka and I saw your name as the main contributor. Whenever I have run the docker-compose file of the official site I face with the following error:

Step 3/3 : RUN  confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:latest
 ---> Running in 8f5be4b90eff
Running in a "--no-prompt" mode 
java.net.UnknownHostException: api.hub.confluent.io 

Error: Unknown error 
ERROR: Service 'connect' failed to build: The command '/bin/sh -c confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:latest' returned a non-zero code: 7

I have nothing to do and don't know how to fix this problem. Can you help me. please?

Thanks