docker-mautic icon indicating copy to clipboard operation
docker-mautic copied to clipboard

Publish v6

Open cibero42 opened this issue 8 months ago • 9 comments

Currently our expectation is to lauch the v6 container with release v6.0.2, planned for May 26th.

cibero42 avatar Apr 25 '25 09:04 cibero42

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"]

relima avatar Apr 29 '25 01:04 relima

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.

cibero42 avatar Apr 29 '25 07:04 cibero42

hello, any news on the v6 docker image?

Giattuck avatar May 28 '25 17:05 Giattuck

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.

cibero42 avatar May 28 '25 18:05 cibero42

Our estimation is that it will be released for docker until tomorrow.

cibero42 avatar May 28 '25 18:05 cibero42

thanks for the info @cibero4!

Giattuck avatar May 28 '25 18:05 Giattuck

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 ;)

cibero42 avatar May 28 '25 21:05 cibero42

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.

cibero42 avatar May 30 '25 13:05 cibero42

Thanks!

Giattuck avatar May 31 '25 09:05 Giattuck

Hello @cibero42 any update on this?

Giattuck avatar Jun 25 '25 09:06 Giattuck

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.

cibero42 avatar Jun 25 '25 21:06 cibero42

What a convenient answer, considering that there are 53 Mondays in a year...

minstandart avatar Jul 01 '25 00:07 minstandart

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!

cibero42 avatar Jul 01 '25 06:07 cibero42