mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-21 21:33:02 +00:00
split up installation for core and kapi+grapi (#293)
* split up installation for core and kapi+grapi * add some debug output in case package installation fails * let konnect run as nobody * add code to check writing permissions for certificates and create certificates in container if possible * add tests to check on failed and successful certificate creation * add certificate creation logic from the konnect binfile * add env for custom dockerize timeout (to fail earlier in tests)
This commit is contained in:
+7
-4
@@ -49,16 +49,19 @@ RUN \
|
||||
# install
|
||||
apt-get update && \
|
||||
set -x && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
apt-get -o Debug::pkgProblemResolver=true install --no-install-recommends -y \
|
||||
kopano-server-packages \
|
||||
kopano-grapi kopano-kapid \
|
||||
${ADDITIONAL_KOPANO_PACKAGES} \
|
||||
&& \
|
||||
coreversion=$(dpkg-query --showformat='${Version}' --show kopano-server) && \
|
||||
if dpkg --compare-versions "$coreversion" "gt" "8.7.0"; then \
|
||||
apt-get -o Debug::pkgProblemResolver=true install --no-install-recommends -y \
|
||||
kopano-grapi kopano-kapid; \
|
||||
fi && \
|
||||
if dpkg --compare-versions "$coreversion" "gt" "8.7.84"; then \
|
||||
apt-get install --no-install-recommends -y \
|
||||
apt-get -o Debug::pkgProblemResolver=true install --no-install-recommends -y \
|
||||
python3-grapi.backend.ldap; \
|
||||
fi; \
|
||||
fi && \
|
||||
set +x && \
|
||||
rm -rf /var/cache/apt /var/lib/apt/lists && \
|
||||
touch /etc/kopano/admin.cfg && \
|
||||
|
||||
Reference in New Issue
Block a user