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

Commit

Permalink
update(): postfixadmin 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hardware committed May 3, 2018
1 parent 8136f5d commit d6c42b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ FROM alpine:3.7
LABEL description "PostfixAdmin is a web based interface used to manage mailboxes" \
maintainer="Hardware <[email protected]>"

ARG VERSION=3.1
ARG VERSION=3.2

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

RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/apk/repositories \
&& apk -U upgrade \
Expand All @@ -20,6 +21,7 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/a
dovecot \
tini@community \
php7@community \
php7-phar \
php7-fpm@community \
php7-imap@community \
php7-pgsql@community \
Expand All @@ -35,6 +37,8 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/a
gpg --keyserver keyserver.pgp.com --recv-keys ${GPG_SHORTID} || \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ${GPG_SHORTID} \
) \
&& CHECKSUM=$(sha256sum ${PFA_TARBALL} | awk '{print $1}') \
&& if [ "${CHECKSUM}" != "${SHA256_HASH}" ]; then echo "ERROR: Checksum does not match!" && exit 1; fi \
&& FINGERPRINT="$(LANG=C gpg --verify ${PFA_TARBALL}.asc ${PFA_TARBALL} 2>&1 | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \
&& if [ -z "${FINGERPRINT}" ]; then echo "ERROR: Invalid GPG signature!" && exit 1; fi \
&& if [ "${FINGERPRINT}" != "${GPG_FINGERPRINT}" ]; then echo "ERROR: Wrong GPG fingerprint!" && exit 1; fi \
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ PostfixAdmin is a web based interface used to manage mailboxes, virtual domains

- Lightweight & secure image (no root process)
- Based on Alpine Linux
- Latest Postfixadmin version (3.1)
- Latest Postfixadmin version (3.2)
- MariaDB/PostgreSQL driver
- With PHP7

### Built-time variables

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

### Ports

Expand All @@ -30,9 +31,9 @@ PostfixAdmin is a web based interface used to manage mailboxes, virtual domains
| -------- | ----------- | ---- | ------------- |
| **UID** | postfixadmin user id | *optional* | 991
| **GID** | postfixadmin group id | *optional* | 991
| **DBDRIVER** | Database type: mysql, pgsql | optional | mysql
| **DBDRIVER** | Database type: mysql, pgsql | *optional* | mysql
| **DBHOST** | Database instance ip/hostname | *optional* | mariadb
| **DBPORT** | Database instance port **DOES NOT WORK ON MYSQL FOR NOW** | optional | 3306
| **DBPORT** | Database instance port | *optional* | 3306
| **DBUSER** | Database database username | *optional* | postfix
| **DBNAME** | Database database name | *optional* | postfix
| **DBPASS** | Database database password or location of a file containing it | **required** | null
Expand Down
3 changes: 2 additions & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ cat > /postfixadmin/config.local.php <<EOF
);
?>
EOF

# RUN !
exec su-exec $UID:$GID php7 -S 0.0.0.0:8888 -t /postfixadmin
exec su-exec $UID:$GID php7 -S 0.0.0.0:8888 -t /postfixadmin/public

0 comments on commit d6c42b1

Please sign in to comment.