beiqiao/rocketmq

By beiqiao

Updated almost 2 years ago

Apache/rocketmq arm64v8 compiled version

Image
Message queues
0

542

beiqiao/rocketmq repository overview

apache/rocketmq保持同步,基于官方镜像使用arm64v8构建

1. 拉取RocketMQ镜像

这里以dockerhub上 RocketMQ 5.2.0 版本的镜像为例,介绍部署过程。

docker pull beiqiao/rocketmq:5.2.0
2.创建容器共享网络

RocketMQ 中有多个服务,需要创建多个容器,创建 docker 网络便于容器间相互通信。

docker network create rocketmq
3.启动NameServer
# 启动 NameServer
docker run -d --name rmqnamesrv5.2.0 -p 9876:9876 --network rocketmq beiqiao/rocketmq:5.2.0 sh mqnamesrv

# 验证 NameServer 是否启动成功
docker logs -f rmqnamesrv5.2.0

:::info 我们可以看到 'The Name Server boot success..', 表示NameServer 已成功启动。 :::

4.启动 Broker+Proxy

NameServer 成功启动后,我们启动 Broker 和 Proxy。

# 启动 Broker 和 Proxy
docker run -d \
--name rmqbroker5.2.0 \
--network rocketmq \
-p 10912:10912 -p 10911:10911 -p 10909:10909 \
-p 8080:8080 -p 8081:8081 \
-e "NAMESRV_ADDR=rmqnamesrv5.2.0:9876" \
beiqiao/rocketmq:5.2.0 sh mqbroker --enable-proxy 

# 验证 Broker 是否启动成功
docker exec -it rmqbroker bash -c "tail -n 10 /home/rocketmq/logs/rocketmqlogs/proxy.log"

Stay in sync with apache/rocketmq, building based on the official image using the arm64v8 architecture.

1. Pull the RocketMQ Image

Here, we use the RocketMQ version 5.2.0 image from Docker Hub as an example to introduce the deployment process.

docker pull beiqiao/rocketmq:5.2.0
2.Create a Shared Network for Containers

RocketMQ has multiple services that require the creation of multiple containers. Creating a Docker network facilitates communication between these containers.

docker network create rocketmq
3.Start the NameServer
# Start the NameServer
docker run -d --name rmqnamesrv5.2.0 -p 9876:9876 --network rocketmq beiqiao/rocketmq:5.2.0 sh mqnamesrv

# Verify if the NameServer started successfully
docker logs -f rmqnamesrv5.2.0

:::info You should see 'The Name Server boot success..', indicating that the NameServer has started successfully. :::

4.Start the Broker and Proxy

After the NameServer starts successfully, we start the Broker and Proxy.

# Start the Broker and Proxy
docker run -d \
--name rmqbroker5.2.0 \
--network rocketmq \
-p 10912:10912 -p 10911:10911 -p 10909:10909 \
-p 8080:8080 -p 8081:8081 \
-e "NAMESRV_ADDR=rmqnamesrv5.2.0:9876" \
beiqiao/rocketmq:5.2.0 sh mqbroker --enable-proxy 

# Verify if the Broker started successfully
docker exec -it rmqbroker bash -c "tail -n 10 /home/rocketmq/logs/rocketmqlogs/proxy.log"

Tag summary

Content type

Image

Digest

sha256:e90bb2df3

Size

696.5 MB

Last updated

almost 2 years ago

docker pull beiqiao/rocketmq:5.3.1