This repository has been archived by the owner on Jan 8, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 6. Consuming the messages in PHP
- Loading branch information
Niels van der Molen
committed
Oct 30, 2018
1 parent
b41bf9d
commit 480cb2c
Showing
6 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
FROM nginx:latest | FROM nginx:latest | ||
COPY ./build/nginx/default.conf /etc/nginx/conf.d/ | COPY ./build/nginx/default.conf /etc/nginx/conf.d/ | ||
COPY . /var/www/project | COPY project/ /var/www/project |
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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
FROM php:fpm | |||
RUN apt-get update && apt-get install -y --no-install-recommends \ | |||
git \ | |||
zlib1g-dev \ | |||
libxml2-dev \ | |||
librabbitmq-dev \ | |||
&& docker-php-ext-install \ | |||
pdo_mysql \ | |||
zip \ | |||
&& pecl install amqp \ | |||
&& docker-php-ext-enable amqp # Enable the Extension | |||
|
|||
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer | |||
COPY project/ /var/www/project | |||
COPY build/php-consume/ /var/www/scripts/ | |||
WORKDIR /var/www/project/ | |||
ENTRYPOINT ["bash", "/var/www/scripts/message_script.sh"] |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
#!/usr/bin/env bash | |||
sleep 10; | |||
/var/www/project/bin/console messenger:consume-messages >&1; |
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
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