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

Docker composer is in bin but not working

Open brianroyce opened this issue 1 year ago • 1 comments

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.

brianroyce avatar Apr 16 '24 10:04 brianroyce

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

O-Mutt avatar Jul 19 '24 11:07 O-Mutt

Hey there! I'm helping the new maintainers of this repository. It was neglected for some time but that changes now! Could you please re-test if you are still getting this issue so we could focus our limited time on the issues that are still relevant? If there will be no response we'll close this issue in 1 week. It can always be re-opened later on.

IonutOjicaDE avatar Apr 15 '25 16:04 IonutOjicaDE

Hello, we'll have a look on supporting Composer once other issues are fixed.

cibero42 avatar Apr 17 '25 13:04 cibero42