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.
65
65
66
-
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.
66
+
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.
67
67
68
-
You can create a Docker image packaged with the locally built source by running:
68
+
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):
69
69
```bash
70
-
make build-docker-from-local
70
+
make build-docker-from-local CP_VERSION=5.3.1
71
71
```
72
72
73
-
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`.
73
+
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`.
74
74
75
75
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:
76
76
```bash
77
-
make build-docker-from-released
77
+
make build-docker-from-released CP_VERSION=5.3.1
78
78
```
79
79
80
80
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:
81
81
82
82
```bash
83
83
CP_VERSION ?= 5.3.1
84
+
84
85
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.2.0
85
86
```
86
87
These values can be overriden with variable declarations before the `make` command. For example:
88
+
87
89
```bash
88
90
KAFKA_CONNECT_DATAGEN_VERSION=0.2.0 make build-docker-from-released
89
91
```
@@ -220,13 +222,13 @@ The [Makefile](Makefile) contains some default variables that affect the version
220
222
221
223
```bash
222
224
CP_VERSION ?= 5.3.1
223
-
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.1.6
225
+
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.1.7
224
226
OPERATOR_VERSION ?= 0 # Operator is a 'rev' version appended at the end of the CP version, like so: 5.3.1.0
225
227
```
226
228
227
229
To publish the https://hub.docker.com/r/cnfldemos/kafka-connect-datagen/ image:
228
230
```bash
229
-
make publish-cp-kafka-connect-confluenthub
231
+
make push-from-released
230
232
```
231
233
232
234
and to override the CP Version of the `kafka-connect-datagen` version you can run something similar to:
@@ -236,11 +238,7 @@ CP_VERSION=5.3.0 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make publish-cp-kafka-conne
236
238
237
239
to override the CP Version and the Operator version, which may happen if Operator releases a patch version, you could run something similar to:
238
240
```bash
239
-
CP_VERSION=5.3.0 OPERATOR_VERSION=1 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make publish-cp-server-connect-operator-confluenthub
241
+
CP_VERSION=5.3.0 OPERATOR_VERSION=1 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make push-cp-server-connect-operator-from-released
240
242
```
241
-
which would result in a docker image tagged as: `cp-server-connect-operator-with-datagen:0.1.4-5.3.0.1`
243
+
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
242
244
243
-
To publish the https://hub.docker.com/r/cnfldemos/cp-server-connect-operator-with-datagen image:
244
-
```bash
245
-
make publish-cp-server-connect-operator-confluenthub
0 commit comments