forked from pwmarcz/zeus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (29 loc) · 1.17 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
FROM debian:jessie
MAINTAINER Kostas Papadimitriou "[email protected]"
RUN find /var/lib/apt -type f -exec rm {} \+
RUN apt-get -y update
RUN apt-get -y install vim git lsb-release wget multitail
RUN wget https://apt.puppetlabs.com/puppetlabs-release-pc1-jessie.deb
RUN apt-get -y install puppet puppet-module-puppetlabs-apt puppet-module-puppetlabs-stdlib
RUN puppet module install puppetlabs-apache --version 1.11.0
RUN puppet module install puppetlabs-postgresql --version 4.9.0
RUN puppet module install "stankevich/python" --version 1.18.2
ADD deploy/packages.pp /srv/deploy/packages.pp
RUN cd /srv/deploy && puppet apply -v packages.pp
ADD deploy/hiera.yaml /etc/puppet/hiera.yaml
RUN mkdir /srv/zeus_app
ADD . /srv/zeus_app
ADD deploy/config.yaml /etc/puppet/hieraconf/common.yaml
COPY deploy/grnet-zeus /etc/puppet/modules/zeus
ADD deploy/zeus.pp /srv/deploy/zeus.pp
RUN cd /srv/deploy && puppet apply -v zeus.pp
RUN service gunicorn stop
RUN service postgresql stop
RUN service apache2 stop
RUN /etc/init.d/python-celery stop
ADD deploy/boot.sh /srv/deploy/boot.sh
RUN chmod +x /srv/deploy/boot.sh
VOLUME /srv/data
VOLUME /srv/static
EXPOSE 80
CMD ["/bin/bash", "/srv/deploy/boot.sh"]