Publish v6
Currently our expectation is to lauch the v6 container with release v6.0.2, planned for May 26th.
this is the dockerfile I am using for v6. you will also need a mysql server.
Single-stage Dockerfile for Mautic 6
FROM php:8.3-apache
——— Base OS + build deps ——————————————————————————————
RUN apt-get update && apt-get install -y --no-install-recommends
nano git curl unzip zip cron supervisor mariadb-client
nodejs npm
libpng-dev libjpeg-dev libfreetype6-dev libwebp-dev \
libonig-dev libxml2-dev libzip-dev libicu-dev
libssl-dev libkrb5-dev libc-client-dev libsasl2-dev libsasl2-modules
libcurl4-openssl-dev librabbitmq-dev \
imagemagick graphicsmagick libtiff-dev libgif-dev libxpm-dev \
&& rm -rf /var/lib/apt/lists/*
——— PHP extensions ————————————————————————————————
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install pdo_mysql mbstring zip exif pcntl bcmath gd sockets imap intl opcache
&& pecl install amqp && docker-php-ext-enable amqp
——— Locale / timezone ——————————————————————————————
ENV TZ=America/Sao_Paulo RUN ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime && echo "${TZ}" > /etc/timezone
PHP-ini values are env-driven like the upstream image ### NEW
ENV PHP_INI_VALUE_DATE_TIMEZONE="${TZ}"
PHP_INI_VALUE_MEMORY_LIMIT=512M
PHP_INI_VALUE_UPLOAD_MAX_FILESIZE=512M
PHP_INI_VALUE_POST_MAX_FILESIZE=512M
PHP_INI_VALUE_MAX_EXECUTION_TIME=300
Install Composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
ENV PHP_INI_VALUE_DATE_TIMEZONE=UTC PHP_INI_VALUE_MEMORY_LIMIT=512M PHP_INI_VALUE_UPLOAD_MAX_FILESIZE=512M PHP_INI_VALUE_POST_MAX_FILESIZE=512M PHP_INI_VALUE_MAX_EXECUTION_TIME=300
WORKDIR /var/www/html
RUN composer create-project mautic/recommended-project:^6 . --no-interaction
&& composer require symfony/mailer symfony/sendgrid-mailer --no-interaction
——— Apache setup ——————————————————————————————————————
ENV APACHE_DOCUMENT_ROOT=/var/www/html/docroot
RUN sed -ri "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g"
/etc/apache2/sites-available/*.conf
/etc/apache2/apache2.conf
RUN a2enmod rewrite # Mautic’s .htaccess depends on it
Permissions (no change)
RUN chown -R www-data:www-data /var/www/html
&& chmod -R 0777 /var/www/html
CMD ["apache2-foreground"]
Hello @relima ,
Thank you for the help!
We'll start looking at this as soon as we finish establishing some processes and fixing critical bugs that are affecting v5.
hello, any news on the v6 docker image?
hello, any news on the v6 docker image?
Hello, there was a delay on the release of v6.0.2 and, consequently, a delay on the Docker side.
V6.0.2 was published 2 hours ago, and we still need to perform some validations.
Our estimation is that it will be released for docker until tomorrow.
thanks for the info @cibero4!
Hello @Giattuck,
I'll work on tests for v6 after merging #374. It brings multiple changes on the Dockerfiles, so I prefer to implement and test that first. My estimation from my previous comment still holds ;)
Hello,
After executing some tests yesterday, we found a bug that would bring multiple problems when running v6. We're going to work on it on the next days.
I'll keep this thread updated.
Thanks!
Hello @cibero42 any update on this?
Hello @Giattuck ,
I've talked with @RCheesley and we agreed on releasing v6 just after 6.0.3, scheduled for Monday.
I'll keep this thread updated.
What a convenient answer, considering that there are 53 Mondays in a year...
Hello everyone,
6.0.3 couldn't be released yesterday, and it should be released today.
The docker team can only publish v6 once 6.0.3 is released through Composer's recommended project (since that's our dependency).
Thank you for your patience!