rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject incubator-rocketmq-externals git commit: [ROCKETMQ-183] Play Script to run broker and namesrv at local in docker, closes apache/incubator-rocketmq-externals#12
Date Thu, 20 Apr 2017 03:07:13 GMT
Repository: incubator-rocketmq-externals
Updated Branches:
  refs/heads/master 689ab3834 -> 2d2a94930


[ROCKETMQ-183] Play Script to run broker and namesrv at local in docker, closes apache/incubator-rocketmq-externals#12


Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/commit/2d2a9493
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/tree/2d2a9493
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/diff/2d2a9493

Branch: refs/heads/master
Commit: 2d2a94930fa6daa9010e9907817efdd720a3daa5
Parents: 689ab38
Author: vsair <liuxuedee@gmail.com>
Authored: Thu Apr 20 11:07:03 2017 +0800
Committer: yukon <yukon@apache.org>
Committed: Thu Apr 20 11:07:03 2017 +0800

----------------------------------------------------------------------
 rocketmq-docker/4.0.0-incubating/play.cmd |  7 +++++++
 rocketmq-docker/4.0.0-incubating/play.sh  |  8 ++++++++
 rocketmq-docker/README.md                 | 18 ++++++++++++++++++
 3 files changed, 33 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/2d2a9493/rocketmq-docker/4.0.0-incubating/play.cmd
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/play.cmd b/rocketmq-docker/4.0.0-incubating/play.cmd
new file mode 100644
index 0000000..1e66769
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/play.cmd
@@ -0,0 +1,7 @@
+docker build -t apache/incubator-rocketmq-namesrv:4.0.0-incubating ./namesrv
+
+docker build -t apache/incubator-rocketmq-broker:4.0.0-incubating ./broker
+
+docker run -d -p 9876:9876 --name rmqnamesrv  apache/incubator-rocketmq-namesrv:4.0.0-incubating
+
+docker run -d -p 10911:10911 -p 10909:10909 --name rmqbroker --link rmqnamesrv:rmqnamesrv
-e "NAMESRV_ADDR=rmqnamesrv:9876" apache/incubator-rocketmq-broker:4.0.0-incubating

http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/2d2a9493/rocketmq-docker/4.0.0-incubating/play.sh
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/play.sh b/rocketmq-docker/4.0.0-incubating/play.sh
new file mode 100644
index 0000000..482ab67
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/play.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+sudo docker build -t apache/incubator-rocketmq-namesrv:4.0.0-incubating ./namesrv
+
+sudo docker build -t apache/incubator-rocketmq-broker:4.0.0-incubating ./broker
+
+sudo docker run -d -p 9876:9876 --name rmqnamesrv  apache/incubator-rocketmq-namesrv:4.0.0-incubating
+
+sudo docker run -d -p 10911:10911 -p 10909:10909 --name rmqbroker --link rmqnamesrv:rmqnamesrv
-e "NAMESRV_ADDR=rmqnamesrv:9876" apache/incubator-rocketmq-broker:4.0.0-incubating

http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/2d2a9493/rocketmq-docker/README.md
----------------------------------------------------------------------
diff --git a/rocketmq-docker/README.md b/rocketmq-docker/README.md
index 39bd601..7517e60 100644
--- a/rocketmq-docker/README.md
+++ b/rocketmq-docker/README.md
@@ -31,3 +31,21 @@ sh docker_run.sh
 ```
 .\docker_run.cmd
 ```
+
+## Play:
+
+Build broker and namesrv images, then run them at local. The name server address of broker
is automatically configured.
+
+```
+cd 4.0.0-incubating
+```
+
+### For Windows
+```
+.\play.cmd
+```
+
+### For Linux
+```
+sh play.sh
+```
\ No newline at end of file


Mime
View raw message