Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: change workdir and docker-compose app commands #1001

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ services:
image: edxops/enterprise-catalog-dev
container_name: enterprise.catalog.app
hostname: app.catalog.enterprise
working_dir: /edx/app/enterprise_catalog/enterprise_catalog
working_dir: /edx/app/enterprise-catalog
volumes:
- .:/edx/app/enterprise_catalog/enterprise_catalog
- .:/edx/app/enterprise-catalog
- ../src:/edx/src:cached

# Use the Django devserver, so that we can hot-reload code changes
command: bash -c 'while true; do python /edx/app/enterprise_catalog/enterprise_catalog/manage.py runserver 0.0.0.0:18160; sleep 2; done'
command: bash -c 'while true; do python /edx/app/enterprise-catalog/manage.py runserver 0.0.0.0:18160; sleep 2; done'
ports:
- "18160:18160"
depends_on:
Expand All @@ -54,7 +54,7 @@ services:

worker:
image: edxops/enterprise-catalog-dev
command: bash -c 'cd /edx/app/enterprise_catalog/enterprise_catalog && celery -A enterprise_catalog worker -Q enterprise_catalog.default -l DEBUG'
command: bash -c 'cd /edx/app/enterprise-catalog && celery -A enterprise_catalog worker -Q enterprise_catalog.default -l DEBUG'
container_name: enterprise.catalog.worker
depends_on:
- mysql
Expand All @@ -67,7 +67,7 @@ services:
DJANGO_SETTINGS_MODULE: enterprise_catalog.settings.devstack
COLUMNS: 80
hostname: worker.catalog.enterprise
working_dir: /edx/app/enterprise_catalog/enterprise_catalog
working_dir: /edx/app/enterprise-catalog
networks:
- devstack_default
ports:
Expand All @@ -77,11 +77,11 @@ services:
stdin_open: true
tty: true
volumes:
- .:/edx/app/enterprise_catalog/enterprise_catalog
- .:/edx/app/enterprise-catalog

curations_worker:
image: edxops/enterprise-catalog-dev
command: bash -c 'cd /edx/app/enterprise_catalog/enterprise_catalog && celery -A enterprise_catalog worker -Q enterprise_catalog.curations -l DEBUG'
command: bash -c 'cd /edx/app/enterprise-catalog && celery -A enterprise_catalog worker -Q enterprise_catalog.curations -l DEBUG'
container_name: enterprise.catalog.curations
depends_on:
- mysql
Expand All @@ -94,7 +94,7 @@ services:
DJANGO_SETTINGS_MODULE: enterprise_catalog.settings.devstack
COLUMNS: 80
hostname: curations.catalog.enterprise
working_dir: /edx/app/enterprise_catalog/enterprise_catalog
working_dir: /edx/app/enterprise-catalog
networks:
- devstack_default
ports:
Expand All @@ -104,7 +104,7 @@ services:
stdin_open: true
tty: true
volumes:
- .:/edx/app/enterprise_catalog/enterprise_catalog
- .:/edx/app/enterprise-catalog

networks:
devstack_default:
Expand Down
Loading