1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-22 05:42:54 +00:00

Adding MDM / FILE / Spell support during setup.sh

This commit is contained in:
Philipp Holzer
2018-12-10 21:14:01 +01:00
parent 73ad2ef079
commit a7e23ee53b
5 changed files with 88 additions and 38 deletions
+17 -35
View File
@@ -8,12 +8,18 @@ ARG DOWNLOAD_COMMUNITY_PACKAGES=1
ARG KOPANO_CORE_REPOSITORY_URL="file:/kopano/repo/core"
ARG KOPANO_REPOSITORY_FLAGS="trusted=yes"
ARG KOPANO_WEBAPP_REPOSITORY_URL="file:/kopano/repo/webapp"
ARG KOPANO_SMIME_REPOSITORY_URL="file:/kopano/repo/smime"
ARG KOPANO_WEBAPP_SMIME_REPOSITORY_URL="file:/kopano/repo/smime"
ARG KOPANO_WEBAPP_MDM_REPOSITORY_URL="file:/kopano/repo/mdm"
ARG KOPANO_WEBAPP_FILES_REPOSITORY_URL="file:/kopano/repo/files"
ARG KOPANO_CORE_VERSION=newest
ARG KOPANO_WEBAPP_VERSION=newest
ARG KOPANO_SMIME_VERSION=newest
ARG KOPANO_WEBAPP_FILES_VERSION=newest
ARG KOPANO_WEBAPP_MDM_VERSION=newest
ARG KOPANO_WEBAPP_SMIME_VERSION=newest
ARG RELEASE_KEY_DOWNLOAD=0
ENV ADDITIONAL_KOPANO_WEBAPP_PLUGINS=""
# install Kopano WebApp and refresh ca-certificates
RUN \
# community download and package as apt source repository
@@ -21,15 +27,21 @@ RUN \
if [ ${DOWNLOAD_COMMUNITY_PACKAGES} -eq 1 ]; then \
dl_and_package_community "core"; \
dl_and_package_community "webapp"; \
dl_and_package_community "files"; \
dl_and_package_community "mdm"; \
dl_and_package_community "smime"; \
fi; \
echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \
echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_WEBAPP_REPOSITORY_URL} ./" >> /etc/apt/sources.list.d/kopano.list; \
echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_SMIME_REPOSITORY_URL} ./" >> /etc/apt/sources.list.d/kopano.list; \
echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_WEBAPP_SMIME_REPOSITORY_URL} ./" >> /etc/apt/sources.list.d/kopano.list; \
echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_WEBAPP_MDM_REPOSITORY_URL} ./" >> /etc/apt/sources.list.d/kopano.list; \
echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_WEBAPP_FILES_REPOSITORY_URL} ./" >> /etc/apt/sources.list.d/kopano.list; \
# save kopano version
echo "core-${KOPANO_CORE_VERSION}" > /kopano/buildversion; \
echo "webapp-${KOPANO_WEBAPP_VERSION}" >> /kopano/buildversion; \
echo "smime-${KOPANO_SMIME_VERSION}" >> /kopano/buildversion; \
echo "files-${KOPANO_WEBAPP_FILES_VERSION}" >> /kopano/buildversion; \
echo "mdm-${KOPANO_WEBAPP_MDM_VERSION}" >> /kopano/buildversion; \
echo "smime-${KOPANO_WEBAPP_SMIME_VERSION}" >> /kopano/buildversion; \
# install apt keys if supported kopano
if [ ${RELEASE_KEY_DOWNLOAD} -eq 1 ]; then \
curl -s -S -o - "${KOPANO_CORE_REPOSITORY_URL}/Release.key" | apt-key add -; \
@@ -42,38 +54,8 @@ RUN \
crudini \
ca-certificates \
kopano-webapp \
kopano-webapp-plugin-contactfax \
kopano-webapp-plugin-desktopnotifications \
kopano-webapp-plugin-filepreviewer \
kopano-webapp-plugin-folderwidgets \
kopano-webapp-plugin-gmaps \
kopano-webapp-plugin-intranet \
kopano-webapp-plugin-mattermost \
kopano-webapp-plugin-pimfolder \
kopano-webapp-plugin-quickitems \
kopano-webapp-plugin-spell-de-at \
kopano-webapp-plugin-spell-de-at \
kopano-webapp-plugin-spell-de-ch \
kopano-webapp-plugin-spell-de-de \
kopano-webapp-plugin-spell-de-de \
kopano-webapp-plugin-spell-en-gb \
kopano-webapp-plugin-spell-en \
kopano-webapp-plugin-spell-en \
kopano-webapp-plugin-spell-es \
kopano-webapp-plugin-spell-es \
kopano-webapp-plugin-spell-fr \
kopano-webapp-plugin-spell-it \
kopano-webapp-plugin-spell-nl \
kopano-webapp-plugin-spell-nl \
kopano-webapp-plugin-spell-pl-pl \
kopano-webapp-plugin-spell \
kopano-webapp-plugin-spell \
kopano-webapp-plugin-titlecounter \
kopano-webapp-plugin-webappmanual \
kopano-webapp-plugin-zdeveloper \
kopano-webapp-plugin-smime \
${ADDITIONAL_KOPANO_PACKAGES} \
whatsapp4deskapp \
${ADDITIONAL_KOPANO_WEBAPP_PLUGINS} \
&& rm -rf /var/cache/apt /var/lib/apt/lists
COPY apache2-kopano.conf /etc/apache2/sites-available/kopano.conf