added z-push image

This commit is contained in:
andreas
2023-02-14 21:54:12 +00:00
parent 31f0a7f579
commit b8721a79cd
6 changed files with 67 additions and 8 deletions

27
z-push/Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
# syntax=docker/dockerfile:1.4
FROM ubuntu:20.04
RUN <<EOF
export DEBIAN_FRONTEND=noninteractive
export TZ=Europe/Berlin
apt-get update
apt-get install -y tzdata wget gnupg
EOF
RUN <<EOF
# install php7-mapi
wget --no-verbose -P/tmp http://bldr/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz
tar xzf /tmp/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz
for F in core-11.0.2.50.507cbae-Ubuntu_20.04-amd64/*.deb; do dpkg --unpack --no-triggers $F; done
# apt-get install -f -y
# install z-push
wget -qO - https://download.kopano.io/zhub/z-push:/final/Ubuntu_20.04/Release.key | apt-key add -
echo "deb https://download.kopano.io/zhub/z-push:/final/Ubuntu_20.04/ /" >/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"]

26
z-push/build.sh Normal file
View File

@@ -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