Skip to content

Commit 89c01cb

Browse files
committed
feat: php8.4 no newrelic
1 parent 88c015c commit 89c01cb

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

Dockerfile

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Container Base
2-
FROM php:8.3-apache
2+
FROM php:8.4-apache
33

44
ENV \
55
NR_ENABLED=false \
66
NR_APP_NAME="" \
77
NR_LICENSE_KEY="" \
88
NR_VERSION="" \
9-
PHP_BUILD_DATE="20211130" \
109
PHP_OPCACHE_ENABLED=false \
1110
SESSION_HANDLER=false \
1211
SESSION_HANDLER_NAME="" \
@@ -15,8 +14,9 @@ ENV \
1514
XDEBUG_CONNECT_BACK=true \
1615
XDEBUG_ENABLED=false \
1716
XDEBUG_IDEKEY="docker" \
18-
XDEBUG_VERSION="-3.3.2" \
19-
REDIS_VERSION="-5.3.7" \
17+
XDEBUG_VERSION="-3.4.0beta1" \
18+
REDIS_VERSION="-6.1.0" \
19+
IMAP_VERSION="" \
2020
XDEBUG_REMOTE_PORT=9000 \
2121
PHP_EXTENSION_WDDX=1 \
2222
PHP_OPENSSL=1 \
@@ -32,8 +32,11 @@ RUN a2enmod rewrite unique_id headers
3232

3333
RUN docker-php-ext-configure gd --with-jpeg \
3434
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
35-
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
36-
&& docker-php-ext-install -j$(nproc) bcmath gd pdo_mysql calendar exif gettext shmop soap sockets intl pcntl xsl ldap imap ftp
35+
&& docker-php-ext-install -j$(nproc) bcmath gd pdo_mysql calendar exif gettext shmop soap sockets intl pcntl xsl ldap ftp
36+
37+
RUN echo "---> Adding IMAP" && \
38+
pecl install imap${IMAP_VERSION} && \
39+
docker-php-ext-enable imap
3740

3841
RUN echo "---> Adding Redis" && \
3942
pecl install redis${REDIS_VERSION} && \
@@ -59,22 +62,24 @@ RUN echo "---> Configure Opcache" && \
5962
echo "opcache.enable=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
6063
echo "opcache.enable_cli=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
6164

62-
RUN echo "---> Adding NewRelic" && \
63-
apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests gnupg2 \
64-
&& echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list \
65-
&& wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - \
66-
&& sudo apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests newrelic-php5 \
67-
&& NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 newrelic-install install \
68-
&& chown www-data:www-data /usr/local/etc/php/conf.d/newrelic.ini && chmod a+rw /usr/local/etc/php/conf.d/newrelic.ini \
69-
&& apt-get remove -y gnupg2 && rm -rf /var/lib/apt/lists/* \
70-
&& echo "newrelic.distributed_tracing_enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
71-
&& echo "newrelic.application_logging.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
72-
&& echo "newrelic.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
73-
7465
RUN echo "---> Adding Tini" && \
7566
wget -O /tini https://github.com/krallin/tini/releases/download/v0.18.0/tini-static && \
7667
chmod +x /tini
7768

69+
# reativar quando liberar
70+
# RUN echo "---> Adding NewRelic" && \
71+
# apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests gnupg2 \
72+
# && echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list \
73+
# && wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - \
74+
# && sudo apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests newrelic-php5 \
75+
# && NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 newrelic-install install \
76+
# && cp /usr/lib/newrelic-php5/scripts/newrelic.ini.template /usr/local/etc/php/conf.d/newrelic.ini \
77+
# && chown www-data:www-data /usr/local/etc/php/conf.d/newrelic.ini && chmod a+rw /usr/local/etc/php/conf.d/newrelic.ini \
78+
# && apt-get remove -y gnupg2 && rm -rf /var/lib/apt/lists/* #\
79+
# && echo "newrelic.distributed_tracing_enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
80+
# && echo "newrelic.application_logging.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
81+
# && echo "newrelic.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
82+
7883
RUN echo "---> Config sudoers" && \
7984
echo "www-data ALL = ( ALL ) NOPASSWD: ALL" >> /etc/sudoers
8085

0 commit comments

Comments
 (0)