1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-21 13:23:09 +00:00

Subdir renaming (removed prefix)

This commit is contained in:
Andre Zoledziowski
2018-04-16 12:18:10 +02:00
parent 1d7cc13d91
commit 638c299c35
32 changed files with 0 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
ARG BASE_VERSION=latest
FROM zokradonh/kopano_base:${BASE_VERSION}
LABEL maintainer=az@zok.xyz \
version="1.0"
# install kopano
RUN apt-get update && apt-get install -y --no-install-recommends \
kopano-dagent python3-mapi \
&& rm -rf /var/cache/apt /var/lib/apt/lists
ADD configure.py /kopano/configure.py
ADD start.sh /kopano/start.sh
RUN chmod a+x /kopano/start.sh
EXPOSE 2003/tcp
CMD [ "/kopano/start.sh" ]
+15
View File
@@ -0,0 +1,15 @@
import os
import kcconf
# Component specific configurations
kcconf.configkopano({
r"/etc/kopano/dagent.cfg":
{
'log_file': "-",
'log_level': "4",
'tmp_path': "/tmp/dagent/"
}
})
# Override configs from environment variables
kcconf.configkopano(kcconf.parseenvironmentvariables(r"/etc/kopano/"))
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
set -eu # unset variables are errors & non-zero return values exit the whole script
mkdir -p /tmp/dagent /var/run/kopano
echo "Configure dagent" | ts
/usr/bin/python3 /kopano/configure.py
echo "Set config ownership" | ts
chown -R kopano:kopano /kopano/data /run /tmp
echo "Clean old pid files and sockets" | ts
rm -f /var/run/kopano/*
exec /usr/sbin/kopano-dagent -l