From 25e017e0c4b6f356fd49992a4c81546cb0a38d85 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Mon, 21 Aug 2017 14:42:52 -0400 Subject: [PATCH] Fix pthreads php 7.2 compilation --- 7.2/Dockerfile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/7.2/Dockerfile b/7.2/Dockerfile index 85e5f00..ad5bf6e 100644 --- a/7.2/Dockerfile +++ b/7.2/Dockerfile @@ -3,15 +3,23 @@ LABEL maintainer "Tony Blyler " # FIXME get xdebug working for PHP 7.2 (not officially supported yet) # pecl install xdebug -RUN pecl install pthreads && \ - docker-php-ext-install pcntl sockets && \ - docker-php-ext-enable pthreads && \ - # docker-php-ext-enable xdebug && \ - apt-get update && \ +RUN apt-get update && \ apt-get install -y \ git \ wget \ - openssh-client + openssh-client && \ + # pthreads install since pecl seems jacked up + git clone --depth=1 https://github.com/krakjoe/pthreads -b master /tmp/pthreads && \ + cd /tmp/pthreads && \ + phpize && \ + ./configure && \ + make && \ + make install && \ + cd - && \ + rm -Rf /tmp/pthreads && \ + docker-php-ext-install pcntl sockets && \ + docker-php-ext-enable pthreads + # docker-php-ext-enable xdebug ENTRYPOINT ["docker-php-entrypoint"] CMD ["php", "-a"]