#选择基础镜像
FROM centos
#维护者
MAINTAINER FANWENPENG "FANWENPENG"
#构建
RUN yum install -y epel-release \
yum makecache \
yum install -y vim mkdir \
mkdir /data/
ADD jdk-8u11-linux-x64.rpm /tmp/
RUN rpm -ivh /tmp/jdk-8u11-linux-x64.rpm
RUN cp /etc/profile /etc/profile.bak
ENV JAVA_HOME /usr/java/jdk1.8.0_11
ENV PATH $JAVA_HOME/bin:$PATH
ENV CLASSPATH .:$JAVA_HOME/lib
COPY ./apache-activemq-5.15.2-bin.tar.gz /data/
RUN cd /data/ && tar -xvf apache-activemq-5.15.2-bin.tar.gz && mv apache-activemq-5.15.2 activemq
CMD sh /data/activemq/bin/activemq start && /bin/bash
EXPOSE 61616 8161