Skip to content

Commit da9339b

Browse files
committed
feat(web): update mailserver-admin to 5.9.0
1 parent 5d7278e commit da9339b

9 files changed

Lines changed: 8 additions & 51 deletions

File tree

.github/bin/create_banner.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ REVISION="$1"
1111
VERSION="$2"
1212
TARGETS="filter mda mta unbound web"
1313

14+
echo "Creating version hint for mailserver-admin.."
15+
mkdir -p target/web/rootfs/opt/admin/
16+
echo "${VERSION}" >target/web/rootfs/opt/admin/DMS-VERSION
17+
1418
for TARGET in $TARGETS; do
1519
echo "Creating banner for $TARGET container.."
1620

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
type=semver,pattern={{major}}
9292
type=sha
9393
- name: Create banner
94-
run: .github/bin/create_banner.sh ${{ github.sha }} ${{ github.ref }}
94+
run: .github/bin/create_banner.sh ${{ github.sha }} ${{ github.ref_name }}
9595
- name: Build and push Docker image
9696
if: ${{ github.event_name != 'pull_request' }}
9797
id: build-and-push

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ up: .env
4242
.PHONY: fixtures
4343
fixtures:
4444
$(COMPOSE_PRODUCTION) exec web /opt/admin/bin/console system:check --wait
45-
sleep 5 # TODO: remove when admin implemented better checks
4645
$(COMPOSE_PRODUCTION) exec web /opt/admin/bin/console domain:add example.com
4746
$(COMPOSE_PRODUCTION) exec web /opt/admin/bin/console domain:add example.org
4847
$(COMPOSE_PRODUCTION) exec web /opt/admin/bin/console user:add --admin --password=changeme --enable admin example.com

deploy/compose/web.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ services:
1919
- redis
2020
read_only: true
2121
tmpfs:
22-
- /var/www/html/autoconfig:mode=0777
2322
- /opt/admin/var/cache/prod:mode=0777
2423
- /opt/admin/var/log:mode=0777
2524
- /opt/roundcube/temp:mode=0777

deploy/kustomize/web/deployment.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ spec:
9797
- name: tmp
9898
mountPath: /opt/roundcube/logs
9999
subPath: rc-logs
100-
- name: tmp
101-
mountPath: /var/www/html/autoconfig
102-
subPath: autoconfig
103-
readOnly: true
104100
initContainers:
105101
- name: prepare-service
106102
image: jeboehm/mailserver-web:latest
@@ -142,9 +138,6 @@ spec:
142138
- name: tmp
143139
mountPath: /opt/roundcube/logs
144140
subPath: rc-logs
145-
- name: tmp
146-
mountPath: /var/www/html/autoconfig
147-
subPath: autoconfig
148141
securityContext:
149142
fsGroup: 1000
150143
fsGroupChangePolicy: OnRootMismatch

target/web/Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ ENV MYSQL_HOST=db \
1818
WEB_PHP_ADDRESS=127.0.0.1:9000 \
1919
SUPPORT_URL=https://github.com/jeboehm/docker-mailserver \
2020
MAILNAME=mail.example.com \
21-
LABEL=docker-mailserver \
22-
LABEL_SHORT=docker-mailserver \
2321
WAITSTART_TIMEOUT=1m \
2422
DATABASE_URL="mysql://%env(MYSQL_USER)%:%env(MYSQL_PASSWORD)%@%env(MYSQL_HOST)%:%env(MYSQL_PORT)%/%env(MYSQL_DATABASE)%?serverVersion=8.4" \
2523
SERVER_ROOT=/var/www/html
@@ -76,7 +74,7 @@ RUN --mount=type=cache,target=/root/.composer \
7674

7775
FROM composer AS admin-builder
7876

79-
ARG ADMIN_VER=5.8.0 # renovate: depName=jeboehm/mailserver-admin
77+
ARG ADMIN_VER=5.9.0 # renovate: depName=jeboehm/mailserver-admin
8078
WORKDIR /opt/admin
8179
RUN curl -sSLf \
8280
-o /tmp/admin.tar.gz \
@@ -90,22 +88,18 @@ FROM base AS prod
9088
WORKDIR /
9189
COPY --chown=root:root --from=roundcube-builder /opt/roundcube/ /opt/roundcube/
9290
COPY --chown=root:root --from=admin-builder /opt/admin/ /opt/admin/
93-
# TODO: Remove when autoconfig is served by admin.
94-
COPY --chown=root:root --from=ghcr.io/jeboehm/dockerize:0.9.3@sha256:d4e824aa120670658d7012421d2fdf1b2437be34a6acbb7a4ad92ed52edec8eb /bin/dockerize /usr/local/bin/dockerize
9591
COPY --chown=root:root rootfs/ /
9692

9793
RUN ln -s /opt/roundcube/public_html ${SERVER_ROOT}/webmail && \
9894
ln -s /opt/admin/public ${SERVER_ROOT}/manager
9995

10096
ARG USER=app
101-
RUN mkdir ${SERVER_ROOT}/autoconfig && \
102-
adduser -DH ${USER} && \
97+
RUN adduser -DH ${USER} && \
10398
chown -R ${USER}:${USER} \
10499
/opt/admin/var/cache/prod \
105100
/opt/admin/var/log \
106101
/opt/roundcube/logs \
107-
/opt/roundcube/temp \
108-
${SERVER_ROOT}/autoconfig
102+
/opt/roundcube/temp
109103
USER ${USER}
110104

111105
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh

target/web/rootfs/etc/frankenphp/Caddyfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ http://:8080 {
1212
root {$SERVER_ROOT}
1313
encode zstd br gzip
1414

15-
handle_path /.well-known/autoconfig/mail/* {
16-
root {$SERVER_ROOT}/autoconfig
17-
file_server
18-
}
19-
2015
handle_path /webmail* {
2116
root {$SERVER_ROOT}/webmail
2217
php_server {

target/web/rootfs/opt/autoconfig/config-v1.1.xml.templ

Lines changed: 0 additions & 23 deletions
This file was deleted.

target/web/rootfs/usr/local/lib/init.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22
# This script is used to initialize the container.
33
set -e
44

5-
dockerize \
6-
-template "/opt/autoconfig/config-v1.1.xml.templ:${SERVER_ROOT}/autoconfig/config-v1.1.xml" \
7-
/bin/true
8-
95
/usr/local/lib/init_database.sh

0 commit comments

Comments
 (0)