Skip to content

Commit

Permalink
DBZ-5720 [Cloudevents] Switch to apicurio registry
Browse files Browse the repository at this point in the history
  • Loading branch information
vjuranek committed Oct 18, 2022
1 parent 3c8ddde commit 8fcdce3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 26 deletions.
4 changes: 2 additions & 2 deletions cloudevents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Examine its contents like so:
docker run --rm --tty \
--network cloudevents-network \
quay.io/debezium/tooling:1.2 \
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8081 \
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8080 \
-t customers2 | jq .
```

Expand All @@ -65,7 +65,7 @@ curl -i -X PUT -H "Accept:application/json" -H "Content-Type:application/json"
docker run --rm --tty \
--network cloudevents-network \
quay.io/debezium/tooling:1.2 \
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8081 \
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8080 \
-t dbserver3.inventory.customers | jq .
```

Expand Down
25 changes: 3 additions & 22 deletions cloudevents/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,13 @@ services:
- STATUS_STORAGE_TOPIC=my_connect_statuses
- KAFKA_DEBUG=true
- DEBUG_SUSPEND_FLAG=n
- ENABLE_APICURIO_CONVERTERS=true
networks:
- my-network
schema-registry:
image: confluentinc/cp-schema-registry:7.0.1
image: apicurio/apicurio-registry-mem:2.2.5.Final
ports:
- 8181:8181
- 8081:8081
environment:
- SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=kafka:9092
- SCHEMA_REGISTRY_HOST_NAME=schema-registry
- SCHEMA_REGISTRY_LISTENERS=http://schema-registry:8081
- SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS=GET,POST,PUT,OPTIONS
- SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN=*
links:
- zookeeper
networks:
- my-network
schema-registry-ui:
image: landoop/schema-registry-ui
ports:
- 8000:8000
environment:
- SCHEMAREGISTRY_URL=http://schema-registry:8081
- PROXY=true
links:
- schema-registry
- 8080:8080
networks:
- my-network
avro-extractor:
Expand Down
4 changes: 3 additions & 1 deletion cloudevents/register-postgres-avro-avro.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
"value.converter": "io.debezium.converters.CloudEventsConverter",
"value.converter.serializer.type" : "avro",
"value.converter.data.serializer.type" : "avro",
"value.converter.avro.schema.registry.url": "http://schema-registry:8081"
"value.converter.avro.apicurio.registry.url": "http://schema-registry:8080/apis/registry/v2",
"value.converter.avro.apicurio.registry.auto-register": "true",
"value.converter.avro.apicurio.registry.find-latest": "true"
}
4 changes: 3 additions & 1 deletion cloudevents/register-postgres-json-avro.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@
"key.converter.schemas.enable": "false",
"value.converter": "io.debezium.converters.CloudEventsConverter",
"value.converter.data.serializer.type" : "avro",
"value.converter.avro.schema.registry.url": "http://schema-registry:8081"
"value.converter.avro.apicurio.registry.url": "http://schema-registry:8080/apis/registry/v2",
"value.converter.avro.apicurio.registry.auto-register": "true",
"value.converter.avro.apicurio.registry.find-latest": "true"
}

0 comments on commit 8fcdce3

Please sign in to comment.