-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (23 loc) · 896 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM viliusl/ubuntu-sshd-nginx:latest
MAINTAINER Vilius Lukosius <[email protected]>
# make sure the package repository is up to date
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
# install java
RUN apt-get install -y openjdk-7-jre-headless unzip wget
# set-up activemq
RUN mkdir -p /opt
RUN wget http://psg.mtu.edu/pub/apache/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz
RUN tar xvzf apache-activemq-5.9.0-bin.tar.gz
RUN mv apache-activemq-5.9.0 /opt/
# update nginx
ADD nginx/index.html /var/www/index.html
# configure supervisor
ADD supervisor/activemq.conf /etc/supervisor/conf.d/activemq.conf
#clean-up
RUN apt-get clean
RUN rm apache-activemq-5.9.0-bin.tar.gz
#activemq, nginx, amq console, sshd
EXPOSE 61616 80 8161 22
CMD ["/usr/bin/supervisord", "-n"]