[KAFKA-54] docker and run.sh Created: 18/Aug/19  Updated: 27/Oct/23  Resolved: 19/Aug/19

Status: Closed
Project: Kafka Connector
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mostafa Ghadimi Assignee: Ross Lawley
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 18.04.2, Docker 18.09


Issue Links:
Duplicate
duplicates KAFKA-53 run.sh Closed

 Description   

I'm trying to run the project of mongodb-kafka connector from the [mongodb official repository](). I have some troubles in executing the [`./run.sh`](https://github.com/mongodb/mongo-kafka/blob/master/docker/run.sh) that isn't documented properly in the repository.

I have opened the terminal in the following directory:

```
.
├── Dockerfile
├── kafka-mongo.yml
└── run.sh
```

After executing `./run.sh`, I have faced with the following error in case that I have `gradle` installed!

```
Building the MongoDB Kafka Connector
./run.sh: line 14: ./gradlew: No such file or directory
```



 Comments   
Comment by Ross Lawley [ 19/Aug/19 ]

Good to hear thats fixed it! Based on your feedback I've updated the readme to help clarify the requirements.

Ross

Comment by Githook User [ 19/Aug/19 ]

Author:

{'username': 'rozza', 'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley'}

Message: Docker: docs update / clarification

KAFKA-54
Branch: master
https://github.com/mongodb/mongo-kafka/commit/0938ebebae0ed368605a99235418951bb80b853b

Comment by Mostafa Ghadimi [ 19/Aug/19 ]

Hi Ross,

 

Finally it works correctly.

 

Thanks

Comment by Ross Lawley [ 19/Aug/19 ]

Hi mostafa.ghadimi76@gmail.com,

Thanks for the ticket. The previous line should change the working directory to the main directory which should contain gradlew. Are you running the run.sh from within the docker directory? Do you have the whole project checked out / downloaded from github?

Ross

Generated at Thu Feb 08 09:05:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.