1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-06 15:36:40 +00:00

add example how to build dedicated container for services such as dagent (#391)

* add example how to build dedicated container for services such as dagent

Obsoletes part of https://github.com/zokradonh/kopano-docker/pull/366

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* add new dockerfile for dagent

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2020-05-01 15:53:57 +02:00 committed by GitHub
parent 7b05f10206
commit 87de275e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -119,6 +119,12 @@ build-base: ## Build new base image.
build-core:
component=core make build
build-core-dagent:
docker build --rm \
-f core/Dockerfile.dagent \
--build-arg docker_repo=$(docker_repo) \
-t $(docker_repo)/kopano_dagent core/
build-helper:
component=build make build-simple
@ -209,6 +215,11 @@ tag-core:
$(shell docker inspect --format '{{ index .Config.Labels "org.label-schema.version"}}' $(docker_repo)/kopano_core | cut -d+ -f1))
component=core make tag-container
tag-dagent:
$(eval dagent_version := \
$(shell docker inspect --format '{{ index .Config.Labels "org.label-schema.version"}}' $(docker_repo)/kopano_dagent | cut -d+ -f1))
component=dagent make tag-container
tag-konnect:
$(eval konnect_version := \
$(shell docker inspect --format '{{ index .Config.Labels "org.label-schema.version"}}' $(docker_repo)/kopano_konnect))
@ -298,6 +309,9 @@ publish-base: tag-base
publish-core: tag-core
component=core make publish-container
publish-dagent: tag-dagent
component=dagent make publish-container
publish-helper:
docker push $(docker_repo)/kopano_build:latest

6
core/Dockerfile.dagent Normal file
View File

@ -0,0 +1,6 @@
ARG docker_repo=zokradonh
FROM ${docker_repo}/kopano_core
ENV \
EXE=/usr/sbin/kopano-dagent \
SERVICE_TO_START=dagent