This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace App\Message\Interfaces; | |
interface Message | |
{ | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Message\Interfaces; | |
interface Mailer extends Message | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Message; | |
use App\Message\Interfaces\Mailer; | |
class ConfirmCommandMailer implements Mailer | |
{ | |
/** | |
* @var int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\Messenger\MessageBusInterface; | |
use App\Message\ConfirmCommandMailer; | |
class CommandController extends Controller | |
{ | |
/** | |
* @var MessageBusInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Message\Handler; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Symfony\Component\Messenger\MessageBusInterface; | |
use App\Message\ConfirmCommandMailer; | |
use \Swift_Mailer; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App\Message\Handler\ConfirmCommandMailerHandler: | |
tags: ['messenger.message_handler'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:amqp_mailer] | |
command=php /symfony/bin/console messenger:consume-messages amqp_mailer | |
startsecs = 0 | |
stdout_logfile=/tmp/supervisord-amqp.log | |
stdout_logfile_maxbytes=10MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2 | |
# Composer | |
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | |
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \ | |
&& php composer-setup.php --install-dir=/bin --filename=composer \ | |
&& php -r "unlink('composer-setup.php');" | |
# amqp | |
RUN apt-get update && apt-get install -y librabbitmq-dev libssh-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
worker_mailer: | |
image: ma-super-image-de-worker:latest | |
environment: | |
- QUEUE_NAME=amqp_mailer | |
volumes: | |
- "/PATH/VERS/MON/APP/SF:/app:rw" | |
deploy: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker save jonbaldie/varnish -o layers.tar | |
tar xvjf layers.tar | |
cd c06fe384a155fd3501bdb5689a4d79a18c80a63243038184f457793490b7ddde | |
tar xvjf layer.tar | |
cat install.sh |