forked from brefphp/extra-php-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
189 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ | ||
"memcached-php-73": "58d2102c602ff849734a57c255d70657", | ||
"amqp-php-73": "26446b9824c8bb7af006664437fb09b8" | ||
"blackfire-php-74": "d84b2d7f3e290237a40994e2d758fb05", | ||
"amqp-php-74": "a77a771d9fbdb85c3733be399fe1d674", | ||
"xdebug-php-74": "943b56db0f477f0be019318338f84dcb", | ||
"blackfire-php-72": "41ee2abc51d6645b451b1ca712b989eb", | ||
"blackfire-php-73": "b8c9548691e517c73aa9342fc17d7a85", | ||
"amqp-php-72": "5f7a99b816afb6f8135b0c03d047a45f", | ||
"xdebug-php-72": "44d5a532fcb4a54ac4d9b2d6f1337c92", | ||
"xdebug-php-73": "4918003f160dd65986f5247d283846d4", | ||
"amqp-php-73": "32a6249787c6d087a8d7f9ee1576cb51" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG PHP_VERSION | ||
FROM bref/build-php-$PHP_VERSION AS ext | ||
|
||
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;")-zts \ | ||
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \ | ||
&& mkdir -p /tmp/blackfire \ | ||
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \ | ||
&& cp /tmp/blackfire/blackfire-*.so /tmp/blackfire.so \ | ||
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz | ||
|
||
|
||
# Build the final image from the lambci image that is close to the production environment | ||
FROM lambci/lambda:provided | ||
|
||
# Copy things we installed to the final image | ||
COPY --from=ext /tmp/blackfire.so /opt/bref-extra/blackfire.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
ARG PHP_VERSION | ||
FROM bref/build-php-$PHP_VERSION AS ext | ||
|
||
RUN LD_LIBRARY_PATH= yum install -y php-pecl-memcached | ||
RUN pecl install xdebug | ||
RUN cp `php-config --extension-dir`/xdebug.so /tmp/xdebug.so | ||
|
||
# Build the final image from the lambci image that is close to the production environment | ||
FROM lambci/lambda:provided | ||
|
||
# Copy things we installed to the final image | ||
COPY --from=ext /usr/lib64/php/modules/memcached.so /opt/bref/lib/php/extensions/no-debug-zts-20180731/memcached.so | ||
COPY --from=ext /tmp/xdebug.so /opt/bref-extra/xdebug.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters