-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extension for Apicurio Registry Avro
- Loading branch information
Showing
21 changed files
with
761 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
docs/src/main/asciidoc/apicurio-registry-dev-services.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//// | ||
This guide is maintained in the main Quarkus repository | ||
and pull requests should be submitted there: | ||
https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc | ||
//// | ||
= Dev Services for Apicurio Registry | ||
|
||
include::./attributes.adoc[] | ||
|
||
If the `quarkus-apicurio-registry-avro` extension is present, Dev Services for Apicurio Registry automatically starts an Apicurio Registry instance in dev mode and when running tests. | ||
Also, all Kafka channels in SmallRye Reactive Messaging are automatically configured to use this registry. | ||
(This automatic configuration of course only applies to serializers and deserializers from the Apicurio Registry Avro library.) | ||
|
||
== Enabling / Disabling Dev Services for Apicurio Registry | ||
|
||
Dev Services for Apicurio Registry is automatically enabled unless: | ||
|
||
- `quarkus.apicurio-registry.devservices.enabled` is set to `false` | ||
- `mp.messaging.connector.smallrye-kafka.apicurio.registry.url` is configured | ||
- all the Reactive Messaging Kafka channels have the `apicurio.registry.url` attribute set | ||
|
||
Dev Services for Apicurio Registry relies on Docker to start the registry. | ||
If your environment does not support Docker, you will need to start the registry manually, or use an already running registry. | ||
You can configure the registry URL for all Kafka channels in SmallRye Reactive Messaging with a single property: | ||
|
||
[source,properties] | ||
---- | ||
mp.messaging.connector.smallrye-kafka.apicurio.registry.url=http://localhost:8081/apis/registry/v2 | ||
---- | ||
|
||
== Setting the port | ||
|
||
By default, Dev Services for Apicurio Registry picks a random port and configure the application. | ||
You can set the port by configuring the `quarkus.apicurio-registry.devservices.port` property. | ||
|
||
Note that the Kafka channels in SmallRye Reactive messaging are automatically configured with the chosen port. | ||
|
||
== Configuring the image | ||
|
||
By default, Dev Services for Apicurio Registry uses `apicurio/apicurio-registry-mem:2.0.0.Final`. | ||
Any 2.x version of Apicurio Registry can be used by setting the `quarkus.apicurio-registry.devservices.image-name` configuration property. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.