From 20a119934a533f1b6cb1f47c03475993c53b2d8e Mon Sep 17 00:00:00 2001 From: Jochen Date: Sun, 15 Dec 2024 10:13:18 +0100 Subject: [PATCH] [TASK] Install php-amqp package automatically Fixes: #9 --- config.rabbitmq.yaml | 2 ++ install.yaml | 1 + tests/test.bats | 6 ++++++ 3 files changed, 9 insertions(+) create mode 100644 config.rabbitmq.yaml diff --git a/config.rabbitmq.yaml b/config.rabbitmq.yaml new file mode 100644 index 0000000..efe6835 --- /dev/null +++ b/config.rabbitmq.yaml @@ -0,0 +1,2 @@ +#ddev-generated +webimage_extra_packages: ["php${DDEV_PHP_VERSION}-amqp"] diff --git a/install.yaml b/install.yaml index a61f777..248636b 100644 --- a/install.yaml +++ b/install.yaml @@ -3,6 +3,7 @@ name: rabbitmq project_files: - docker-compose.rabbitmq.yaml + - config.rabbitmq.yaml - commands/rabbitmq/ - rabbitmq/config.yaml - rabbitmq/schema.json diff --git a/tests/test.bats b/tests/test.bats index a29f8b5..5394c05 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -61,6 +61,12 @@ setup() { [[ $output == *"Virtual host 'ddev-vhost' does not"* ]] } +@test "See php amqp module loaded" { + run ddev exec "php -m | grep amqp" + + [[ $output == "amqp" ]] +} + @test "Remove addon - see files removed" { ddev get --remove rabbitmq