mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-30 18:07:46 +00:00 
			
		
		
		
	* json output in the healtcheck is hard to read Signed-off-by: Felix Bartels <felix@host-consultants.de> * fix meet health check after moving json to /tmp Signed-off-by: Felix Bartels <felix@host-consultants.de> * fix webapp health check Signed-off-by: Felix Bartels <felix@host-consultants.de>
		
			
				
	
	
		
			64 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
| ARG docker_repo=zokradonh
 | |
| FROM ${docker_repo}/kopano_base:latest
 | |
| 
 | |
| ARG VCS_REF
 | |
| ARG ADDITIONAL_KOPANO_PACKAGES=""
 | |
| ARG DOWNLOAD_COMMUNITY_PACKAGES=1
 | |
| ARG KOPANO_REPOSITORY_FLAGS="trusted=yes"
 | |
| ARG RELEASE_KEY_DOWNLOAD=0
 | |
| ARG DEBIAN_FRONTEND=noninteractive
 | |
| ARG KOPANO_CORE_REPOSITORY_URL="file:/kopano/repo/core"
 | |
| ARG KOPANO_CORE_VERSION=newest
 | |
| ARG KOPANO_MEET_REPOSITORY_URL="file:/kopano/repo/meet"
 | |
| ARG KOPANO_MEET_VERSION=newest
 | |
| ENV KOPANO_MEET_VERSION=$KOPANO_MEET_VERSION
 | |
| 
 | |
| ENV \
 | |
|     ADDITIONAL_KOPANO_PACKAGES=$ADDITIONAL_KOPANO_PACKAGES \
 | |
|     DOWNLOAD_COMMUNITY_PACKAGES=$DOWNLOAD_COMMUNITY_PACKAGES \
 | |
|     KOPANO_CORE_REPOSITORY_URL=$KOPANO_CORE_REPOSITORY_URL \
 | |
|     KOPANO_CORE_VERSION=$KOPANO_CORE_VERSION \
 | |
|     KOPANO_REPOSITORY_FLAGS=$KOPANO_REPOSITORY_FLAGS \
 | |
|     RELEASE_KEY_DOWNLOAD=$RELEASE_KEY_DOWNLOAD
 | |
| 
 | |
| LABEL maintainer=az@zok.xyz \
 | |
|     org.label-schema.name="Kopano Meet container" \
 | |
|     org.label-schema.description="Container for running Kopano Meet" \
 | |
|     org.label-schema.url="https://kopano.io" \
 | |
|     org.label-schema.vcs-ref=$VCS_REF \
 | |
|     org.label-schema.vcs-url="https://github.com/zokradonh/kopano-docker" \
 | |
|     org.label-schema.version=$KOPANO_MEET_VERSION \
 | |
|     org.label-schema.schema-version="1.0"
 | |
| 
 | |
| 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 "meet"; \
 | |
|     fi; \
 | |
|     echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_MEET_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \
 | |
|     # install
 | |
|     apt-get update && \
 | |
|     # TODO mime-support could be remove once its an official dependency of kopano-kwebd
 | |
|     apt-get install --no-install-recommends -y \
 | |
|         mime-support \
 | |
|         kopano-kwebd \
 | |
|         kopano-meet kopano-meet-webapp \
 | |
|         ${ADDITIONAL_KOPANO_PACKAGES} \
 | |
|         && \
 | |
|     rm -rf /var/cache/apt /var/lib/apt/lists && \
 | |
|     # make configuration a symlink to prevent overwriting it
 | |
|     # TODO better would be to override its configuration in kweb.cfg
 | |
|     ln -s /tmp/meet.json /usr/share/kopano-kweb/www/config/kopano/meet.json
 | |
| 
 | |
| COPY defaultconfigs/ start-service.sh /kopano/
 | |
| COPY goss.yaml /goss/
 | |
| CMD [ "/kopano/start-service.sh" ]
 | |
| 
 | |
| HEALTHCHECK --interval=1m --timeout=10s \
 | |
|     CMD goss -g /goss/goss.yaml validate
 | |
| 
 |