Skip to content

Commit 9914e49

Browse files
committed
Merge branch 'master' into prepare-release
# Conflicts: # layers.json
2 parents 6c71736 + a94231d commit 9914e49

File tree

16 files changed

+70
-21
lines changed

16 files changed

+70
-21
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change log
22

3+
## 1.3.3
4+
5+
- Updated Blackfire to version 1.92.2.
6+
7+
## 1.3.2
8+
9+
- Updated Blackfire to version 1.90.0.
10+
11+
## 1.3.1
12+
13+
- Update PDO sqlsrv to 5.11.1
14+
315
## 1.3.0
416

517
- Added extension SNMP

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ functions:
7777
| Newrelic | `${bref-extra:newrelic-php-81}` |
7878
| ODBC Snowflake | `${bref-extra:odbc-snowflake-php-81}` |
7979
| OpenSwoole | `${bref-extra:openswoole-php-81}` |
80+
| OpenTelemetry | `${bref-extra:opentelemetry-php-81}` |
8081
| Oracle | `${bref-extra:oci8-php-80}` |
8182
| Pcov | `${bref-extra:pcov-php-81}` |
8283
| PostgreSQL | `${bref-extra:pgsql-php-81}` |

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"latest_versions": {
33
"v0": "0.12.4",
4-
"v1": "1.3.0"
4+
"v1": "1.3.2"
55
}
66
}

layers/blackfire/versions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"80": "1.89.0",
3-
"81": "1.89.0",
4-
"82": "1.89.0"
2+
"80": "1.92.2",
3+
"81": "1.92.2",
4+
"82": "1.92.2"
55
}

layers/imagick/Dockerfile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,30 @@ RUN LD_LIBRARY_PATH= yum -y install libpng-devel libjpeg-devel lcms2-devel Image
1010

1111
# Compile libwebp since AL2 ships with v0.3, and v0.4 or higher is required to builder the other libs
1212
WORKDIR ${IMAGICK_BUILD_DIR}
13-
RUN curl -Ls -o libwebp.tar.gz https://github.com/webmproject/libwebp/archive/refs/tags/v1.3.1.tar.gz
13+
RUN curl -Ls -o libwebp.tar.gz https://github.com/webmproject/libwebp/archive/refs/tags/v1.3.2.tar.gz
1414
RUN tar xzf libwebp.tar.gz
15-
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.1
15+
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.2
1616
RUN autoreconf -i && automake && autoconf
1717
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
1818
RUN make -j $(nproc)
1919
RUN make install
2020

2121
# Compile libde265 (libheif dependency)
2222
WORKDIR ${IMAGICK_BUILD_DIR}
23-
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.12/libde265-1.0.12.tar.gz
23+
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.14/libde265-1.0.14.tar.gz
2424
RUN tar xzf libde265.tar.gz
25-
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.12
25+
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.14
2626
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
2727
RUN make -j $(nproc)
2828
RUN make install
2929

3030
# Compile libheif
3131
WORKDIR ${IMAGICK_BUILD_DIR}
32-
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.13.0/libheif-1.13.0.tar.gz
32+
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz
3333
RUN tar xzf libheif.tar.gz
34-
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.13.0
35-
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
34+
RUN mkdir ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
35+
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
36+
RUN cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ..
3637
RUN make -j $(nproc)
3738
RUN make install
3839

@@ -47,9 +48,9 @@ RUN cp bin/gs /tmp/gs
4748

4849
# Compile the ImageMagick library
4950
WORKDIR ${IMAGICK_BUILD_DIR}
50-
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-15.tar.gz
51+
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-22.tar.gz
5152
RUN tar xzf ImageMagick.tar.gz
52-
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-15
53+
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-22
5354
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --with-webp --with-heic --disable-static --with-freetype=yes
5455
RUN make -j $(nproc)
5556
RUN make install
@@ -61,6 +62,7 @@ RUN convert -list configure
6162
WORKDIR ${IMAGICK_BUILD_DIR}
6263
RUN git clone https://github.com/Imagick/imagick
6364
WORKDIR ${IMAGICK_BUILD_DIR}/imagick
65+
# TODO; update the commit hash once this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641
6466
RUN git reset --hard 28f27044e435a2b203e32675e942eb8de620ee58
6567
RUN phpize
6668
RUN ./configure --with-imagick=${INSTALL_DIR}

layers/imagick/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"php": [
33
"80",
44
"81",
5-
"82"
5+
"82",
6+
"83"
67
]
78
}

layers/newrelic/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG BREF_VERSION
33
FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
44

55
# Build the New Relic Agent - install silently
6-
ARG NEWRELIC_VERSION=10.11.0.3
6+
ARG NEWRELIC_VERSION=10.14.0.3
77
RUN \
88
curl -L https://download.newrelic.com/php_agent/archive/${NEWRELIC_VERSION}/newrelic-php5-${NEWRELIC_VERSION}-linux.tar.gz | tar -C /tmp -zx && \
99
export NR_INSTALL_USE_CP_NOT_LN=1 && \

layers/opentelemetry/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ARG PHP_VERSION
2+
ARG BREF_VERSION
3+
FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
4+
5+
RUN MAKEFLAGS="-j $(nproc)" pecl install opentelemetry-1.0.0 > /dev/null
6+
RUN cp `php-config --extension-dir`/opentelemetry.so /tmp/opentelemetry.so
7+
RUN strip --strip-debug /tmp/opentelemetry.so
8+
RUN echo 'extension=opentelemetry.so' > /tmp/ext.ini
9+
10+
# Build the final image with just the files we need
11+
FROM scratch
12+
13+
# Copy things we installed to the final image
14+
COPY --from=ext /tmp/opentelemetry.so /opt/bref/extensions/opentelemetry.so
15+
COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-opentelemetry.ini

layers/opentelemetry/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"php": [
3+
"80",
4+
"81",
5+
"82"
6+
]
7+
}

layers/opentelemetry/test.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
if (!function_exists($function = "OpenTelemetry\Instrumentation\hook")) {
4+
echo sprintf('FAIL: Function "%s" does not exist.', $function) . PHP_EOL;
5+
exit(1);
6+
}
7+
8+
exit(0);

0 commit comments

Comments
 (0)