Skip to content

Commit

Permalink
test: add local dev container for consuming event-bus events
Browse files Browse the repository at this point in the history
ENT-9901
  • Loading branch information
pwnage101 committed Jan 10, 2025
1 parent 343bd58 commit b06dcd9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,30 @@ services:
volumes:
- .:/edx/app/enterprise-access/

consume_enterprise_subsidies_transaction_lifecycle:
image: edxops/enterprise-access-dev
container_name: enterprise_access.consume_enterprise_subsidies_transaction_lifecycle
volumes:
- .:/edx/app/enterprise-access/
- ../src:/edx/src
command: bash -c 'while true; do python /edx/app/enterprise-access/manage.py consume_events -t enterprise-subsidies-transaction-lifecycle -g enterprise_access_dev; sleep 2; done'
ports:
- "18272:18272"
depends_on:
- mysql80
- memcache
networks:
- devstack_default
stdin_open: true
tty: true
environment:
CELERY_ALWAYS_EAGER: 'false'
CELERY_BROKER_TRANSPORT: redis
CELERY_BROKER_HOSTNAME: edx.devstack.redis:6379
CELERY_BROKER_VHOST: 0
CELERY_BROKER_PASSWORD: password
DJANGO_SETTINGS_MODULE: enterprise_access.settings.devstack

networks:
devstack_default:
external: true
Expand Down

0 comments on commit b06dcd9

Please sign in to comment.