Created
March 3, 2021 10:15
-
-
Save lolautruche/c332570351342cce4f8033d1d839e010 to your computer and use it in GitHub Desktop.
[SymfonyCloud] Install Blackfire up-to-date probe and agent manually
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A unique name for this application | |
name: 'my-app' | |
# The language and version to use | |
type: 'php:7.4' | |
runtime: | |
extensions: | |
- apcu | |
- redis | |
- pdo_pgsql | |
# DO NOT ADD blackfire extension here | |
variables: | |
php: | |
# This extension is being downloaded and extracted in the build hook | |
extension: /app/blackfire-20190902-zts.so | |
hooks: | |
build: | # container is read/write access - no access to shared folders - no access to services | |
set -x -e | |
curl -s https://get.symfony.com/cloud/configurator | (>&2 bash) | |
# Download and extract the Blackfire Probe | |
wget https://blackfire.io/api/v1/releases/probe/php/linux/amd64/74-zts -O blackfire-php.tar.gz | |
tar xzf blackfire-php.tar.gz | |
# Download and extract the Blackfire Agent | |
wget https://blackfire.io/api/v1/releases/agent/linux/amd64 -O blackfire-agent.tar.gz | |
tar xzf blackfire-agent.tar.gz && mv agent /app/.global/bin/blackfire-agent | |
rm blackfire-agent.tar.gz | |
# Installing blackfire-player | |
( | |
mkdir -p ${SYMFONY_CACHE_DIR}/blackfire | |
cd ${SYMFONY_CACHE_DIR}/blackfire | |
wget -N https://get.blackfire.io/blackfire-player.phar | |
chmod +x blackfire-player.phar | |
cp blackfire-player.phar /app/.global/bin/blackfire-player | |
) | |
(>&2 env symfony-build) | |
(>&2 composer dump-env prod) | |
deploy: | | |
set -x -e | |
(>&2 symfony-deploy) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment