|
1 | 1 | FROM alpine:edge
|
2 | 2 |
|
3 | 3 | ARG PHP_VERSION=8
|
4 |
| -ARG ATATUS_VERSION=1.12.0 |
| 4 | +ARG ATATUS_VERSION=1.13.0 |
5 | 5 | ARG ATATUS_ENABLED=TRUE
|
6 | 6 |
|
7 | 7 | ENV \
|
@@ -152,15 +152,15 @@ RUN EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)
|
152 | 152 | # && mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
|
153 | 153 | # && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
|
154 | 154 |
|
155 |
| -#RUN if [ "$ATATUS_ENABLED" == "TRUE" ]; then \ |
156 |
| -# # Atatus |
157 |
| -# wget https://s3.amazonaws.com/atatus-artifacts/atatus-php/downloads/atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && tar -xzvf atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && cd atatus-php-$ATATUS_VERSION-x64-musl && ./install.sh && rm -f /atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && rm -rf /atatus-php-$ATATUS_VERSION-x64-musl && \ |
158 |
| -# sed -i -e 's#atatus.trace.response_time = 2000#atatus.trace.response_time = 1500#g' /etc/php/current/conf.d/atatus.ini && \ |
159 |
| -# 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 && \ |
160 |
| -# sed -i -e 's#atatus.collector.connection = "/tmp/.atatus.sock"#atatus.collector.connection = "/run/atatus.sock"#g' /etc/php/current/conf.d/atatus.ini && \ |
161 |
| -# # Write log files to stdout |
162 |
| -# 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; \ |
163 |
| -# fi |
| 155 | +RUN if [ "$ATATUS_ENABLED" == "TRUE" ]; then \ |
| 156 | + # Atatus |
| 157 | + wget https://s3.amazonaws.com/atatus-artifacts/atatus-php/downloads/atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && tar -xzvf atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && cd atatus-php-$ATATUS_VERSION-x64-musl && ./install.sh && rm -f /atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && rm -rf /atatus-php-$ATATUS_VERSION-x64-musl && \ |
| 158 | + sed -i -e 's#atatus.trace.response_time = 2000#atatus.trace.response_time = 1500#g' /etc/php/current/conf.d/atatus.ini && \ |
| 159 | + 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 && \ |
| 160 | + sed -i -e 's#atatus.collector.connection = "/tmp/.atatus.sock"#atatus.collector.connection = "/run/atatus.sock"#g' /etc/php/current/conf.d/atatus.ini && \ |
| 161 | + # Write log files to stdout |
| 162 | + 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; \ |
| 163 | + fi |
164 | 164 |
|
165 | 165 | # PHP Config
|
166 | 166 | ADD /php/conf/php-fpm.conf /etc/php/current/php-fpm.conf
|
|
0 commit comments