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

Merge pull request #149 from fbartels/kopano-demo

add small modification for use on demo.kopano.com
This commit is contained in:
Felix Bartels 2019-05-03 10:13:24 +02:00 committed by GitHub
commit 1ef85eb1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -147,6 +147,12 @@ build-web:
build-webapp: build-php
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:
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