1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

add version tagging to the web and konnect image (#78)

This commit is contained in:
Felix Bartels 2019-01-11 08:06:21 +01:00 committed by GitHub
parent e59d26986b
commit a630007059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 39 additions and 11 deletions

View File

@ -26,7 +26,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-utils build-webapp build-zpush build-kweb build-konnect build-playground build-ldap-demo
build-all: build-ssl build-base build-core build-utils build-webapp build-zpush build-web build-konnect build-playground build-ldap-demo
.PHONY: build
build: component ?= base
@ -65,8 +65,8 @@ build-zpush:
build-ssl:
docker build -t $(docker_repo)/kopano_ssl ssl/
build-kweb:
docker build -t $(docker_repo)/kopano_web kweb/
build-web:
docker build -t $(docker_repo)/kopano_web web/
build-konnect:
docker build -t $(docker_repo)/kopano_konnect konnect/
@ -111,11 +111,22 @@ tag-zpush:
$(shell docker run --rm $(docker_repo)/kopano_zpush cat /kopano/buildversion | tail -n 1 | grep -o -P '(?<=-).*(?=\+)'))
component=zpush make tag-container
tag-web:
$(eval web_version := \
$(shell docker run --rm $(docker_repo)/kopano_web env | grep CODE_VERSION | cut -d'=' -f2))
component=web make tag-container
tag-konnect:
$(eval konnect_version := \
$(shell docker run --rm $(docker_repo)/kopano_konnect env | grep CODE_VERSION | cut -d'=' -f2))
component=konnect make tag-container
# Docker publish
repo-login:
@docker login -u $(docker_login) -p $(docker_pwd)
publish: repo-login publish-ssl publish-base publish-core publish-utils publish-webapp publish-zpush publish-ssl publish-kweb publish-playground
publish: repo-login publish-ssl publish-base publish-core publish-utils publish-webapp publish-zpush publish-ssl publish-web publish-playground
publish-container: component ?= base
publish-container:
@ -141,10 +152,10 @@ publish-zpush: build-zpush tag-zpush
publish-ssl: build-ssl
docker push $(docker_repo)/kopano_ssl:latest
publish-kweb: build-kweb
publish-web: build-web tag-web
docker push $(docker_repo)/kopano_web:latest
publish-konnect: build-konnect
publish-konnect: build-konnect tag-konnect
docker push $(docker_repo)/kopano_konnect:latest
publish-playground: build-playground

View File

@ -377,6 +377,16 @@ services:
- kopano-net
- web-net
kopano_kwmserver:
image: kopano/kwmserverd:0.13.1
container_name: kopano_kwmserver
environment:
- KWMSERVERD_ADMIN_TOKENS_KEY_FILE=/kopano/ssl/kwm-admin-tokens.key
volumes:
- kopanossl/:/kopano/ssl
networks:
- web-net
volumes:
web:
ldap:

View File

@ -1,4 +1,7 @@
FROM kopano/konnectd:0.16.1
ARG CODE_VERSION=0.16.1
FROM kopano/konnectd:${CODE_VERSION}
ARG CODE_VERSION
ENV CODE_VERSION="${CODE_VERSION}"
RUN apk add --update \
openssl \

View File

@ -1,4 +0,0 @@
FROM kopano/kwebd:0.4.2
COPY wrapper.sh /usr/local/bin
COPY kweb.cfg /etc/kweb.cfg

8
web/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
ARG CODE_VERSION=0.4.2
FROM kopano/kwebd:${CODE_VERSION}
ARG CODE_VERSION
ENV CODE_VERSION="${CODE_VERSION}"
COPY wrapper.sh /usr/local/bin
COPY kweb.cfg /etc/kweb.cfg