mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
run blackfire agent in container
This commit is contained in:
parent
9cca74924d
commit
777213946d
4 changed files with 15 additions and 4 deletions
|
|
@ -29,6 +29,12 @@ RUN DEBIAN_FRONTEND=noninteractive ;\
|
|||
wget https://github.com/vimeo/psalm/releases/latest/download/psalm.phar -O /usr/local/bin/psalm && \
|
||||
chmod +x /usr/local/bin/psalm
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive ;\
|
||||
wget -q -O - https://packages.blackfire.io/gpg.key | apt-key add - && \
|
||||
echo "deb http://packages.blackfire.io/debian any main" >> /etc/apt/sources.list.d/blackfire.list && \
|
||||
apt-get update && \
|
||||
apt-get install --assume-yes blackfire procps ncat
|
||||
|
||||
ADD configs/autoconfig_mariadb.php configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/s3mb.php configs/swift.php configs/swiftv3.php configs/azure.php configs/config.php /root/
|
||||
ADD configs/nginx-app.conf /etc/nginx/
|
||||
|
||||
|
|
|
|||
|
|
@ -65,6 +65,13 @@ then
|
|||
sed -i '/\/\/PLACEHOLDER/ r /root/azure.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "$BLACKFIRE_SERVER_ID" ]
|
||||
then
|
||||
yes | blackfire agent:config --server-id=$BLACKFIRE_SERVER_ID --server-token=$BLACKFIRE_SERVER_TOKEN
|
||||
mkdir /var/run/blackfire/
|
||||
BLACKFIRE_LOG_LEVEL=4 BLACKFIRE_LOG_FILE=/var/log/agent.log blackfire agent &
|
||||
fi
|
||||
|
||||
crontab /etc/oc-cron.conf
|
||||
|
||||
/usr/sbin/cron -f &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue