mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-21 21:33:02 +00:00
Have a dedicate container for z-push (#19)
* remove z-push from webapp image Signed-off-by: Felix Bartels <felix@host-consultants.de> * remove z-push from webapp start script Signed-off-by: Felix Bartels <felix@host-consultants.de> * add container for z-push Signed-off-by: Felix Bartels <felix@host-consultants.de> * adapt version.sh for z-push Signed-off-by: Felix Bartels <felix@host-consultants.de> * ci: committing changes for zpush * tune version.sh for z-push adapt makefile Signed-off-by: Felix Bartels <felix@host-consultants.de> * add z-push to setup script and docker-compose Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
@@ -3,14 +3,17 @@ docker_login := `cat ~/.docker-account-user`
|
||||
docker_pwd := `cat ~/.docker-account-pwd`
|
||||
|
||||
base_version = $(shell docker run --rm $(docker_repo)/kopano_base cat /kopano/buildversion)
|
||||
base_download_version = $(shell ./version.sh core)
|
||||
base_download_version := $(shell ./version.sh core)
|
||||
core_version = $(shell docker run --rm $(docker_repo)/kopano_core cat /kopano/buildversion | grep -o -P '(?<=-).*(?=\+)')
|
||||
core_download_version = $(shell ./version.sh core)
|
||||
core_download_version := $(shell ./version.sh core)
|
||||
webapp_version = $(shell docker run --rm $(docker_repo)/kopano_webapp cat /kopano/buildversion | tail -n 1 | grep -o -P '(?<=-).*(?=\+)')
|
||||
webapp_download_version = $(shell ./version.sh webapp)
|
||||
webapp_download_version := $(shell ./version.sh webapp)
|
||||
zpush_version = $(shell docker run --rm $(docker_repo)/kopano_zpush cat /kopano/buildversion | tail -n 1 | grep -o -P '(?<=-).*(?=\+)')
|
||||
zpush_download_version := $(shell ./version.sh zpush)
|
||||
|
||||
KOPANO_CORE_REPOSITORY_URL := file:/kopano/repo/core
|
||||
KOPANO_WEBAPP_REPOSITORY_URL := file:/kopano/repo/webapp
|
||||
KOPANO_ZPUSH_REPOSITORY_URL := http://repo.z-hub.io/z-push:/final/Debian_9.0/
|
||||
RELEASE_KEY_DOWNLOAD := 0
|
||||
DOWNLOAD_COMMUNITY_PACKAGES := 1
|
||||
|
||||
@@ -20,7 +23,7 @@ export
|
||||
# convert lowercase componentname to uppercase
|
||||
COMPONENT = $(shell echo $(component) | tr a-z A-Z)
|
||||
|
||||
build-all: build-ssl build-base build-core build-webapp
|
||||
build-all: build-ssl build-base build-core build-webapp build-zpush
|
||||
|
||||
build: component ?= base
|
||||
build:
|
||||
@@ -30,6 +33,7 @@ build:
|
||||
--build-arg KOPANO_$(COMPONENT)_VERSION=${$(component)_download_version} \
|
||||
--build-arg KOPANO_CORE_REPOSITORY_URL=$(KOPANO_CORE_REPOSITORY_URL) \
|
||||
--build-arg KOPANO_WEBAPP_REPOSITORY_URL=$(KOPANO_WEBAPP_REPOSITORY_URL) \
|
||||
--build-arg KOPANO_ZPUSH_REPOSITORY_URL=$(KOPANO_ZPUSH_REPOSITORY_URL) \
|
||||
--build-arg RELEASE_KEY_DOWNLOAD=$(RELEASE_KEY_DOWNLOAD) \
|
||||
--build-arg DOWNLOAD_COMMUNITY_PACKAGES=$(DOWNLOAD_COMMUNITY_PACKAGES) \
|
||||
-t $(docker_repo)/kopano_$(component) $(component)/
|
||||
@@ -43,6 +47,9 @@ build-core:
|
||||
build-webapp:
|
||||
component=webapp make build
|
||||
|
||||
build-zpush:
|
||||
component=zpush make build
|
||||
|
||||
build-ssl:
|
||||
docker build -t $(docker_repo)/kopano_ssl ssl/
|
||||
|
||||
@@ -64,6 +71,9 @@ tag-core:
|
||||
tag-webapp:
|
||||
component=webapp make tag
|
||||
|
||||
tag-zpush:
|
||||
component=zpush make tag
|
||||
|
||||
# Docker publish
|
||||
repo-login:
|
||||
docker login -u $(docker_login) -p $(docker_pwd)
|
||||
@@ -87,6 +97,9 @@ publish-core: build-core tag-core
|
||||
publish-webapp: build-webapp tag-webapp
|
||||
component=webapp make publish-container
|
||||
|
||||
publish-zpush: build-zpush tag-zpush
|
||||
component=zpush make publish-container
|
||||
|
||||
publish-ssl: build-ssl
|
||||
docker push $(docker_repo)/kopano_ssl:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user