Skip to content

Commit 503c35c

Browse files
authored
Update elastic apm to version 1.8.4. (#485)
1 parent 605b7a1 commit 503c35c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

layers/elastic-apm/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
55
RUN \
66
LD_LIBRARY_PATH=/lib64:/lib yum install -y libcurl-devel openssl-devel \
77
&& mkdir /tmp/apm \
8-
&& curl -L https://github.com/elastic/apm-agent-php/archive/refs/tags/v1.8.1.tar.gz | tar -C /tmp/apm -zx --strip-components=1 \
8+
&& curl -L https://github.com/elastic/apm-agent-php/archive/refs/tags/v1.8.4.tar.gz | tar -C /tmp/apm -zx --strip-components=1 \
99
&& cd /tmp/apm/src/ext \
1010
&& phpize \
1111
&& CFLAGS="-std=gnu99" ./configure --enable-elastic_apm \
1212
&& make clean \
1313
&& make \
1414
&& make install \
15-
&& echo 'extension=elastic_apm.so' > /tmp/elastic-apm.ini
15+
&& echo 'extension=elastic_apm.so' > /tmp/elastic-apm.ini \
16+
&& echo "elastic_apm.bootstrap_php_part_file=/opt/bref/etc/elastic-apm-agent-php-src/bootstrap_php_part.php" >> /tmp/elastic-apm.ini
1617

1718
# Build the final image from the scratch image that contain files you want to export
1819
FROM scratch
1920

2021
# Copy the two key files to the correct location for the empty layer.
2122
COPY --from=ext /tmp/apm/src/ext/modules/elastic_apm.so /opt/bref/extensions/elastic_apm.so
2223
COPY --from=ext /tmp/elastic-apm.ini /opt/bref/etc/php/conf.d/elastic-apm.ini
24+
COPY --from=ext /tmp/apm/src/ /opt/bref/etc/elastic-apm-agent-php-src/

0 commit comments

Comments
 (0)