Docker composer is in bin but not working
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.
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
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.
Hello, we'll have a look on supporting Composer once other issues are fixed.