added core
This commit is contained in:
@@ -5,22 +5,29 @@ RUN <<EOF
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export TZ=Europe/Berlin
|
||||
apt-get update
|
||||
apt-get install -y tzdata wget gnupg
|
||||
EOF
|
||||
apt-get install -y --no-install-recommends tzdata wget gnupg apache2 ca-certificates
|
||||
update-ca-certificates
|
||||
# install php7-mapi and dependencies
|
||||
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 --no-install-recommends
|
||||
# install z-push
|
||||
# wget --no-check-certificate -qO - https://download.kopano.io/zhub/z-push:/final/Ubuntu_20.04/Release.key | apt-key add -
|
||||
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 install -y z-push-kopano z-push-backend-kopano z-push-config-apache z-push-config-apache-autodiscover
|
||||
apt-get install -f -y --no-install-recommends
|
||||
# cleanup
|
||||
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
|
||||
COPY --chmod=0775 entrypoint.sh /entrypoint.sh
|
||||
EXPOSE 80
|
||||
VOLUME /etc/z-push
|
||||
VOLUME /var/lib/z-push
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["apache2", "-DFOREGROUND"]
|
||||
|
||||
@@ -2,16 +2,11 @@
|
||||
# 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 build -t z-push .
|
||||
docker run --rm -it --name z-push -p8081:80 z-push bash
|
||||
docker logs -f z-push
|
||||
docker exec -it z-push bash
|
||||
docker run --rm -it ubuntu:20.04
|
||||
|
||||
docker kill z-push
|
||||
docker rm z-push
|
||||
|
||||
8
z-push/entrypoint.sh
Normal file
8
z-push/entrypoint.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
export APACHE_RUN_DIR=/var/www
|
||||
export APACHE_RUN_USER=www-data
|
||||
export APACHE_RUN_GROUP=www-data
|
||||
export APACHE_LOG_DIR=/var/log/apache2
|
||||
export APACHE_PID_FILE=/var/run/apache2/apache2.pid
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user