summaryrefslogtreecommitdiffstats
path: root/adei-mini/Dockerfile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-05 07:15:42 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-05 07:15:42 +0200
commit5374bef630025b10478f0c234b4e37fc29b3be93 (patch)
tree2bb20832db5bfee52f9d2a8876975b396a164bea /adei-mini/Dockerfile
parenteb8382d4dc76d5b3dcda1290f74e71989feae83a (diff)
downloadadei-5374bef630025b10478f0c234b4e37fc29b3be93.tar.gz
adei-5374bef630025b10478f0c234b4e37fc29b3be93.tar.bz2
adei-5374bef630025b10478f0c234b4e37fc29b3be93.tar.xz
adei-5374bef630025b10478f0c234b4e37fc29b3be93.zip
Mini-version for CronJobs based on kiwi image (first try)
Diffstat (limited to 'adei-mini/Dockerfile')
-rw-r--r--adei-mini/Dockerfile44
1 files changed, 44 insertions, 0 deletions
diff --git a/adei-mini/Dockerfile b/adei-mini/Dockerfile
new file mode 100644
index 0000000..4845c18
--- /dev/null
+++ b/adei-mini/Dockerfile
@@ -0,0 +1,44 @@
+FROM chsa/microadei:latest
+MAINTAINER Suren A. Chilingaryan <csa@suren.me>
+
+VOLUME /adei
+
+ENV ADEI_REVISION=last:1 \
+ ADEI_PARALLEL=sources \
+ ADEI_SETUP=all \
+ ADEI_ENABLED_SETUPS="autogen logs" \
+ ADEI_PORTS=80 \
+ APACHE_SERVERS=0 \
+ MYSQL_SERVER=adei-mysql \
+ MYSQL_PORT=3306 \
+ MYSQL_USER=adei \
+ MYSQL_PASSWORD=adei \
+ MYSQL_DATABASE=adei \
+ LANG=en_US.UTF-8 \
+ LANGUAGE=en_US:en \
+ LC_ALL=en_US.UTF-8
+
+COPY files/ /
+
+RUN bash -c 'mkdir -p /adei/{src,cfg,tmp,sys,log,mail}' && \
+ \
+# Replace packaged ADEI with repository version
+ mkdir -p /srv/www/htdocs && \
+ ln -s /adei/src /srv/www/htdocs/adei && \
+ for name in $(find /srv -mindepth 1 -maxdepth 1 -name '*.sh'); do rm "$name"; ln -s "/adei/src/scripts/cron/$(basename $name)" "$name"; done && \
+ rm -f /etc/cron.d/adei.cron && \
+ ln -s /adei/src/scripts/cron/adei.cron /etc/cron.d/adei.cron && \
+ \
+# Consolidate all volumes in /adei
+ rm -rf /var/spool/mail && \
+ ln -s /adei/log /var/spool/mail && \
+ \
+# Modify for non-priviledged mode
+ chmod +rx /etc/php5/conf.d && \
+ \
+# Ugly python needs to resolve user name
+ chmod g=u /etc/passwd
+
+
+ENTRYPOINT ["/docker-entrypoint.sh"]
+CMD /bin/bash