Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created January 10, 2023 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadoz/8644e6d4d3387646444ecb25aba5a7af to your computer and use it in GitHub Desktop.
Save ziadoz/8644e6d4d3387646444ecb25aba5a7af to your computer and use it in GitHub Desktop.
Tideways PHP Extension on ARM64 Alpine Linux
FROM php:8.1-fpm-alpine
ARG TIDEWAYS_EXTENSION_VERSION=5.5.12
ARG TIDEWAYS_PHP_VERSION=8.0
ARG TIDEWAYS_PHP_EXTVER=20200930
RUN wget "https://tideways.s3-eu-west-1.amazonaws.com/extension/${TIDEWAYS_EXTENSION_VERSION}/tideways-php-${TIDEWAYS_EXTENSION_VERSION}-alpine-arm64.tar.gz" && \
tar xvzf tideways-php-${TIDEWAYS_EXTENSION_VERSION}-alpine-arm64.tar.gz && \
cp ./build/dist/tideways-php-alpine-${TIDEWAYS_PHP_VERSION}.so /usr/local/lib/php/extensions/no-debug-non-zts-${TIDEWAYS_PHP_EXTVER}/tideways.so && \
rm -rf tideways-php-${TIDEWAYS_EXTENSION_VERSION}-alpine-arm64.tar.gz ./build
COPY tideways.ini "$PHP_INI_DIR/conf.d/40-tideways.ini"
extension=tideways
tideways.connection="tcp://tideways:9135"
tideways.api_key=xxxxxx
tideways.sample_rate=25
tideways.service=app
tideways.log_level=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment