File tree 4 files changed +42
-7
lines changed
4 files changed +42
-7
lines changed Original file line number Diff line number Diff line change 3
3
4
4
ENV VERSION 2.3
5
5
ENV VERSIONFULL 2.3.6
6
+ ENV BACKENDVERSION 66
6
7
ENV TERM xterm
7
8
8
9
ENV ZPUSH_URL zpush_default
@@ -12,12 +13,17 @@ RUN apt-get update && apt-get install -y wget
12
13
13
14
# Install zpush
14
15
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
16
17
17
18
# 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
21
27
22
28
# Create directory for zpush
23
29
RUN mkdir -p /var/log/z-push && mkdir /var/lib/z-push
Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 3
3
ServerAdmin webmaster@localhost
4
4
5
5
Alias /Microsoft-Server-ActiveSync /var/www/html/index.php
6
- AliasMatch (?i)/Autodiscover/Autodiscover.xml "/var/www/html/autodiscover/autodiscover.php"
7
6
8
7
DocumentRoot /var/www/html
9
8
<Directory /var/www/html/>
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ if [ ! -f "${ZPUSH_CONFIG}.bkp" ]; then
16
16
define('ZIMBRA_SYNC_CONTACT_PICTURES', true);
17
17
define('ZIMBRA_VIRTUAL_CONTACTS',true);
18
18
define('ZIMBRA_VIRTUAL_APPOINTMENTS',true);
19
+ define('ZIMBRA_VIRTUAL_NOTES',true);
19
20
define('ZIMBRA_VIRTUAL_TASKS',true);
20
21
define('ZIMBRA_IGNORE_EMAILED_CONTACTS',true);
21
22
define('ZIMBRA_HTML',true);
22
23
define('ZIMBRA_ENFORCE_VALID_EMAIL',false);
23
- define('ZIMBRA_SMART_FOLDERS',true );
24
+ define('ZIMBRA_SMART_FOLDERS',false );
24
25
EOF
25
26
fi
26
27
You can’t perform that action at this time.
0 commit comments