Skip to content

Commit

Permalink
adding amqp
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Jul 2, 2019
1 parent 8def0d7 commit 9be5175
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,24 @@ ENV QUEUE_CONNECTION=redis
ENV QUEUE_NAME=default
ENV LARAVEL_HORIZON=false

RUN apk add --no-cache coreutils sqlite-dev libxml2-dev curl-dev gmp-dev icu-dev libpng-dev jpeg-dev freetype-dev autoconf imagemagick-dev gcc libc-dev libzip-dev rabbitmq-c-dev make libtool \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include \
&& docker-php-ext-install -j$(nproc) bcmath pdo pdo_mysql pdo_sqlite mbstring json xml zip curl gmp intl gd soap sockets \
&& pecl install imagick \
&& pecl install amqp \
&& docker-php-ext-enable imagick

ADD https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 /usr/local/bin/confd

RUN chmod +x /usr/local/bin/confd \
&& apk add --no-cache sqlite libxml2 curl gmp icu libpng jpeg freetype libzip imagemagick gcc ssmtp rabbitmq-c \
# Fix alpine iconv problems part 1
# See https://github.com/docker-library/php/issues/240
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community gnu-libiconv \
&& docker-php-ext-enable bcmath pdo pdo_mysql pdo_sqlite mbstring json xml zip curl gmp intl gd imagick soap amqp sockets

# Install pdo if you want to use database queue and install supervisor
RUN docker-php-ext-install bcmath pdo pdo_mysql pcntl posix \
&& pecl install amqp && docker-php-ext-enable amqp \
&& apk add --update supervisor && rm -rf /tmp/* /var/cache/apk/*
RUN apk add --update supervisor && rm -rf /tmp/* /var/cache/apk/*

# Define working directory
WORKDIR /etc/supervisor/conf.d
Expand Down

0 comments on commit 9be5175

Please sign in to comment.