Skip to content

Commit

Permalink
Merge pull request #43789 from gastaldi/doc_fix
Browse files Browse the repository at this point in the history
Writing a Dev Service doc fixes
  • Loading branch information
gastaldi authored Oct 10, 2024
2 parents 30880a4 + d3c69b0 commit aa93848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/extension-writing-dev-service.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ include::_attributes.adoc[]
If your extension provides APIs for connecting to an external service, it's a good idea to provide a xref:dev-services.adoc[Dev Service] implementation.

To create a Dev Service, add a new build step into the extension processor class that returns a `DevServicesResultBuildItem`.
Here, the link:https://hub.docker.com/_/hello-world`hello-world` image is used, but you should set up the right image for your service.
Here, the https://hub.docker.com/_/hello-world[`hello-world`] image is used, but you should set up the right image for your service.

[source%nowrap,java]
----
@BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class) {
@BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class)
public DevServicesResultBuildItem createContainer() {
DockerImageName dockerImageName = DockerImageName.parse("hello-world");
GenericContainer container = new GenericContainer<>(dockerImageName)
Expand Down Expand Up @@ -89,7 +89,7 @@ For example,

[source%nowrap,java]
----
@BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class) {
@BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class)
public DevServicesResultBuildItem createContainer(MyConfig config) {
----

Expand Down

0 comments on commit aa93848

Please sign in to comment.