Fixed the start-up failure of the engine module
[holmes/engine-management.git] / engine-d-standalone / src / main / assembly / Dockerfile
index 8c4615f..082cec0 100644 (file)
@@ -16,6 +16,8 @@ ENV PATH $PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:/usr/lib/jvm/java-8-ope
 ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
 ENV JRE_HOME ${JAVA_HOME}/jre
 
+ENV HOSTNAME holmes-engine-mgmt
+
 #install ActiveMQ
 RUN mkdir /home/downloads
 RUN mkdir /home/activemq
@@ -24,6 +26,9 @@ RUN wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-ac
 RUN tar -xzvf apache-activemq-5.9.0-bin.tar.gz -C /home/activemq/
 RUN rm -rf /home/downloads
 
+#install the postgres client
+RUN apt-get install -y postgresql-client-9.5 postgresql-contrib-9.5
+
 #add holmes related resources to the docker image
 RUN mkdir /home/holmes
 WORKDIR /home/holmes