1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-21 21:33:02 +00:00

WIP: Kopano Konnect und Rest API (#72)

* 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>
This commit is contained in:
Felix Bartels
2019-01-09 21:57:04 +01:00
committed by GitHub
parent d2b6952f8f
commit 789762cb34
16 changed files with 386 additions and 69 deletions
+15 -8
View File
@@ -19,13 +19,14 @@ KOPANO_ZPUSH_REPOSITORY_URL := http://repo.z-hub.io/z-push:/final/Debian_9.0/
RELEASE_KEY_DOWNLOAD := 0
DOWNLOAD_COMMUNITY_PACKAGES := 1
COMPOSE_FILE := docker-compose.yml-example
-include .env
export
# convert lowercase componentname to uppercase
COMPONENT = $(shell echo $(component) | tr a-z A-Z)
build-all: build-ssl build-base build-core build-utils build-webapp build-zpush build-kweb build-ldap-demo
build-all: build-ssl build-base build-core build-utils build-webapp build-zpush build-kweb build-konnect build-playground build-ldap-demo
build: component ?= base
build:
@@ -66,6 +67,12 @@ build-ssl:
build-kweb:
docker build -t $(docker_repo)/kopano_web kweb/
build-konnect:
docker build -t $(docker_repo)/kopano_konnect konnect/
build-playground:
docker build -t $(docker_repo)/kopano_playground playground/
build-ldap-demo:
docker build -t $(docker_repo)/kopano_ldap_demo ldap-demo/
@@ -137,13 +144,13 @@ publish-kweb: build-kweb
docker push $(docker_repo)/kopano_web:latest
test:
docker-compose down -v || true
docker-compose -f $(COMPOSE_FILE) down -v || true
make build-all
docker-compose build
docker-compose up -d
docker-compose ps
docker-compose -f $(COMPOSE_FILE) build
docker-compose -f $(COMPOSE_FILE) up -d
docker-compose -f $(COMPOSE_FILE) ps
test-quick:
docker-compose stop || true
docker-compose up -d
docker-compose ps
docker-compose -f $(COMPOSE_FILE) stop || true
docker-compose -f $(COMPOSE_FILE) up -d
docker-compose -f $(COMPOSE_FILE) ps