From 1b11020306628458ab78af7f3b5d0d68a1048a40 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..7372f02 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