Skip to content

Commit 1df7427

Browse files
authored
Merge pull request #23 from devilbox/release-0.15
Fix PHP 7.3
2 parents 44e365b + 182eda1 commit 1df7427

File tree

3 files changed

+84
-5
lines changed

3 files changed

+84
-5
lines changed

Dockerfiles/mods/Dockerfile-7.2

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ RUN set -x \
236236
&& /usr/local/bin/docker-php-ext-configure xmlwriter --with-libxml-dir=/usr \
237237
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlwriter \
238238
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \
239+
&& /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \
239240
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
240241
\
241242
\

Dockerfiles/mods/Dockerfile-7.3

+42-2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ ENV BUILD_DEPS \
6868
libsodium-dev \
6969
libnghttp2-dev \
7070
libssl-dev \
71+
libhiredis-dev \
72+
cmake \
7173
libtidy-dev \
7274
libxml2-dev \
7375
libxml2-dev \
@@ -101,6 +103,7 @@ ENV RUN_DEPS \
101103
librecode0 \
102104
snmp \
103105
libnghttp2-14 \
106+
libhiredis0.13 \
104107
libtidy5 \
105108
libxslt1.1 \
106109
libzip4 \
@@ -157,7 +160,7 @@ RUN set -x \
157160
&& git clone -v https://github.com/php-memcached-dev/php-memcached /tmp/memcached \
158161
&& cd /tmp/memcached \
159162
&& git checkout master \
160-
&& phpize && ./configure --enable-memcached && make && make install \
163+
&& phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install \
161164
&& docker-php-ext-enable memcached \
162165
&& cd / && rm -rf /tmp/memcached \
163166
&& pecl install mongodb \
@@ -192,8 +195,44 @@ RUN set -x \
192195
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) soap \
193196
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \
194197
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sodium \
195-
&& pecl install swoole \
198+
&& git clone -v https://github.com/swoole/swoole-src /tmp/swoole \
199+
&& cd /tmp/swoole \
200+
&& git checkout master \
201+
&& git submodule update --init --recursive \
202+
&& cd thirdparty/hiredis \
203+
&& make -j$(getconf _NPROCESSORS_ONLN) \
204+
&& make install \
205+
&& cd ../nghttp2 \
206+
&& cmake . \
207+
&& make install \
208+
&& ldconfig \
209+
&& cd ../.. \
210+
&& phpize \
211+
&& ./configure \
212+
--enable-async-redis \
213+
--enable-openssl \
214+
--enable-thread \
215+
--enable-swoole \
216+
--enable-swoole-static \
217+
--with-swoole \
218+
--with-openssl-dir=/usr \
219+
--enable-mysqlnd \
220+
--enable-coroutine \
221+
--enable-picohttpparser \
222+
--enable-timewheel \
223+
#`--enable-hugepage` \
224+
#`--enable-asan` \
225+
#`--with-phpx-dir=` \
226+
#`--with-jemalloc-dir=/usr/include/jemalloc` \
227+
#`--enable-coroutine-postgresql` \
228+
#`--enable-http2` \
229+
#`--enable-sockets` \
230+
#`--with-libpq-dir=/usr/include/postgresql/libpq/` \
231+
&& make -j$(getconf _NPROCESSORS_ONLN) \
232+
&& make install \
233+
\
196234
&& docker-php-ext-enable swoole \
235+
&& cd / && rm -rf /tmp/swoole \
197236
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvmsg \
198237
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvsem \
199238
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sysvshm \
@@ -216,6 +255,7 @@ RUN set -x \
216255
&& /usr/local/bin/docker-php-ext-configure xmlwriter --with-libxml-dir=/usr \
217256
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xmlwriter \
218257
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) xsl \
258+
&& /usr/local/bin/docker-php-ext-configure zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip \
219259
&& /usr/local/bin/docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
220260
\
221261
\

build/ansible/group_vars/all.yml

+41-3
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ extensions_available:
718718
type: git
719719
git_url: https://github.com/php-memcached-dev/php-memcached
720720
git_ref: master
721-
command: phpize && ./configure --enable-memcached && make && make install
721+
command: phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install
722722
all:
723723
type: pecl
724724
build_dep: [zlib1g-dev, libmemcached-dev]
@@ -930,8 +930,44 @@ extensions_available:
930930
type: pecl
931931
run_dep: [libnghttp2-14]
932932
7.3:
933-
type: pecl
934-
run_dep: [libnghttp2-14]
933+
type: git
934+
git_url: https://github.com/swoole/swoole-src
935+
git_ref: master
936+
command: |
937+
git submodule update --init --recursive \
938+
&& cd thirdparty/hiredis \
939+
&& make -j$(getconf _NPROCESSORS_ONLN) \
940+
&& make install \
941+
&& cd ../nghttp2 \
942+
&& cmake . \
943+
&& make install \
944+
&& ldconfig \
945+
&& cd ../.. \
946+
&& phpize \
947+
&& ./configure \
948+
--enable-async-redis \
949+
--enable-openssl \
950+
--enable-thread \
951+
--enable-swoole \
952+
--enable-swoole-static \
953+
--with-swoole \
954+
--with-openssl-dir=/usr \
955+
--enable-mysqlnd \
956+
--enable-coroutine \
957+
--enable-picohttpparser \
958+
--enable-timewheel \
959+
#`--enable-hugepage` \
960+
#`--enable-asan` \
961+
#`--with-phpx-dir=` \
962+
#`--with-jemalloc-dir=/usr/include/jemalloc` \
963+
#`--enable-coroutine-postgresql` \
964+
#`--enable-http2` \
965+
#`--enable-sockets` \
966+
#`--with-libpq-dir=/usr/include/postgresql/libpq/` \
967+
&& make -j$(getconf _NPROCESSORS_ONLN) \
968+
&& make install \
969+
run_dep: [libnghttp2-14, libhiredis0.13]
970+
build_dep: [libnghttp2-dev, libssl-dev, libhiredis-dev, cmake]
935971
all:
936972
type: pecl
937973
build_dep: [libnghttp2-dev, libssl-dev]
@@ -1043,9 +1079,11 @@ extensions_available:
10431079
run_dep: []
10441080
7.2:
10451081
type: builtin
1082+
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip
10461083
run_dep: [libzip4]
10471084
7.3:
10481085
type: builtin
1086+
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip
10491087
run_dep: [libzip4]
10501088
all:
10511089
type: builtin

0 commit comments

Comments
 (0)