Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion novosga-2.2-standalone/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM novosga/novosga:2.2.8
FROM novosga/novosga:2.2.9

#Set the default parameters
ENV APP_ENV=prod \
Expand Down Expand Up @@ -29,6 +29,7 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic

COPY start.sh /usr/local/bin
COPY consumer.sh /usr/local/bin
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/crontab /etc/crontab

Expand Down
9 changes: 9 additions & 0 deletions novosga-2.2-standalone/config/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autorestart=false
startretries=0

[program:messenger]
command=consumer.sh
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autorestart=false
startretries=0
11 changes: 11 additions & 0 deletions novosga-2.2-standalone/consumer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

echo "Setting up Messenger transports: async"
php bin/console messenger:setup-transports

while true
do
echo "Starting Messenger Consumer: async"
php bin/console messenger:consume async -vv --time-limit=3600
echo "Consumer stopped (time-limit achived)"
done
Loading