You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by do...@apache.org on 2017/03/30 11:20:40 UTC
incubator-rocketmq-externals git commit: Add drafted docker file
Repository: incubator-rocketmq-externals
Updated Branches:
refs/heads/master e59b81221 -> 330607d1c
Add drafted docker file
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/330607d1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/tree/330607d1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/diff/330607d1
Branch: refs/heads/master
Commit: 330607d1c0e74d5ada8b5097d87cc74755916264
Parents: e59b812
Author: dongeforever <do...@apache.org>
Authored: Thu Mar 30 19:20:30 2017 +0800
Committer: dongeforever <do...@apache.org>
Committed: Thu Mar 30 19:20:30 2017 +0800
----------------------------------------------------------------------
.../4.0.0-incubating/broker/.Dockerfile.swp | Bin 0 -> 12288 bytes
.../4.0.0-incubating/broker/Dockerfile | 50 +++++++++++++++++++
.../4.0.0-incubating/broker/docker_build.sh | 3 ++
.../4.0.0-incubating/broker/docker_run.sh | 2 +
.../4.0.0-incubating/namesrv/Dockerfile | 48 ++++++++++++++++++
.../4.0.0-incubating/namesrv/docker_build.sh | 3 ++
.../4.0.0-incubating/namesrv/docker_run.sh | 2 +
7 files changed, 108 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/330607d1/rocketmq-docker/4.0.0-incubating/broker/.Dockerfile.swp
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/broker/.Dockerfile.swp b/rocketmq-docker/4.0.0-incubating/broker/.Dockerfile.swp
new file mode 100644
index 0000000..ac35620
Binary files /dev/null and b/rocketmq-docker/4.0.0-incubating/broker/.Dockerfile.swp differ
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/330607d1/rocketmq-docker/4.0.0-incubating/broker/Dockerfile
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/broker/Dockerfile b/rocketmq-docker/4.0.0-incubating/broker/Dockerfile
new file mode 100644
index 0000000..9694e5b
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/broker/Dockerfile
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Start from a Java image.
+FROM java:8
+
+# Rocketmq version
+ENV ROCKETMQ_VERSION 4.0.0-incubating
+
+# Rocketmq home
+ENV ROCKETMQ_HOME /opt/rocketmq-${ROCKETMQ_VERSION}
+
+
+
+WORKDIR ${ROCKETMQ_HOME}
+
+RUN mkdir -p \
+ /opt/logs \
+ /opt/store
+
+RUN curl https://dist.apache.org/repos/dist/release/incubator/rocketmq/${ROCKETMQ_VERSION}/rocketmq-all-${ROCKETMQ_VERSION}-bin-release.zip -o rocketmq.zip \
+ && unzip rocketmq.zip \
+ && mv apache-rocketmq-all/* . \
+ && rmdir apache-rocketmq-all \
+ && rm rocketmq.zip
+
+
+RUN chmod +x bin/mqbroker
+
+CMD cd ${ROCKETMQ_HOME}/bin && export JAVA_OPT=" -Duser.home=/opt" && sh mqbroker
+
+
+EXPOSE 10909 10911
+VOLUME /opt/logs \
+ /opt/store
+
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/330607d1/rocketmq-docker/4.0.0-incubating/broker/docker_build.sh
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/broker/docker_build.sh b/rocketmq-docker/4.0.0-incubating/broker/docker_build.sh
new file mode 100644
index 0000000..e6768ab
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/broker/docker_build.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+sudo docker build -t apache/incubator-rocketmq-broker:4.0.0-incubating .
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/330607d1/rocketmq-docker/4.0.0-incubating/broker/docker_run.sh
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/broker/docker_run.sh b/rocketmq-docker/4.0.0-incubating/broker/docker_run.sh
new file mode 100644
index 0000000..55547cb
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/broker/docker_run.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+sudo docker run -d -p 10911:10911 -p 10909:10909 --name rmqbroker apache/incubator-rocketmq-broker:4.0.0-incubating
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/330607d1/rocketmq-docker/4.0.0-incubating/namesrv/Dockerfile
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/namesrv/Dockerfile b/rocketmq-docker/4.0.0-incubating/namesrv/Dockerfile
new file mode 100644
index 0000000..e29ecef
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/namesrv/Dockerfile
@@ -0,0 +1,48 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Start from a Java image.
+FROM java:8
+
+# Rocketmq version
+ENV ROCKETMQ_VERSION 4.0.0-incubating
+
+# Rocketmq home
+ENV ROCKETMQ_HOME /opt/rocketmq-${ROCKETMQ_VERSION}
+
+WORKDIR ${ROCKETMQ_HOME}
+
+RUN mkdir -p \
+ /opt/logs \
+ /opt/store
+
+RUN curl https://dist.apache.org/repos/dist/release/incubator/rocketmq/${ROCKETMQ_VERSION}/rocketmq-all-${ROCKETMQ_VERSION}-bin-release.zip -o rocketmq.zip \
+ && unzip rocketmq.zip \
+ && mv apache-rocketmq-all/* . \
+ && rmdir apache-rocketmq-all \
+ && rm rocketmq.zip
+
+
+RUN chmod +x bin/mqnamesrv
+
+CMD cd ${ROCKETMQ_HOME}/bin && export JAVA_OPT=" -Duser.home=/opt" && sh mqnamesrv
+
+
+EXPOSE 9876
+VOLUME /opt/logs \
+ /opt/store
+
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/330607d1/rocketmq-docker/4.0.0-incubating/namesrv/docker_build.sh
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/namesrv/docker_build.sh b/rocketmq-docker/4.0.0-incubating/namesrv/docker_build.sh
new file mode 100644
index 0000000..d57612c
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/namesrv/docker_build.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+sudo docker build -t apache/incubator-rocketmq-namesrv:4.0.0-incubating .
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/330607d1/rocketmq-docker/4.0.0-incubating/namesrv/docker_run.sh
----------------------------------------------------------------------
diff --git a/rocketmq-docker/4.0.0-incubating/namesrv/docker_run.sh b/rocketmq-docker/4.0.0-incubating/namesrv/docker_run.sh
new file mode 100644
index 0000000..2b835c3
--- /dev/null
+++ b/rocketmq-docker/4.0.0-incubating/namesrv/docker_run.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+sudo docker run -d -p 9876:9876 --name rmqnamesrv apache/incubator-rocketmq-namesrv:4.0.0-incubating