diff --git a/Makefile b/Makefile index 3eaa6de..f95120e 100644 --- a/Makefile +++ b/Makefile @@ -144,8 +144,8 @@ build-playground: component=playground make build-builder component=playground make build-simple -#build-python: -# component=python make build +build-python: + component=python make build build-kdav: docker pull composer:1.9 diff --git a/base/Dockerfile b/base/Dockerfile index 01108cd..076339c 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -77,3 +77,11 @@ COPY create-kopano-repo.sh /kopano/helper/ COPY kcconf.py /kopano/ SHELL [ "/bin/bash", "-c"] + +ONBUILD ARG DOWNLOAD_COMMUNITY_PACKAGES=1 +ONBUILD RUN \ + # community download and package as apt source repository + . /kopano/helper/create-kopano-repo.sh && \ + if [ ${DOWNLOAD_COMMUNITY_PACKAGES} -eq 1 ]; then \ + dl_and_package_community "core" "Debian_10"; \ + fi; diff --git a/core/Dockerfile b/core/Dockerfile index 473600b..9c4ba6c 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -39,11 +39,6 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # install Kopano Core and refresh ca-certificates RUN \ - # community download and package as apt source repository - . /kopano/helper/create-kopano-repo.sh && \ - if [ ${DOWNLOAD_COMMUNITY_PACKAGES} -eq 1 ]; then \ - dl_and_package_community "core" "$DOWNLOAD_DISTRIBUTION" "$DOWNLOAD_CHANNEL" "$DOWNLOAD_BRANCH"; \ - fi; \ # apt key has already been installed in base echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \ # install diff --git a/kdav/Dockerfile b/kdav/Dockerfile index ef8be53..b3f3e0b 100644 --- a/kdav/Dockerfile +++ b/kdav/Dockerfile @@ -32,17 +32,10 @@ LABEL maintainer=az@zok.xyz \ org.label-schema.vcs-url="https://github.com/zokradonh/kopano-docker" \ org.label-schema.schema-version="1.0" -# install Kopano kDAV and refresh ca-certificates +# install Kopano kDAV RUN \ - # community download and package as apt source repository - . /kopano/helper/create-kopano-repo.sh && \ - if [ ${DOWNLOAD_COMMUNITY_PACKAGES} -eq 1 ]; then \ - dl_and_package_community "core"; \ - fi; \ echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \ set -x && \ - #apt-get update && apt-get -s -o Debug::pkgProblemResolver=yes install php7-mapi && \ - apt-get update && apt-get -s -o Debug::pkgProblemResolver=yes install libkcutil0 && \ apt-get update && apt-get install -y --no-install-recommends \ apache2 \ libapache2-mod-php7.3 \ @@ -53,8 +46,6 @@ RUN \ php-zip \ sqlite \ php-sqlite3 \ - ca-certificates \ - git \ unzip \ ${ADDITIONAL_KOPANO_PACKAGES} \ && rm -rf /var/cache/apt /var/lib/apt/lists/* diff --git a/php/Dockerfile b/php/Dockerfile index 4a6b11a..21afc07 100644 --- a/php/Dockerfile +++ b/php/Dockerfile @@ -32,11 +32,6 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # add install common php dependencies # hadolint ignore=SC2129 RUN \ - # community download and package as apt source repository - . /kopano/helper/create-kopano-repo.sh && \ - if [ ${DOWNLOAD_COMMUNITY_PACKAGES} -eq 1 ]; then \ - dl_and_package_community "core" "Debian_10"; \ - fi; \ echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \ # install set -x && \ diff --git a/python/Dockerfile b/python/Dockerfile index bdf479e..851930f 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -31,15 +31,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # hadolint ignore=SC2129 RUN \ - # community download and package as apt source repository - . /kopano/helper/create-kopano-repo.sh && \ - if [ ${DOWNLOAD_COMMUNITY_PACKAGES} -eq 1 ]; then \ - dl_and_package_community "core"; \ - fi; \ echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \ # install set -x && \ - #apt-get update && apt-get -s -o Debug::pkgProblemResolver=yes install libical2 \ apt-get update && apt-get install -y --no-install-recommends \ python3-kopano \ ${ADDITIONAL_KOPANO_PACKAGES} \