Skip to content

Fix CI #1237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 8, 2022
Merged

Fix CI #1237

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
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -47,6 +47,7 @@
"influxdb/influxdb-php": "^1.14",
"datadog/php-datadogstatsd": "^1.3",
"guzzlehttp/guzzle": "^7.0.1",
"guzzlehttp/psr7": "^1.0",
"php-http/discovery": "^1.13",
"voryx/thruway-common": "^1.0.1",
"react/dns": "^1.4",
32 changes: 22 additions & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -22,13 +22,22 @@ RUN set -x && \
php${PHP_VERSION}-xml \
php${PHP_VERSION}-mysql \
php${PHP_VERSION}-curl \
libgearman-dev \
php-pear \
make \
g++ \
unzip \
&& \
pecl channel-update pecl.php.net && \
pecl install gearman && \
update-alternatives --install /usr/bin/php php /usr/bin/php${PHP_VERSION} 100

## gearman
RUN set -x && \
apt-get install -y --no-install-recommends --no-install-suggests \
libgearman-dev \
&& \
mkdir -p $HOME/gearman && \
cd $HOME/gearman && \
git clone https://github.com/php/pecl-networking-gearman.git . && \
git checkout gearman-2.1.0 && \
phpize && ./configure && make && make install && \
if [ ! -f /etc/php/${PHP_VERSION}/cli/conf.d/20-gearman.ini ]; then \
echo "extension=gearman.so" > /etc/php/${PHP_VERSION}/cli/conf.d/20-gearman.ini && \
echo "extension=gearman.so" > /etc/php/${PHP_VERSION}/fpm/conf.d/20-gearman.ini \
@@ -37,16 +46,19 @@ RUN set -x && \

## librdkafka
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
g++ \
&& \
mkdir -p $HOME/librdkafka && \
cd $HOME/librdkafka && \
git clone https://github.com/edenhill/librdkafka.git . && \
git checkout v1.0.0 && \
./configure && make && make install && \
pecl install rdkafka && \
./configure && make && make install

## php-rdkafka
RUN set -x && \
mkdir -p $HOME/php-rdkafka && \
cd $HOME/php-rdkafka && \
git clone https://github.com/arnaud-lb/php-rdkafka.git . && \
git checkout 5.0.1 && \
phpize && ./configure && make all && make install && \
echo "extension=rdkafka.so" > /etc/php/${PHP_VERSION}/cli/conf.d/10-rdkafka.ini && \
echo "extension=rdkafka.so" > /etc/php/${PHP_VERSION}/fpm/conf.d/10-rdkafka.ini

2 changes: 1 addition & 1 deletion docker/thruway/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM makasim/nginx-php-fpm:latest-all-exts
FROM makasim/nginx-php-fpm:7.4-all-exts

RUN mkdir -p /thruway
WORKDIR /thruway