From f06013326f31dfc8a121fe6939ad6a9cfcb07db1 Mon Sep 17 00:00:00 2001 From: ZacharyZcR <2903735704@qq.com> Date: Sun, 22 Dec 2024 04:01:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0ActiveMQ=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TestDocker/ActiveMQ/Dockerfile | 11 ++++++++ TestDocker/ActiveMQ/README.txt | 2 ++ TestDocker/ActiveMQ/activemq.xml | 39 ++++++++++++++++++++++++++++ TestDocker/ActiveMQ/users.properties | 4 +++ 4 files changed, 56 insertions(+) create mode 100644 TestDocker/ActiveMQ/Dockerfile create mode 100644 TestDocker/ActiveMQ/README.txt create mode 100644 TestDocker/ActiveMQ/activemq.xml create mode 100644 TestDocker/ActiveMQ/users.properties diff --git a/TestDocker/ActiveMQ/Dockerfile b/TestDocker/ActiveMQ/Dockerfile new file mode 100644 index 0000000..e566fb4 --- /dev/null +++ b/TestDocker/ActiveMQ/Dockerfile @@ -0,0 +1,11 @@ +FROM rmohr/activemq:5.15.9 + +# 复制配置文件 +COPY users.properties /opt/activemq/conf/users.properties +COPY activemq.xml /opt/activemq/conf/activemq.xml + +# 暴露端口 +EXPOSE 61616 61613 + +# 设置启动命令 +CMD ["/opt/activemq/bin/activemq", "console"] \ No newline at end of file diff --git a/TestDocker/ActiveMQ/README.txt b/TestDocker/ActiveMQ/README.txt new file mode 100644 index 0000000..cf3143c --- /dev/null +++ b/TestDocker/ActiveMQ/README.txt @@ -0,0 +1,2 @@ +docker build -t activemq-weak . +docker run -d --name activemq-test -p 61616:61616 -p 8161:8161 -p 61613:61613 activemq-weak \ No newline at end of file diff --git a/TestDocker/ActiveMQ/activemq.xml b/TestDocker/ActiveMQ/activemq.xml new file mode 100644 index 0000000..c797097 --- /dev/null +++ b/TestDocker/ActiveMQ/activemq.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/TestDocker/ActiveMQ/users.properties b/TestDocker/ActiveMQ/users.properties new file mode 100644 index 0000000..3d4b836 --- /dev/null +++ b/TestDocker/ActiveMQ/users.properties @@ -0,0 +1,4 @@ +admin=123456 +test=test123 +root=root123 +system=admin123 \ No newline at end of file