|
1 | 1 | FROM alpine:3.17 |
2 | 2 |
|
3 | | -ARG ATATUS_VERSION=1.14.0 |
4 | | -ARG ATATUS_ENABLED=FALSE |
| 3 | +ARG ATATUS_VERSION=1.15.0 |
| 4 | +ARG ATATUS_ENABLED=TRUE |
5 | 5 |
|
6 | 6 | ENV \ |
7 | | - # Disable atatus at runtime |
8 | | - ATATUS_ENABLED=FALSE \ |
9 | 7 | # When using Composer, disable the warning about running commands as root/super user |
10 | 8 | COMPOSER_ALLOW_SUPERUSER=1 \ |
11 | 9 | # Persistent runtime dependencies |
@@ -156,16 +154,16 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \ |
156 | 154 | && mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \ |
157 | 155 | && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz |
158 | 156 |
|
159 | | -#RUN if [ "$ATATUS_ENABLED" == "TRUE" ]; then \ |
160 | | -# # Atatus |
161 | | -# architecture=$(case $(uname -m) in i386 | i686 | x86) echo "i386" ;; x86_64 | amd64) echo "x64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "x64" ;; esac) && \ |
162 | | -# wget https://s3.amazonaws.com/atatus-artifacts/atatus-php/downloads/atatus-php-$ATATUS_VERSION-$architecture-musl.tar.gz && tar -xzvf atatus-php-$ATATUS_VERSION-$architecture-musl.tar.gz && cd atatus-php-$ATATUS_VERSION-$architecture-musl && ./install.sh && rm -f /atatus-php-$ATATUS_VERSION-$architecture-musl.tar.gz && rm -rf /atatus-php-$ATATUS_VERSION-$architecture-musl && \ |
163 | | -# sed -i -e 's#atatus.trace.response_time = 2000#atatus.trace.response_time = 1500#g' /etc/php/current/conf.d/atatus.ini && \ |
164 | | -# sed -i -e 's#atatus.collector.pidfile = "/var/run/atatus-php-collector.pid"#atatus.collector.pidfile = "/run/atatus-php-collector.pid"#g' /etc/php/current/conf.d/atatus.ini && \ |
165 | | -# sed -i -e 's#atatus.collector.connection = "/tmp/.atatus.sock"#atatus.collector.connection = "/run/atatus.sock"#g' /etc/php/current/conf.d/atatus.ini && \ |
166 | | -# # Write log files to stdout |
167 | | -# rm -f /var/log/atatus/agent.log && rm -f /var/log/atatus/collector.log && rm -f /var/log/atatus/debug.txt && ln -sf /dev/null /var/log/atatus/agent.log && ln -sf /dev/null /var/log/atatus/collector.log && ln -sf /dev/null /var/log/atatus/debug.txt; \ |
168 | | -# fi |
| 157 | +RUN if [ "$ATATUS_ENABLED" == "TRUE" ]; then \ |
| 158 | + # Atatus |
| 159 | + architecture=$(case $(uname -m) in i386 | i686 | x86) echo "i386" ;; x86_64 | amd64) echo "x64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "x64" ;; esac) && \ |
| 160 | + wget https://s3.amazonaws.com/atatus-artifacts/atatus-php/downloads/atatus-php-$ATATUS_VERSION-$architecture-musl.tar.gz && tar -xzvf atatus-php-$ATATUS_VERSION-$architecture-musl.tar.gz && cd atatus-php-$ATATUS_VERSION-$architecture-musl && ./install.sh && rm -f /atatus-php-$ATATUS_VERSION-$architecture-musl.tar.gz && rm -rf /atatus-php-$ATATUS_VERSION-$architecture-musl && \ |
| 161 | + sed -i -e 's#atatus.trace.response_time = 2000#atatus.trace.response_time = 1500#g' /etc/php/current/conf.d/atatus.ini && \ |
| 162 | + sed -i -e 's#atatus.collector.pidfile = "/var/run/atatus-php-collector.pid"#atatus.collector.pidfile = "/run/atatus-php-collector.pid"#g' /etc/php/current/conf.d/atatus.ini && \ |
| 163 | + sed -i -e 's#atatus.collector.connection = "/tmp/.atatus.sock"#atatus.collector.connection = "/run/atatus.sock"#g' /etc/php/current/conf.d/atatus.ini && \ |
| 164 | + # Write log files to stdout |
| 165 | + rm -f /var/log/atatus/agent.log && rm -f /var/log/atatus/collector.log && rm -f /var/log/atatus/debug.txt && ln -sf /dev/null /var/log/atatus/agent.log && ln -sf /dev/null /var/log/atatus/collector.log && ln -sf /dev/null /var/log/atatus/debug.txt; \ |
| 166 | + fi |
169 | 167 |
|
170 | 168 | # PHP Config |
171 | 169 | ADD /php/conf/php-fpm.conf /etc/php/current/php-fpm.conf |
|
0 commit comments