File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,20 @@ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
55RUN \
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
1819FROM scratch
1920
2021# Copy the two key files to the correct location for the empty layer.
2122COPY --from=ext /tmp/apm/src/ext/modules/elastic_apm.so /opt/bref/extensions/elastic_apm.so
2223COPY --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/
You can’t perform that action at this time.
0 commit comments