File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,21 +13,6 @@ RUN git fetch \
1313 cp "$EXTENSION_DIR/uv.so" /uv.so
1414RUN sha256sum /uv.so
1515
16- ## Build ext-meminfo
17- FROM php:7.4-cli-alpine3.11 AS build-meminfo
18- RUN apk update && \
19- apk add --no-cache $PHPIZE_DEPS git libuv-dev && \
20- git clone https://github.com/tony2001/php-meminfo.git && \
21- cd php-meminfo && \
22- git checkout -b php74_support origin/php74_support
23- WORKDIR /php-meminfo/extension/php7
24- RUN phpize
25- RUN ./configure --enable-meminfo
26- RUN make install
27- RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
28- cp "$EXTENSION_DIR/meminfo.so" /meminfo.so
29- RUN sha256sum /meminfo.so
30-
3116FROM php:7.4-cli-alpine3.11 AS nts-root
3217
3318# Build-time metadata as defined at http://label-schema.org
@@ -98,15 +83,7 @@ RUN touch /.you-are-in-a-wyrihaximus.net-php-docker-image-dev
9883# Install docker help scripts
9984COPY src/php/utils/docker/ /usr/local/bin/
10085
101- RUN true
102- # Copy in meminfo extension
103- COPY --from=build-meminfo /meminfo.so /meminfo.so
104- RUN true
105-
106- RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` \
107- && mv /*.so "$EXTENSION_DIR/" \
108- && if [ $(php -v | grep 7.4 | wc -l) != 0 ] ; then rm "$EXTENSION_DIR/meminfo.so"; else docker-php-ext-enable meminfo; fi \
109- && apk add --no-cache \
86+ RUN apk add --no-cache \
11087 make \
11188 git \
11289 openssh-client \
Original file line number Diff line number Diff line change @@ -13,21 +13,6 @@ RUN git fetch \
1313 cp "$EXTENSION_DIR/uv.so" /uv.so
1414RUN sha256sum /uv.so
1515
16- ## Build ext-meminfo
17- FROM php:7.4-zts-alpine3.11 AS build-meminfo
18- RUN apk update && \
19- apk add --no-cache $PHPIZE_DEPS git libuv-dev && \
20- git clone https://github.com/tony2001/php-meminfo.git && \
21- cd php-meminfo && \
22- git checkout -b php74_support origin/php74_support
23- WORKDIR /php-meminfo/extension/php7
24- RUN phpize
25- RUN ./configure --enable-meminfo
26- RUN make install
27- RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
28- cp "$EXTENSION_DIR/meminfo.so" /meminfo.so
29- RUN sha256sum /meminfo.so
30-
3116FROM php:7.4-zts-alpine3.11 AS zts-root
3217
3318# Build-time metadata as defined at http://label-schema.org
@@ -105,15 +90,7 @@ RUN touch /.you-are-in-a-wyrihaximus.net-php-docker-image-dev
10590# Install docker help scripts
10691COPY src/php/utils/docker/ /usr/local/bin/
10792
108- RUN true
109- # Copy in meminfo extension
110- COPY --from=build-meminfo /meminfo.so /meminfo.so
111- RUN true
112-
113- RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` \
114- && mv /*.so "$EXTENSION_DIR/" \
115- && if [ $(php -v | grep 7.4 | wc -l) != 0 ] ; then rm "$EXTENSION_DIR/meminfo.so"; else docker-php-ext-enable meminfo; fi \
116- && apk add --no-cache \
93+ RUN apk add --no-cache \
11794 make \
11895 git \
11996 openssh-client \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,19 +21,3 @@ def test_configuration_is_not_effective(host):
2121 configuration = host .run ('php -i' ).stdout
2222
2323 assert u'expose_php => Off => Off' in configuration
24-
25- @pytest .mark .php_dev
26- def test_php_meminfo_is_enabled (host ):
27- output = host .run ('if [ $(php -v | grep 7.4 | wc -l) != 0 ] ; then php -r "echo(\' meminfo\' );"; else php -r "exit(function_exists(\' meminfo_dump\' ) ? 0 : 255);"; fi' )
28- assert output .rc == 0
29-
30- @pytest .mark .php_no_dev
31- def test_php_meminfo_is_not_enabled (host ):
32- output = host .run ('php -r "exit(function_exists(\' meminfo_dump\' ) ? 0 : 255);"' )
33- assert output .rc == 255
34-
35- @pytest .mark .php_dev
36- def test_php_ext_meminfo_is_functional (host ):
37- output = host .run ('if [ $(php -v | grep 7.4 | wc -l) != 0 ] ; then php -r "echo(\' meminfo\' );"; else php /tests/container/functional/meminfo.php; fi' )
38- assert output .stdout == 'meminfo'
39- assert output .rc == 0
Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ def test_gmp_is_loaded(host):
2020def test_iconv_is_loaded (host ):
2121 assert 'iconv' in host .run ('php -m' ).stdout
2222
23- @pytest .mark .php_dev
24- def test_meminfo_is_loaded (host ):
25- assert 'meminfo' in host .run ('if [ $(php -v | grep 7.4 | wc -l) != 0 ] ; then echo "meminfo"; else php -m; fi' ).stdout
26-
2723@pytest .mark .php_zts
2824def test_parallel_is_loaded (host ):
2925 assert 'parallel' in host .run ('php -m' ).stdout
You can’t perform that action at this time.
0 commit comments