-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from shopware/add-otel
feat: add otel ready to use image
- Loading branch information
Showing
3 changed files
with
120 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#syntax=docker/dockerfile:1.4 | ||
|
||
ARG FPM_IMAGE=ghcr.io/shopware/docker-base:8.3.1-fpm | ||
|
||
FROM ${FPM_IMAGE} | ||
|
||
USER root | ||
|
||
RUN apk add --no-cache git grpc-cpp grpc-dev $PHPIZE_DEPS && \ | ||
GRPC_VERSION=$(apk info grpc -d | grep grpc | cut -d- -f2) && \ | ||
git clone --depth 1 -b v${GRPC_VERSION} https://github.com/grpc/grpc /tmp/grpc && \ | ||
cd /tmp/grpc/src/php/ext/grpc && \ | ||
phpize && \ | ||
./configure && \ | ||
make && \ | ||
make install && \ | ||
rm -rf /tmp/grpc && \ | ||
apk del --no-cache git grpc-dev $PHPIZE_DEPS && \ | ||
echo "extension=grpc.so" > /usr/local/etc/php/conf.d/grpc.ini | ||
|
||
RUN install-php-extensions opentelemetry | ||
|
||
USER www-data |
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