/admin/docker

To get this branch, use:
bzr branch http://darksoft.org/webbzr/admin/docker

« back to all changes in this revision

Viewing changes to adei/adei/Dockerfile

  • Committer: Suren A. Chilingaryan
  • Date: 2016-12-23 19:40:10 UTC
  • Revision ID: csa@suren.me-20161223194010-1013mnipk5revl6m
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
FROM opensuse:42.1
 
2
MAINTAINER Suren A. Chilingaryan <csa@suren.me>
 
3
 
 
4
# Useful system applications
 
5
RUN zypper -n in glibc-locale mc bzr git openssh telnet curl python-pycurl
 
6
 
 
7
ENV LANG en_US.UTF-8  
 
8
ENV LANGUAGE en_US:en  
 
9
ENV LC_ALL en_US.UTF-8 
 
10
 
 
11
# Installation of ADEI & dependencies
 
12
RUN zypper ar http://download.opensuse.org/repositories/home:/csa7fff:/adei/openSUSE_Leap_42.1/home:csa7fff:adei.repo && \
 
13
    zypper ar http://download.opensuse.org/repositories/server:/php:/extensions/openSUSE_Leap_42.1/server:php:extensions.repo && \
 
14
    zypper ar http://download.opensuse.org/repositories/devel:languages:python/openSUSE_Tumbleweed/devel:languages:python.repo && \
 
15
    zypper --gpg-auto-import-keys ref -s && \
 
16
    zypper -n in supervisor procmail  alpine which w3m && \
 
17
    zypper -n in perl perl-DateTime-Format-Strptime mailx && \
 
18
    zypper -n in make java && \
 
19
    zypper -n in adei adei-config-default adei-req-mssql adei-webroot
 
20
 
 
21
VOLUME /var/log/apache2
 
22
VOLUME /var/spool/mail
 
23
 
 
24
VOLUME /adei/src
 
25
VOLUME /adei/cfg
 
26
VOLUME /adei/tmp
 
27
VOLUME /adei/sys
 
28
 
 
29
COPY supervisor/supervisord.conf /etc/supervisord.conf
 
30
 
 
31
# Apply configuration changes
 
32
COPY configs /opt/configs
 
33
COPY scripts /opt/scripts
 
34
RUN /opt/scripts/configure.sh 
 
35
 
 
36
# Replace packaged ADEI with repository version
 
37
RUN rm -rf /srv/www/htdocs/adei && \
 
38
    ln -s /adei/src /srv/www/htdocs/adei
 
39
 
 
40
ENV MYSQL_SERVER adei-mysql
 
41
ENV MYSQL_PORT 3306
 
42
ENV MYSQL_USER adei
 
43
ENV MYSQL_PASSWORD adei
 
44
ENV MYSQL_DATABASE adei
 
45
 
 
46
ENV ADEI_REVISION last:1
 
47
ENV ADEI_PARALLEL sources
 
48
ENV ADEI_SETUP all
 
49
ENV ADEI_ENABLED_SETUPS autogen logs
 
50
ENV ADEI_PORTS 80
 
51
 
 
52
ENV APACHE_SERVERS 0
 
53
 
 
54
COPY docker-entrypoint.sh /
 
55
ENTRYPOINT ["/docker-entrypoint.sh"]
 
56
 
 
57
EXPOSE 80
 
58
CMD /usr/bin/supervisord -c /etc/supervisord.conf