Skip to content
This repository was archived by the owner on Nov 1, 2019. It is now read-only.

Commit d6c42b1

Browse files
committed
update(): postfixadmin 3.2
1 parent 8136f5d commit d6c42b1

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ FROM alpine:3.7
33
LABEL description "PostfixAdmin is a web based interface used to manage mailboxes" \
44
maintainer="Hardware <[email protected]>"
55

6-
ARG VERSION=3.1
6+
ARG VERSION=3.2
77

88
# https://pgp.mit.edu/pks/lookup?search=0xC6A682EA63C82F1C&fingerprint=on&op=index
99
# pub 4096R/63C82F1C 2005-10-06 Christian Boltz (www.cboltz.de) <[email protected]>
1010
ARG GPG_SHORTID="0xC6A682EA63C82F1C"
1111
ARG GPG_FINGERPRINT="70CA A060 DE04 2AAE B1B1 5196 C6A6 82EA 63C8 2F1C"
12+
ARG SHA256_HASH="866d4c0ca870b2cac184e5837a4d201af8fcefecef09bc2c887a6e017a00cefe"
1213

1314
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/apk/repositories \
1415
&& apk -U upgrade \
@@ -20,6 +21,7 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/a
2021
dovecot \
2122
tini@community \
2223
php7@community \
24+
php7-phar \
2325
php7-fpm@community \
2426
php7-imap@community \
2527
php7-pgsql@community \
@@ -35,6 +37,8 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/a
3537
gpg --keyserver keyserver.pgp.com --recv-keys ${GPG_SHORTID} || \
3638
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ${GPG_SHORTID} \
3739
) \
40+
&& CHECKSUM=$(sha256sum ${PFA_TARBALL} | awk '{print $1}') \
41+
&& if [ "${CHECKSUM}" != "${SHA256_HASH}" ]; then echo "ERROR: Checksum does not match!" && exit 1; fi \
3842
&& FINGERPRINT="$(LANG=C gpg --verify ${PFA_TARBALL}.asc ${PFA_TARBALL} 2>&1 | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \
3943
&& if [ -z "${FINGERPRINT}" ]; then echo "ERROR: Invalid GPG signature!" && exit 1; fi \
4044
&& if [ "${FINGERPRINT}" != "${GPG_FINGERPRINT}" ]; then echo "ERROR: Wrong GPG fingerprint!" && exit 1; fi \

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ PostfixAdmin is a web based interface used to manage mailboxes, virtual domains
1010

1111
- Lightweight & secure image (no root process)
1212
- Based on Alpine Linux
13-
- Latest Postfixadmin version (3.1)
13+
- Latest Postfixadmin version (3.2)
1414
- MariaDB/PostgreSQL driver
1515
- With PHP7
1616

1717
### Built-time variables
1818

19-
- **VERSION** : version of postfixadmin (default: **3.1**)
19+
- **VERSION** : version of postfixadmin
2020
- **GPG_SHORTID** : short gpg key ID
2121
- **GPG_FINGERPRINT** : fingerprint of signing key
22+
- **SHA256_HASH** : SHA256 hash of Postfixadmin archive
2223

2324
### Ports
2425

@@ -30,9 +31,9 @@ PostfixAdmin is a web based interface used to manage mailboxes, virtual domains
3031
| -------- | ----------- | ---- | ------------- |
3132
| **UID** | postfixadmin user id | *optional* | 991
3233
| **GID** | postfixadmin group id | *optional* | 991
33-
| **DBDRIVER** | Database type: mysql, pgsql | optional | mysql
34+
| **DBDRIVER** | Database type: mysql, pgsql | *optional* | mysql
3435
| **DBHOST** | Database instance ip/hostname | *optional* | mariadb
35-
| **DBPORT** | Database instance port **DOES NOT WORK ON MYSQL FOR NOW** | optional | 3306
36+
| **DBPORT** | Database instance port | *optional* | 3306
3637
| **DBUSER** | Database database username | *optional* | postfix
3738
| **DBNAME** | Database database name | *optional* | postfix
3839
| **DBPASS** | Database database password or location of a file containing it | **required** | null

bin/run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@ cat > /postfixadmin/config.local.php <<EOF
8181
);
8282
?>
8383
EOF
84+
8485
# RUN !
85-
exec su-exec $UID:$GID php7 -S 0.0.0.0:8888 -t /postfixadmin
86+
exec su-exec $UID:$GID php7 -S 0.0.0.0:8888 -t /postfixadmin/public

0 commit comments

Comments
 (0)