mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 02:17:47 +00:00 
			
		
		
		
	* add a new image for konnect * add konnect to compose file * adapt gencerts for konnect certs * integrate gencerts into start.sh and adapt if to only skip individual parts * add container for kapi * use same config for webapp and z-push as https://stash.kopano.io/projects/KGOL/repos/kweb/browse/config/legacy.go * use example compose file in make test target * make compose file configurable through an env variable * remove legacy links in compose * write certificates first to a tempfile * remove unnecessary paths * add option to run kapi insecure for testing * configure openid for kopano-server * add local playground to test functionality of konnect and kapi * print errors and logs to stdout in web * add extrahosts to kopano_server * adapt extrahosts for ip command on ubuntu 18.04 * add documentation Signed-off-by: Felix Bartels <felix@host-consultants.de>
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
| ARG docker_repo=zokradonh
 | |
| FROM ${docker_repo}/kopano_base
 | |
| 
 | |
| ARG DEBIAN_FRONTEND=noninteractive
 | |
| 
 | |
| ARG ADDITIONAL_KOPANO_PACKAGES=""
 | |
| ARG DOWNLOAD_COMMUNITY_PACKAGES=1
 | |
| ARG KOPANO_CORE_REPOSITORY_URL="file:/kopano/repo/core"
 | |
| ARG KOPANO_CORE_VERSION=newest
 | |
| ARG KOPANO_REPOSITORY_FLAGS="trusted=yes"
 | |
| ARG RELEASE_KEY_DOWNLOAD=0
 | |
| 
 | |
| # 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"; \
 | |
|     fi; \
 | |
|     echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \
 | |
|     # save kopano version
 | |
|     echo "core-${KOPANO_CORE_VERSION}" > /kopano/buildversion; \
 | |
|     # install apt key if supported kopano
 | |
|     if [ ${RELEASE_KEY_DOWNLOAD} -eq 1 ]; then \
 | |
|         curl -s -S -o - "${KOPANO_CORE_REPOSITORY_URL}/Release.key" | apt-key add -; \
 | |
|     fi; \
 | |
|     # install
 | |
|     apt-get update && \
 | |
|     set -x && \
 | |
|     apt-get install --no-install-recommends -y \
 | |
|         kopano-server-packages \
 | |
| 	kopano-grapi kopano-kapid \
 | |
|         ${ADDITIONAL_KOPANO_PACKAGES} \
 | |
|         && \
 | |
|     set +x && \
 | |
|     rm -rf /var/cache/apt /var/lib/apt/lists && \
 | |
|     cp /usr/share/doc/kopano/example-config/*.cfg /etc/kopano/ && \
 | |
|     cp /usr/share/doc/kopano/example-config/*.cfg.gz /etc/kopano/ && \
 | |
|     gzip -d -f /etc/kopano/*.gz
 | |
| 
 | |
| ENV KOPANO_LOCALE="de_DE.UTF-8"
 | |
| ENV KOPANO_USERSCRIPT_LOCALE="de_DE.UTF-8"
 | |
| ENV LANG=en_US.UTF-8
 | |
| 
 | |
| ENV SERVICE_TO_START=server
 | |
| 
 | |
| COPY kcconf.py defaultconfigs/ start-service.sh /kopano/
 | |
| COPY services /kopano/services
 | |
| 
 | |
| WORKDIR /kopano/path
 | |
| 
 | |
| ENTRYPOINT ["/usr/bin/dumb-init", "--"]
 | |
| 
 | |
| CMD [ "/kopano/start-service.sh" ]
 | |
| 
 | |
| HEALTHCHECK --interval=30s --timeout=60s \
 | |
| 	CMD /kopano/healthcheck.sh
 |