Skip to content

Commit eaffb7d

Browse files
committed
Merge branch 'php8dot1' of github.com:moveis-simonetti/php-apache-oci8-composer into php8dot2
2 parents 5470276 + 52bacad commit eaffb7d

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ ENV \
1818
XDEBUG_VERSION="-3.2.1" \
1919
XDEBUG_REMOTE_PORT=9000 \
2020
PHP_EXTENSION_WDDX=1 \
21-
PHP_OPENSSL=1
22-
23-
ENV CONTAINER_STARTED_LOCK=/var/lock/container.starting
21+
PHP_OPENSSL=1 \
22+
CONTAINER_STARTED_LOCK=/var/lock/container.starting
2423

2524
RUN apt-get update && apt-get install -y --no-install-recommends wget vim supervisor libfreetype6-dev libjpeg-dev libjpeg62-turbo-dev \
2625
libmcrypt-dev libpng-dev libssl-dev libaio1 git libcurl4-openssl-dev libxslt-dev \
2726
libldap2-dev libicu-dev libc-client-dev libkrb5-dev libsqlite3-dev libedit-dev \
2827
sudo zlib1g zlib1g-dev libzip4 libzip-dev zip unzip librabbitmq-dev musl-dev && \
2928
rm -rf /var/lib/apt/lists/*
3029

31-
RUN a2enmod rewrite unique_id
30+
RUN a2enmod rewrite unique_id headers
3231

3332
RUN docker-php-ext-configure gd --with-jpeg \
3433
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
@@ -84,6 +83,7 @@ RUN echo "---> Fix permissions" \
8483
&& mkdir /var/www/.composer && chown -R www-data:www-data /var/www/.composer
8584

8685
COPY configs/ports.conf /etc/apache2/ports.conf
86+
COPY configs/headers.conf /etc/apache2/conf-enabled/headers.conf
8787
COPY configs/logs.conf /etc/apache2/conf-enabled/logs.conf
8888
COPY configs/php-errors.ini /usr/local/etc/php/conf.d/php-errors.ini
8989
COPY apache-run.sh /usr/bin/apache-run

bin/newrelic-setup

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ if [[ ${NR_ENABLED} == true ]]; then
44
sed -i -e "s/"REPLACE_WITH_REAL_KEY"/${NR_LICENSE_KEY}/g" /usr/local/etc/php/conf.d/newrelic.ini
55
sed -i -e "s/PHP Application/${NR_APP_NAME}/g" /usr/local/etc/php/conf.d/newrelic.ini
66
echo "newrelic.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
7+
8+
if [[ ${NR_DISTRIBUTED_TRACING_ENABLED} == true ]]; then
9+
echo "newrelic.distributed_tracing_enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
10+
fi
11+
12+
if [[ ${NR_APPLICATION_LOGGING_ENABLED} == true ]]; then
13+
echo "newrelic.application_logging.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
14+
fi
15+
716
else
817
echo "newrelic.enabled = false" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
918
fi

configs/headers.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Header append X-Request-UID "%{UNIQUE_ID}e"

0 commit comments

Comments
 (0)