Public | Automated Build

Last pushed: 16 days ago
Dockerfile
FROM cloudunit/base-14.04 ## Externalise activemq version and dir ENV ACTIVEMQ_VERSION "5.13.2" ## java installation RUN apt-get install -y software-properties-common python-software-properties debconf-utils && \ add-apt-repository -y ppa:webupd8team/java && \ apt-get update && \ echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections && \ apt-get install -y oracle-java8-installer ## CLOUDUNIT :: BEGINNING ENV ACTIVEMQ_REMOVE_DEFAULT_ACCOUNT true ENV CU_MODULE_PORT 8161 ENV CU_DEFAULT_LOG_FILE " " ENV CU_LOGS "/var/log/activemq" # add custom scripts ADD scripts /opt/cloudunit/scripts RUN chmod +x /opt/cloudunit/scripts/* ## CLOUDUNIT :: END # Update distro and install some packages RUN apt-get update && \ apt-get upgrade -y && \ apt-get install vim curl -y && \ apt-get install supervisor -y && \ apt-get install logrotate -y && \ apt-get install locales -y && \ update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX && \ locale-gen en_US.UTF-8 && \ dpkg-reconfigure locales && \ rm -rf /var/lib/apt/lists/* # Lauch app install COPY assets/setup/ /app/setup/ RUN chmod +x /app/setup/install RUN /app/setup/install ${ACTIVEMQ_VERSION} # Copy the app setting COPY assets/init.py /app/init.py COPY assets/run.sh /app/run.sh RUN chmod +x /app/init.py RUN chmod +x /app/run.sh # Expose all port EXPOSE 8161 EXPOSE 61616 EXPOSE 5672 EXPOSE 61613 EXPOSE 1883 EXPOSE 61614 # Expose some folders VOLUME ["/data/activemq"] VOLUME ["/var/log/activemq"] VOLUME ["/opt/activemq/conf"] WORKDIR /opt/activemq #ENTRYPOINT ["/app/init"] CMD ["/app/run.sh"] LABEL origin application LABEL application-type activemq LABEL application-version $ACTIVEMQ_VERSION
Source Repository