Skip to content

Commit ef0fd49

Browse files
committed
Use variable for broker version in documentation
1 parent 213d7f5 commit ef0fd49

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/docs/asciidoc/overview.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ is also supported on the publisher side.
5656
== Stream Client Overview
5757

5858
The RabbitMQ Stream Java Client implements the
59-
https://github.com/rabbitmq/rabbitmq-server/blob/v3.10.x/deps/rabbitmq_stream/docs/PROTOCOL.adoc[RabbitMQ Stream protocol]
59+
https://github.com/rabbitmq/rabbitmq-server/blob/v{broker-version}.x/deps/rabbitmq_stream/docs/PROTOCOL.adoc[RabbitMQ Stream protocol]
6060
and avoids dealing with low-level concerns by providing high-level functionalities
6161
to build fast, efficient, and robust client applications.
6262

src/docs/asciidoc/performance-tool.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ The containers use the https://docs.docker.com/network/host/[host network],
4646
this is perfect for experimenting locally.
4747

4848
.Running the broker and performance tool with the host network driver
49+
[source,shell,subs="attributes,specialcharacters"]
4950
----
5051
# run the broker
51-
docker run -it --rm --name rabbitmq --network host rabbitmq:3.10
52+
docker run -it --rm --name rabbitmq --network host rabbitmq:{broker-version}
5253
# open another terminal and enable the stream plugin
5354
docker exec rabbitmq rabbitmq-plugins enable rabbitmq_stream
5455
# run the performance tool
@@ -69,11 +70,12 @@ the https://docs.docker.com/network/bridge/[bridge network driver], this
6970
can be done by defining a network and running the containers in this network.
7071

7172
.Running the broker and performance tool with the bridge network driver
73+
[source,shell,subs="attributes,specialcharacters"]
7274
----
7375
# create a network
7476
docker network create stream-perf-test
7577
# run the broker
76-
docker run -it --rm --network stream-perf-test --name rabbitmq rabbitmq:3.10
78+
docker run -it --rm --network stream-perf-test --name rabbitmq rabbitmq:{broker-version}
7779
# open another terminal and enable the stream plugin
7880
docker exec rabbitmq rabbitmq-plugins enable rabbitmq_stream
7981
# run the performance tool
@@ -690,4 +692,4 @@ Then run the tool:
690692

691693
----
692694
java -jar target/stream-perf-test.jar
693-
----
695+
----

0 commit comments

Comments
 (0)