mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-21 05:13:22 +00:00
Subdir renaming (removed prefix)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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-monitor \
|
||||
&& 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
|
||||
|
||||
CMD [ "/kopano/start.sh" ]
|
||||
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
import kcconf
|
||||
|
||||
# Component specific configurations
|
||||
kcconf.configkopano({
|
||||
r"/etc/kopano/monitor.cfg":
|
||||
{
|
||||
'log_file': "-",
|
||||
'log_level': "4"
|
||||
}
|
||||
})
|
||||
|
||||
# Override configs from environment variables
|
||||
kcconf.configkopano(kcconf.parseenvironmentvariables(r"/etc/kopano/"))
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu # unset variables are errors & non-zero return values exit the whole script
|
||||
|
||||
mkdir -p /kopano/data/attachments /var/run/kopano
|
||||
|
||||
echo "Configure monitor" | 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-monitor -F
|
||||
Reference in New Issue
Block a user