Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description
FROM php:7.0.6-alpine

RUN curl -A 'Docker' -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/70 \
    && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
    && mv /tmp/blackfire-*.so `php -r "echo ini_get('extension_dir');"`/blackfire.so \
    && echo "extension=blackfire.so" > $PHP_INI_DIR/conf.d/blackfire.ini \
    && echo "blackfire.agent_socket=tcp://blackfire:8707" >> $PHP_INI_DIR/conf.d/blackfire.ini

# Trigger php startup error
RUN php -v

# See the file exists, but root isnt owner
RUN ls -lah `php -r "echo ini_get('extension_dir');"`

# Try chown to root
RUN chown root:root /usr/local/lib/php/extensions/no-debug-non-zts-20151012/blackfire.so

# Error persists
RUN php -v

# Try ldd -d (it fails)
RUN ldd -d /usr/local/lib/php/extensions/no-debug-non-zts-20151012/blackfire.so || true

# Try ldd
RUN ldd /usr/local/lib/php/extensions/no-debug-non-zts-20151012/blackfire.so || true

# User ids
RUN id root
RUN id www-data
Docker Pull Command
Owner
worldia