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

add small modification for use on demo.kopano.com

on demo systems one can now run `make build-webapp-demo` and then get a kopano_webapp container with added login hints

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2019-05-03 10:05:03 +02:00
parent f5cd9a2044
commit 51593d7c68
2 changed files with 11 additions and 0 deletions

View File

@ -144,6 +144,12 @@ build-web:
build-webapp: build-php build-webapp: build-php
component=webapp make build component=webapp make build
# replaces the actual kopano_webapp container with one that has login hints for demo.kopano.com
build-webapp-demo:
docker build \
-f webapp/Dockerfile.demo \
-t $(docker_repo)/kopano_webapp webapp/
build-zpush: build-zpush:
component=zpush make build component=zpush make build

5
webapp/Dockerfile.demo Normal file
View File

@ -0,0 +1,5 @@
ARG docker_repo=zokradonh
FROM ${docker_repo}/kopano_webapp
RUN sed -i '1s/^/<?php $user="user".rand(1, 15); ?>\n/' /usr/share/kopano-webapp/server/includes/templates/login.php && \
sed -i 's/id="password"/id="password" value="<?php echo $user; ?>"/' /usr/share/kopano-webapp/server/includes/templates/login.php