Open brianroyce opened 7 months ago
For what it's worth this is where I am at on similar work:
You would create a new Dockerfile and set the docker-compose (if you're using compose) to build it
FROM mautic/mautic:5-fpm
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
git \
nodejs \
npm
# install your symfony transport here
RUN cd /var/www/html && \
COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_PROCESS_TIMEOUT=10000 composer require symfony/amazon-mailer
RUN rm -rf /var/www/html/var/cache/js && \
find /var/www/html/node_modules -mindepth 1 -maxdepth 1 -not \( -name 'jquery' -or -name 'vimeo-froogaloop2' \) | xargs rm -rf
# clean up apt installed git node npm
RUN apt-get remove -y git nodejs npm
# cleanup apt cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# cleanup composer and composer cache
RUN rm -rf /root/.composer
# remove composer
RUN rm -rf /usr/bin/composer
So, the composer does not work on Docker, and you can not install Symfony Transports. However, it is not working, and I cannot update the container. Would you happen to have any updates on this? I discovered this issue because I was trying to get Sendgrid set up. I was using Portainer to run this, but I can't get Symfony to install it.