Skip to content

Commit 1d1eb7a

Browse files
author
Serge Ohl
committed
Update to relaese 66 of zimbrabackend
1 parent 6d5147c commit 1d1eb7a

File tree

4 files changed

+42
-7
lines changed

4 files changed

+42
-7
lines changed

Dockerfile

+10-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ MAINTAINER Serge Ohl <[email protected]>
33

44
ENV VERSION 2.3
55
ENV VERSIONFULL 2.3.6
6+
ENV BACKENDVERSION 66
67
ENV TERM xterm
78

89
ENV ZPUSH_URL zpush_default
@@ -12,12 +13,17 @@ RUN apt-get update && apt-get install -y wget
1213

1314
# Install zpush
1415
RUN cd /var/www/html && \
15-
wget -O - "http://download.z-push.org/final/${VERSION}/z-push-${VERSIONFULL}.tar.gz" | tar --strip-components=1 -x -z && ls -lah
16+
wget -O - "http://download.z-push.org/final/${VERSION}/z-push-${VERSIONFULL}.tar.gz" | tar --strip-components=1 -x -z
1617

1718
# Add zimbra backend
18-
RUN cd /tmp && \
19-
wget -O - "http://downloads.sourceforge.net/project/zimbrabackend/Release62/zimbra62.tgz?use_mirror=freefr" | tar --strip-components=1 -x -z && \
20-
mv /tmp/z-push-2 /var/www/html/backend/zimbra
19+
RUN cd /var/www/html/backend && \
20+
curl -o zpzb-install.sh -L "https://sourceforge.net/projects/zimbrabackend/files/Release${BACKENDVERSION}/zpzb-install.sh/download" && \
21+
curl -o zimbra${BACKENDVERSION}.tgz -L "http://downloads.sourceforge.net/project/zimbrabackend/Release${BACKENDVERSION}/zimbra${BACKENDVERSION}.tgz"
22+
23+
RUN cd /var/www/html/backend &&\
24+
chmod +x zpzb-install.sh &&\
25+
sed -i "/chcon[^']*$/d" zpzb-install.sh &&\
26+
/bin/bash ./zpzb-install.sh $BACKENDVERSION ; exit 0
2127

2228
# Create directory for zpush
2329
RUN mkdir -p /var/log/z-push && mkdir /var/lib/z-push

README.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
# docker-zpush-zimbra
1+
# ActiveSync for Zimbra with Z-push
2+
3+
## Get started
4+
5+
It's very simple, first, get it :
6+
7+
```bash
8+
docker pull darkjeff/zpush-zimbra
9+
```
10+
11+
And run it :
12+
13+
```bash
14+
docker run -d \
15+
-p 80:80 \
16+
-e ZIMBRA_HOST=yourzimbraurl.tld \
17+
-e ZPUSH_URL=yourpublicurlforsyn.tld \
18+
--name zpush
19+
docker pull darkjeff/zpush-zimbra
20+
```
21+
22+
## Configuration
23+
24+
You can tune the configuration with environment variable:
25+
26+
*ZPUSH_URL*: The url (whitout https://) of your zimbra. The container have to reach this address.
27+
*ZPUSH_URL_IN_HTTP*: If your zimbra is not listenning in https set `true`.*Deflaut*: https
28+
*ZIMBRA_URL*: The public url of your sync service (whitout https://)
29+
*ZIMBRA_URL_IN_HTTP*: If your zimbra is not listenning in https set `true`. *Deflaut*: https
30+
*TIMEZONE*: [PHP timezone] (http://php.net/manual/en/timezones.php). *Deflaut*: 'Europe/London'

default-vhost.conf

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
ServerAdmin webmaster@localhost
44

55
Alias /Microsoft-Server-ActiveSync /var/www/html/index.php
6-
AliasMatch (?i)/Autodiscover/Autodiscover.xml "/var/www/html/autodiscover/autodiscover.php"
76

87
DocumentRoot /var/www/html
98
<Directory /var/www/html/>

entrypoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ if [ ! -f "${ZPUSH_CONFIG}.bkp" ]; then
1616
define('ZIMBRA_SYNC_CONTACT_PICTURES', true);
1717
define('ZIMBRA_VIRTUAL_CONTACTS',true);
1818
define('ZIMBRA_VIRTUAL_APPOINTMENTS',true);
19+
define('ZIMBRA_VIRTUAL_NOTES',true);
1920
define('ZIMBRA_VIRTUAL_TASKS',true);
2021
define('ZIMBRA_IGNORE_EMAILED_CONTACTS',true);
2122
define('ZIMBRA_HTML',true);
2223
define('ZIMBRA_ENFORCE_VALID_EMAIL',false);
23-
define('ZIMBRA_SMART_FOLDERS',true);
24+
define('ZIMBRA_SMART_FOLDERS',false);
2425
EOF
2526
fi
2627

0 commit comments

Comments
 (0)