We don't need to use custom rabbitmq image + reconfigure step for
orquesta tests. We only need that for integration tests.
@@ -66,36 +66,14 @@ jobs:
ports:
- 27017:27017
- # In GHA, these services are started first before the code is checked out.
- # We use bitnami images to facilitate reconfiguring RabbitMQ during ci-integration tests.
- # We rely on custom config and SSL certs that are in the repo.
- # Many images require config in env vars (which we can't change during the test job)
- # or they require config in entrypoint args (which we can't override for GHA services)
- # bitnami builds ways to get config files from mounted volumes.
rabbitmq:
- image: bitnami/rabbitmq:3.8
- volumes:
- - /home/runner/rabbitmq_conf:/bitnami/conf # RABBITMQ_MOUNTED_CONF_DIR
- env:
- # tell bitnami/rabbitmq to enable this by default
- RABBITMQ_PLUGINS: rabbitmq_management
- RABBITMQ_USERNAME: guest
- RABBITMQ_PASSWORD: guest
-
- # These are strictly docker options, not entrypoint args (GHA restriction)
+ image: rabbitmq:3.8-management
options: >-
--name rabbitmq
-
ports:
- # These 6 ports are exposed by bitnami/rabbitmq (see https://www.rabbitmq.com/networking.html#ports)
- # host_port:container_port/protocol
- 5671:5671/tcp # AMQP SSL port
- 5672:5672/tcp # AMQP standard port
- 15672:15672/tcp # Management: HTTP, CLI
- #- 15671:15671/tcp # Management: SSL port
- #- 25672:25672/tcp # inter-node or CLI
- #- 4369:4369/tcp # epmd
- #
# Used for the coordination backend for integration tests
# NOTE: To speed things up, we only start redis for integration tests
@@ -199,13 +177,6 @@ jobs:
run: |
echo "$ST2_CI_REPO_PATH"
sudo ST2_CI_REPO_PATH="${ST2_CI_REPO_PATH}" scripts/ci/permissions-workaround.sh
- - name: Reconfigure RabbitMQ
- # bitnami image allows (see bitnami/rabbitmq readme):
- # Here we're copying a rabbitmq.config file which won't do anything.
- # We need to switch to custom.conf or advanced.config.
- timeout-minutes: 2 # may die if rabbitmq fails to start
- run: |
- ./scripts/github/configure-rabbitmq.sh
- name: Print versions
run: |
./scripts/ci/print-versions.sh
