@@ -16,8 +16,11 @@ check-dependencies:
16
16
@# (call check-dependency,sed)
17
17
18
18
CP_VERSION ?= 5.3.1
19
+ OPERATOR_VERSION ?= 0
20
+
19
21
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.1.6
20
22
AGGREGATE_VERSION = $(KAFKA_CONNECT_DATAGEN_VERSION ) -$(CP_VERSION )
23
+ OPERATOR_AGGREGATE_VERSION = $(AGGREGATE_VERSION ) .$(OPERATOR_VERSION )
21
24
22
25
KAFKA_CONNECT_DATAGEN_LOCAL_VERSION = $(shell make local-package-version)
23
26
AGGREGATE_LOCAL_VERSION = $(KAFKA_CONNECT_DATAGEN_LOCAL_VERSION ) -$(CP_VERSION )
@@ -41,18 +44,14 @@ publish-cp-kafka-connect-confluenthub: check-dependencies ## Build the cp-kafka-
41
44
@docker build -t cnfldemos/kafka-connect-datagen:$(AGGREGATE_VERSION ) --build-arg KAFKA_CONNECT_DATAGEN_VERSION=$(KAFKA_CONNECT_DATAGEN_VERSION ) --build-arg CP_VERSION=$(CP_VERSION ) -f Dockerfile-confluenthub .
42
45
@docker push cnfldemos/kafka-connect-datagen:$(AGGREGATE_VERSION )
43
46
44
- # ######################################################################################
45
- # Note on Operator version numbers. Operator overlays functionality on CP images,
46
- # resulting in images that look like: 5.3.1.0, giving them the option to rev
47
- # operator independently of CP. For right now, I (Rick) just added `.0`
48
- # strings to the end of the docker tags below just to move on, but if CP engineering
49
- # releases sub-versions of Operator on top of standard CP versions, we'll need to
50
- # automate this appropriately or fix up manually and publish images
51
- # ######################################################################################
47
+ # The combination of CP_VERSION & OPERATOR_VERSION will determine two things:
48
+ # 1. The version of the operator base image used in the Dockerfiles for operator (Dockerfile-operator-local & Dockerfile-operator)
49
+ # 2. The version of the docker images _this_ repository builds and pushes to cnfldemos (cp-server-connect-operator-with-datagen)
50
+
52
51
publish-cp-server-connect-operator-confluenthub : check-dependencies # # Build the cp-server-connect-operator image pulling datagen from Confluent Hub
53
- @docker build -t cnfldemos/cp-server-connect-operator-with-datagen:$(AGGREGATE_VERSION ) .0 --build-arg KAFKA_CONNECT_DATAGEN_VERSION=$(KAFKA_CONNECT_DATAGEN_VERSION ) --build-arg CP_VERSION=$(CP_VERSION ) -f Dockerfile-operator .
54
- @docker push cnfldemos/cp-server-connect-operator-with-datagen:$(AGGREGATE_VERSION ) .0
52
+ @docker build -t cnfldemos/cp-server-connect-operator-with-datagen:$(AGGREGATE_VERSION ) .0 --build-arg KAFKA_CONNECT_DATAGEN_VERSION=$(KAFKA_CONNECT_DATAGEN_VERSION ) --build-arg CP_VERSION=$(CP_VERSION ) --build-arg OPERATOR_VERSION= $( OPERATOR_VERSION ) - f Dockerfile-operator .
53
+ @docker push cnfldemos/cp-server-connect-operator-with-datagen:$(OPERATOR_AGGREGATE_VERSION )
55
54
56
55
publish-cp-server-connect-operator-local : check-dependencies # # Build the cp-server-connect-operator image installing datagen from the local build
57
- @docker build -t cnfldemos/cp-server-connect-operator-with-datagen:$(AGGREGATE_VERSION ) .0 --build-arg KAFKA_CONNECT_DATAGEN_VERSION=$(KAFKA_CONNECT_DATAGEN_VERSION ) --build-arg CP_VERSION=$(CP_VERSION ) -f Dockerfile-operator-local .
58
- @docker push cnfldemos/cp-server-connect-operator-with-datagen:$(AGGREGATE_VERSION ) .0
56
+ @docker build -t cnfldemos/cp-server-connect-operator-with-datagen:$(AGGREGATE_VERSION ) .0 --build-arg KAFKA_CONNECT_DATAGEN_VERSION=$(KAFKA_CONNECT_DATAGEN_VERSION ) --build-arg CP_VERSION=$(CP_VERSION ) --build-arg OPERATOR_VERSION= $( OPERATOR_VERSION ) - f Dockerfile-operator-local .
57
+ @docker push cnfldemos/cp-server-connect-operator-with-datagen:$(OPERATOR_AGGREGATE_VERSION )
0 commit comments