summaryrefslogtreecommitdiffstats
path: root/adei/Dockerfile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-20 16:16:15 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-20 16:16:15 +0100
commit3d19ce5671e45b8e06a91cb09065d81e22f9d6fd (patch)
treee6221f12bdc4c48f5dc919874265633e3709559c /adei/Dockerfile
downloadadei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.tar.gz
adei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.tar.bz2
adei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.tar.xz
adei-3d19ce5671e45b8e06a91cb09065d81e22f9d6fd.zip
Initial import
Diffstat (limited to 'adei/Dockerfile')
-rw-r--r--adei/Dockerfile58
1 files changed, 58 insertions, 0 deletions
diff --git a/adei/Dockerfile b/adei/Dockerfile
new file mode 100644
index 0000000..94f5016
--- /dev/null
+++ b/adei/Dockerfile
@@ -0,0 +1,58 @@
+FROM opensuse:42.1
+MAINTAINER Suren A. Chilingaryan <csa@suren.me>
+
+# Useful system applications
+RUN zypper -n in glibc-locale mc bzr git openssh telnet curl python-pycurl
+
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
+# Installation of ADEI & dependencies
+RUN zypper ar http://download.opensuse.org/repositories/home:/csa7fff:/adei/openSUSE_Leap_42.1/home:csa7fff:adei.repo && \
+ zypper ar http://download.opensuse.org/repositories/server:/php:/extensions/openSUSE_Leap_42.1/server:php:extensions.repo && \
+ zypper ar http://download.opensuse.org/repositories/devel:languages:python/openSUSE_Tumbleweed/devel:languages:python.repo && \
+ zypper --gpg-auto-import-keys ref -s && \
+ zypper -n in supervisor procmail alpine which w3m && \
+ zypper -n in perl perl-DateTime-Format-Strptime mailx && \
+ zypper -n in make java && \
+ zypper -n in adei adei-config-default adei-req-mssql adei-webroot
+
+VOLUME /var/log/apache2
+VOLUME /var/spool/mail
+
+VOLUME /adei/src
+VOLUME /adei/cfg
+VOLUME /adei/tmp
+VOLUME /adei/sys
+
+COPY supervisor/supervisord.conf /etc/supervisord.conf
+
+# Apply configuration changes
+COPY configs /opt/configs
+COPY scripts /opt/scripts
+RUN /opt/scripts/configure.sh
+
+# Replace packaged ADEI with repository version
+RUN rm -rf /srv/www/htdocs/adei && \
+ ln -s /adei/src /srv/www/htdocs/adei
+
+ENV MYSQL_SERVER adei-mysql
+ENV MYSQL_PORT 3306
+ENV MYSQL_USER adei
+ENV MYSQL_PASSWORD adei
+ENV MYSQL_DATABASE adei
+
+ENV ADEI_REVISION last:1
+ENV ADEI_PARALLEL sources
+ENV ADEI_SETUP all
+ENV ADEI_ENABLED_SETUPS autogen logs
+ENV ADEI_PORTS 80
+
+ENV APACHE_SERVERS 0
+
+COPY docker-entrypoint.sh /
+ENTRYPOINT ["/docker-entrypoint.sh"]
+
+EXPOSE 80
+CMD /usr/bin/supervisord -c /etc/supervisord.conf