You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# In the case of Operator based images, there is an additional REV version appended to the end of the CP Version
46
+
# which allows Operator images to rev independently
47
+
48
+
build-cp-server-connect-operator-from-local: package ## Build the Docker image based on cp-server-connect from locally mvn built kafka-connect-datagen package
A Docker image based on Kafka Connect with the `kafka-connect-datagen` plugin is already available in [Dockerhub](https://hub.docker.com/r/cnfldemos/kafka-connect-datagen), and it is ready for you to use.
52
52
53
-
If you want to build a local copy of the Docker image with `kafka-connect-datagen`, this project provides a [Dockerfile](Dockerfile) that you can reference.
53
+
If you want to build a local copy of the Docker image with `kafka-connect-datagen`, this project provides a [Dockerfile](Dockerfile-local) that you can reference.
54
54
55
-
You can create a Docker image packaged with the locally built source by running:
55
+
You can create a Docker image packaged with the locally built source by running (for example with the 5.3.1 version of Confluent Platform):
56
56
```bash
57
-
make build-docker-from-local
57
+
make build-docker-from-local CP_VERSION=5.3.1
58
58
```
59
59
60
-
This will build the connector from source and create a local image with an aggregate version number. The aggregate version number is the kafka-connect-datagen connector version number and the Confluent Platform version number separated with a `-`. The local kafka-connect-datagen version number is defined in the `pom.xml` file, and the Confluent Platform version defined in the [Makefile](Makfile). An example of the aggregate version number might be: `0.1.6-5.3.1`.
60
+
This will build the connector from source and create a local image with an aggregate version number. The aggregate version number is the kafka-connect-datagen connector version number and the Confluent Platform version number separated with a `-`. The local kafka-connect-datagen version number is defined in the `pom.xml` file, and the Confluent Platform version defined in the [Makefile](Makfile). An example of the aggregate version number might be: `0.1.7-5.3.1`.
61
61
62
62
Alternatively, you can install the `kafka-connect-datagen` connector from [Confluent Hub](https://www.confluent.io/connector/kafka-connect-datagen/) into a Docker image by running:
63
63
```bash
64
-
make build-docker-from-released
64
+
make build-docker-from-released CP_VERSION=5.3.1
65
65
```
66
66
67
67
The [Makefile](Makefile) contains some default variables that affect the version numbers of both the installed `kafka-connect-datagen` as well as the base Confluent Platform version. The variables are located near the top of the [Makefile](Makefile) with the following names and current default values:
68
68
69
69
```bash
70
70
CP_VERSION ?= 5.3.1
71
-
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.1.6
71
+
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.1.7
72
72
```
73
73
These values can be overriden with variable declarations before the `make` command. For example:
74
+
74
75
```bash
75
-
KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make build-docker-from-released
76
+
make build-docker-from-released KAFKA_CONNECT_DATAGEN_VERSION=0.1.6
76
77
```
77
78
78
79
### Run connector in Docker Compose
@@ -193,13 +194,13 @@ The [Makefile](Makefile) contains some default variables that affect the version
193
194
194
195
```bash
195
196
CP_VERSION ?= 5.3.1
196
-
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.1.6
197
+
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.1.7
197
198
OPERATOR_VERSION ?= 0 # Operator is a 'rev' version appended at the end of the CP version, like so: 5.3.1.0
198
199
```
199
200
200
201
To publish the https://hub.docker.com/r/cnfldemos/kafka-connect-datagen/ image:
201
202
```bash
202
-
make publish-cp-kafka-connect-confluenthub
203
+
make push-from-released
203
204
```
204
205
205
206
and to override the CP Version of the `kafka-connect-datagen` version you can run something similar to:
@@ -209,11 +210,7 @@ CP_VERSION=5.3.0 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make publish-cp-kafka-conne
209
210
210
211
to override the CP Version and the Operator version, which may happen if Operator releases a patch version, you could run something similar to:
211
212
```bash
212
-
CP_VERSION=5.3.0 OPERATOR_VERSION=1 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make publish-cp-server-connect-operator-confluenthub
213
+
CP_VERSION=5.3.0 OPERATOR_VERSION=1 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make push-cp-server-connect-operator-from-released
213
214
```
214
-
which would result in a docker image tagged as: `cp-server-connect-operator-with-datagen:0.1.4-5.3.0.1`
215
+
which would result in a docker image tagged as: `cp-server-connect-operator-datagen:0.1.4-5.3.0.1` and pushed to DockerHub
215
216
216
-
To publish the https://hub.docker.com/r/cnfldemos/cp-server-connect-operator-with-datagen image:
217
-
```bash
218
-
make publish-cp-server-connect-operator-confluenthub
0 commit comments