forked from sandialabs/scot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (35 loc) · 1.33 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM sandialabs/scotbase
MAINTAINER Josh Maine, [email protected]
USER root
# Prevent daemon start during install
RUN echo '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d && \
chmod +x /usr/sbin/policy-rc.d
# Set proxy settings (if your environment requires it)
#ENV http_proxy http://PROXY_SERVER_HERE:80
#ENV https_proxy http://PROXY_SERVER_HERE:80
RUN \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' >> /etc/apt/sources.list && \
apt-get -q update && \
apt-get install -y mongodb-org supervisor redis-server && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir -p /var/log/supervisor
# Add SCOT Files
COPY . /scot
RUN chmod 755 /scot/ubuntu_installer.sh
COPY deploy/docker-entrypoint.sh /
COPY deploy/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENV DOCKERINSTALL True
# Run SCOT Installer
RUN cd /scot && /scot/ubuntu_installer.sh && rm -rf /scot
COPY deploy/tests.sh /tests.sh
COPY deploy/scotamq.xml /opt/sandia/webapps/activemq/conf/scotamq.xml
RUN chown activemq /opt/sandia/webapps/activemq/conf/scotamq.xml \
&& chmod 755 /tests.sh
# ENTRYPOINT ["/docker-entrypoint.sh"]
VOLUME ["/opt/sandia/webapps/scot3/public"]
EXPOSE 443
EXPOSE 80
# USER nonroot
CMD ["/usr/bin/supervisord"]