From b8721a79cd7cbeba1b714daffb607f2585c14f08 Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 14 Feb 2023 21:54:12 +0000 Subject: [PATCH] added z-push image --- build.sh | 2 +- core/Dockerfile | 2 +- webapp/Dockerfile | 2 +- webapp/build.sh | 16 +++++++++++----- z-push/Dockerfile | 27 +++++++++++++++++++++++++++ z-push/build.sh | 26 ++++++++++++++++++++++++++ 6 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 z-push/Dockerfile create mode 100644 z-push/build.sh diff --git a/build.sh b/build.sh index 9572229..c9c2088 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/usr/bin/bash -# docker run -d --name apache -p80:80 -v/root/kopano/dist:/var/www/... apache +# docker run -d --name apache -p80:80 -v/root/kopano/dist:/usr/local/apache2/htdocs httpd DOCKER_BUILDKIT=1 docker build -f kopano.dockerfile -t kopano . docker container prune -f docker create --name kopano kopano:latest diff --git a/core/Dockerfile b/core/Dockerfile index 9b2b63a..54d8cea 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -1,6 +1,7 @@ # syntax=docker/dockerfile:1.3-labs FROM ubuntu:20.04 # install apt packages +WORKDIR /root RUN </etc/apt/sources.list.d/z-push.list +apt-get update +apt-get install -y z-push-kopano z-push-config-apache z-push-backend-kopano +apt-get autoclean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm +rm -rf core-11.0.2.50.507cbae-Ubuntu_20.04-amd64 +EOF +# use envsubst in entrypoint script to convert config templates to actual config files +EXPOSE 80 +VOLUME /var/lib/z-push +ENTRYPOINT ["/bin/bash"] diff --git a/z-push/build.sh b/z-push/build.sh new file mode 100644 index 0000000..eb21823 --- /dev/null +++ b/z-push/build.sh @@ -0,0 +1,26 @@ +#!/usr/bin/bash +# export DOCKER_BUILDKIT=1 +docker run -d --rm --name www -p80:80 -v/root/kopano-docker/dist:/usr/local/apache2/htdocs httpd +docker build --no-cache --progress=plain -t z-push . +docker run --rm -it --name z-push \ + -e "MAIL_DOMAIN=ads65.de" \ + -e "APACHE_RUN_DIR=/var/www" \ + -e "APACHE_RUN_USER=www-data" \ + -e "APACHE_RUN_GROUP=www-data" \ + -e "APACHE_LOG_DIR=/var/log" \ + -e "APACHE_PID_FILE=/var/run/apache2/apache2.pid" \ + z-push +docker logs -f z-push +docker exec -it z-push bash + +docker kill z-push +docker rm z-push + +docker container ls +docker container prune +docker image ls +docker image prune -a -f + +# docker login --username baloan --password 'yZBCUs5&@?:.' +# docker tag -t z-push:latest ... +# docker push \ No newline at end of file