From 56c614302b5d248498e91847c471a97660a92c42 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 31 Aug 2021 08:36:54 +0200 Subject: [PATCH] Add a recipe to ease installation of Blackfire --- .../1.0/.blackfire.yaml | 7 ++++++ .../blackfire-symfony-meta/1.0/manifest.json | 24 +++++++++++++++++++ .../1.0/post-install.txt | 7 ++++++ 3 files changed, 38 insertions(+) create mode 100644 blackfireio/blackfire-symfony-meta/1.0/.blackfire.yaml create mode 100644 blackfireio/blackfire-symfony-meta/1.0/manifest.json create mode 100644 blackfireio/blackfire-symfony-meta/1.0/post-install.txt diff --git a/blackfireio/blackfire-symfony-meta/1.0/.blackfire.yaml b/blackfireio/blackfire-symfony-meta/1.0/.blackfire.yaml new file mode 100644 index 00000000..78ee0456 --- /dev/null +++ b/blackfireio/blackfire-symfony-meta/1.0/.blackfire.yaml @@ -0,0 +1,7 @@ +scenarios: | + #!blackfire-player + + scenario + name "Test homepage" + visit url('/') + expect status_code() == 200 diff --git a/blackfireio/blackfire-symfony-meta/1.0/manifest.json b/blackfireio/blackfire-symfony-meta/1.0/manifest.json new file mode 100644 index 00000000..0a09e7ac --- /dev/null +++ b/blackfireio/blackfire-symfony-meta/1.0/manifest.json @@ -0,0 +1,24 @@ +{ + "copy-from-recipe": { + ".blackfire.yaml": ".blackfire.yaml" + }, + "env": { + "#1": "Get your SERVER credentials at https://blackfire.io/my/settings/credentials", + "#2": "BLACKFIRE_SERVER_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "#3": "BLACKFIRE_SERVER_TOKEN=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" + }, + "docker-compose": { + "docker-compose.override.yml": { + "services": [ + "blackfire:", + " image: blackfire/blackfire:2", + " # uncomment to store Blackfire credentials in a local .env.local file", + " #env_file: .env.local", + " environment:", + " BLACKFIRE_LOG_LEVEL: 4", + " ports: [8307]" + ] + } + }, + "aliases": ["blackfire"] +} diff --git a/blackfireio/blackfire-symfony-meta/1.0/post-install.txt b/blackfireio/blackfire-symfony-meta/1.0/post-install.txt new file mode 100644 index 00000000..404d0707 --- /dev/null +++ b/blackfireio/blackfire-symfony-meta/1.0/post-install.txt @@ -0,0 +1,7 @@ + * Blackfire Agent has been configured in your docker-compose.override.yaml file + + * Configure your Blackfire SERVER credentials in .env.local (get them at https://blackfire.io/my/settings/credentials) + + * Install the PHP probe: https://blackfire.io/docs/up-and-running/installation + + * Read the documentation at https://blackfire.io/docs