From f8bddc5b7c9c43b7b3ecda65bcd3dbf8605fa4e6 Mon Sep 17 00:00:00 2001 From: Nguyen Vu Hung Date: Tue, 12 Dec 2023 14:50:11 +0700 Subject: [PATCH 1/3] add xmlrpc support --- layers/xmlrpc/Dockerfile | 17 +++++++++++++++++ layers/xmlrpc/config.json | 7 +++++++ layers/xmlrpc/test.php | 8 ++++++++ 3 files changed, 32 insertions(+) create mode 100644 layers/xmlrpc/Dockerfile create mode 100644 layers/xmlrpc/config.json create mode 100644 layers/xmlrpc/test.php diff --git a/layers/xmlrpc/Dockerfile b/layers/xmlrpc/Dockerfile new file mode 100644 index 00000000..9f73fe48 --- /dev/null +++ b/layers/xmlrpc/Dockerfile @@ -0,0 +1,17 @@ +ARG PHP_VERSION +ARG BREF_VERSION +FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext + +RUN MAKEFLAGS="-j $(nproc)" && pecl install xmlrpc-1.0.0RC3 > /dev/null +RUN cp `php-config --extension-dir`/xmlrpc.so /tmp/xmlrpc.so +RUN strip --strip-debug /tmp/xmlrpc.so +RUN echo 'extension=xmlrpc.so' > /tmp/ext.ini + +# Build the final image with just the files we need +FROM scratch + +# Copy things we installed to the final image +COPY --from=ext /tmp/xmlrpc.so /opt/bref/extensions/xmlrpc.so +# This is exclusive for php bref lambda +COPY --from=ext /tmp/xmlrpc.so /opt/bref/extensions/php_xmlrpc.so +COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-xmlrpc.ini diff --git a/layers/xmlrpc/config.json b/layers/xmlrpc/config.json new file mode 100644 index 00000000..a5a35316 --- /dev/null +++ b/layers/xmlrpc/config.json @@ -0,0 +1,7 @@ +{ + "php": [ + "80", + "81", + "82" + ] +} diff --git a/layers/xmlrpc/test.php b/layers/xmlrpc/test.php new file mode 100644 index 00000000..c7cbdfba --- /dev/null +++ b/layers/xmlrpc/test.php @@ -0,0 +1,8 @@ + Date: Tue, 12 Dec 2023 15:01:45 +0700 Subject: [PATCH 2/3] update readme and pump php version --- Readme.md | 1 + layers/xmlrpc/config.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 8ca9a756..6a4a3d1e 100644 --- a/Readme.md +++ b/Readme.md @@ -98,6 +98,7 @@ functions: | UUID | `${bref-extra:uuid-php-81}` | | Xdebug | `${bref-extra:xdebug-php-81}` | | Xlswriter | `${bref-extra:xlswriter-php-81}` | +| xmlrpc | `${bref-extra:xmlrpc-php-81}` | | Yaml | `${bref-extra:yaml-php-81}` | ### Blackfire installation diff --git a/layers/xmlrpc/config.json b/layers/xmlrpc/config.json index a5a35316..eea4b0f4 100644 --- a/layers/xmlrpc/config.json +++ b/layers/xmlrpc/config.json @@ -2,6 +2,7 @@ "php": [ "80", "81", - "82" + "82", + "83" ] } From 9b475c492adae1eaed768d035127e345ce45faaa Mon Sep 17 00:00:00 2001 From: Nguyen Vu Hung Date: Tue, 12 Dec 2023 15:04:01 +0700 Subject: [PATCH 3/3] fix space --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 6a4a3d1e..9b1b58ef 100644 --- a/Readme.md +++ b/Readme.md @@ -98,7 +98,7 @@ functions: | UUID | `${bref-extra:uuid-php-81}` | | Xdebug | `${bref-extra:xdebug-php-81}` | | Xlswriter | `${bref-extra:xlswriter-php-81}` | -| xmlrpc | `${bref-extra:xmlrpc-php-81}` | +| xmlrpc | `${bref-extra:xmlrpc-php-81}` | | Yaml | `${bref-extra:yaml-php-81}` | ### Blackfire installation