From c8a7958083c6228a1e8dd76abc5f45e595530949 Mon Sep 17 00:00:00 2001 From: Felix Bartels <1257835+fbartels@users.noreply.github.com> Date: Mon, 16 Mar 2020 15:11:21 -0400 Subject: [PATCH] example to build local container with just some added plugins (#350) Signed-off-by: Felix Bartels --- Makefile | 7 ++++++- webapp/Dockerfile.plugins | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 webapp/Dockerfile.plugins diff --git a/Makefile b/Makefile index a8faf8a..ae55cc3 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ help: all: build-all build-all: - make $(shell grep -o ^build-.*: Makefile | grep -Ev 'build-all|build-simple|build-builder|build-webapp-demo' | uniq | sed s/://g | xargs) + make $(shell grep -o ^build-.*: Makefile | grep -Ev 'build-all|build-simple|build-builder|build-webapp-demo|build-webapp-plugins' | uniq | sed s/://g | xargs) .PHONY: build build: component ?= base @@ -174,6 +174,11 @@ build-webapp-demo: ## Replaces the actual kopano_webapp container with one that -f webapp/Dockerfile.demo \ -t $(docker_repo)/kopano_webapp webapp/ +build-webapp-plugins: ## Example for a custom image to install Kopano WebApp plugins + docker build --rm \ + -f webapp/Dockerfile.plugins \ + -t $(docker_repo)/kopano_webapp webapp/ + build-zpush: component=zpush make build diff --git a/webapp/Dockerfile.plugins b/webapp/Dockerfile.plugins new file mode 100644 index 0000000..ccf9124 --- /dev/null +++ b/webapp/Dockerfile.plugins @@ -0,0 +1,6 @@ +ARG docker_repo=zokradonh +FROM ${docker_repo}/kopano_webapp + +RUN apt-get update && apt-get install -y --no-install-recommends \ + kopano-webapp-plugin-mdm \ + && rm -rf /var/cache/apt /var/lib/apt/lists