Add ActiveMQ to the Docker Image 91/10091/1
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 2 Sep 2017 15:54:02 +0000 (23:54 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 2 Sep 2017 15:54:02 +0000 (23:54 +0800)
Add ActiveMQ related configurations

Change-Id: I01363eb2dcbd29f095c88dd2f6f100aa33b0d1cf
Issue-ID: HOLMES-43
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
engine-d-standalone/src/main/assembly/Dockerfile

index 3401c9f..d7b7da7 100644 (file)
@@ -26,17 +26,22 @@ RUN set -x \
         openjdk8="$JAVA_ALPINE_VERSION" \
     && [ "$JAVA_HOME" = "$(docker-java-home)" ]
 
-#add holmes related resources to the docker image
 
-RUN mkdir /home/holmes
+#add activemq to the docker image
+RUN mkdir /home/downloads
+RUN mkdir /home/activemq
+RUN cd /home/downloads
+RUN apt-get update
+RUN apt-get install -y wget
+RUN wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz
+RUN tar -xzvf apache-activemq-5.9.0-bin.tar.gz -C /home/activemq/
+RUN rm -rf /home/downloads
 
+#add holmes related resources to the docker image
+RUN mkdir /home/holmes
 WORKDIR /home/holmes
-
 ADD holmes-engine-d-standalone-*-linux64.tar.gz /home/holmes/
 
 RUN chmod 755 /home/holmes/bin/*.sh
 
-
 ENTRYPOINT /home/holmes/bin/run.sh
-
-