mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-10 09:26:14 +00:00
add version tagging to the web and konnect image (#78)
This commit is contained in:
parent
e59d26986b
commit
a630007059
23
Makefile
23
Makefile
@ -26,7 +26,7 @@ export
|
|||||||
# convert lowercase componentname to uppercase
|
# convert lowercase componentname to uppercase
|
||||||
COMPONENT = $(shell echo $(component) | tr a-z A-Z)
|
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
|
.PHONY: build
|
||||||
build: component ?= base
|
build: component ?= base
|
||||||
@ -65,8 +65,8 @@ build-zpush:
|
|||||||
build-ssl:
|
build-ssl:
|
||||||
docker build -t $(docker_repo)/kopano_ssl ssl/
|
docker build -t $(docker_repo)/kopano_ssl ssl/
|
||||||
|
|
||||||
build-kweb:
|
build-web:
|
||||||
docker build -t $(docker_repo)/kopano_web kweb/
|
docker build -t $(docker_repo)/kopano_web web/
|
||||||
|
|
||||||
build-konnect:
|
build-konnect:
|
||||||
docker build -t $(docker_repo)/kopano_konnect 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 '(?<=-).*(?=\+)'))
|
$(shell docker run --rm $(docker_repo)/kopano_zpush cat /kopano/buildversion | tail -n 1 | grep -o -P '(?<=-).*(?=\+)'))
|
||||||
component=zpush make tag-container
|
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
|
# Docker publish
|
||||||
repo-login:
|
repo-login:
|
||||||
@docker login -u $(docker_login) -p $(docker_pwd)
|
@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: component ?= base
|
||||||
publish-container:
|
publish-container:
|
||||||
@ -141,10 +152,10 @@ publish-zpush: build-zpush tag-zpush
|
|||||||
publish-ssl: build-ssl
|
publish-ssl: build-ssl
|
||||||
docker push $(docker_repo)/kopano_ssl:latest
|
docker push $(docker_repo)/kopano_ssl:latest
|
||||||
|
|
||||||
publish-kweb: build-kweb
|
publish-web: build-web tag-web
|
||||||
docker push $(docker_repo)/kopano_web:latest
|
docker push $(docker_repo)/kopano_web:latest
|
||||||
|
|
||||||
publish-konnect: build-konnect
|
publish-konnect: build-konnect tag-konnect
|
||||||
docker push $(docker_repo)/kopano_konnect:latest
|
docker push $(docker_repo)/kopano_konnect:latest
|
||||||
|
|
||||||
publish-playground: build-playground
|
publish-playground: build-playground
|
||||||
|
@ -377,6 +377,16 @@ services:
|
|||||||
- kopano-net
|
- kopano-net
|
||||||
- web-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:
|
volumes:
|
||||||
web:
|
web:
|
||||||
ldap:
|
ldap:
|
||||||
|
@ -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 \
|
RUN apk add --update \
|
||||||
openssl \
|
openssl \
|
||||||
|
@ -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
8
web/Dockerfile
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user