Skip to content

Commit

Permalink
chore: feedback resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
huniafatima-arbi committed Nov 28, 2024
1 parent 9105836 commit 16306a1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docker-compose-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ services:
enterprise-catalog-worker:
volumes:
- ${DEVSTACK_WORKSPACE}/enterprise-catalog:/edx/app/enterprise_catalog/enterprise_catalog
enterprise-catalog-curations_worker:
enterprise-catalog-curations-worker:
volumes:
- ${DEVSTACK_WORKSPACE}/enterprise-catalog:/edx/app/enterprise_catalog/enterprise_catalog
# Note that frontends mount `src` to /edx/app/src instead of /edx/src.
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ services:
stdin_open: true
tty: true

enterprise-catalog-curations_worker:
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'
container_name: enterprise.catalog.curations
Expand Down Expand Up @@ -986,4 +986,3 @@ volumes:
mysql57_data:
mysql80_data:
redis_data:
enterprise_catalog_mysql8:
17 changes: 17 additions & 0 deletions provision-enterprise-catalog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name="enterprise-catalog"
port="18160"

docker compose up -d $name

# Run migrations
echo -e "${GREEN}Running migrations for ${name}...${NC}"
docker compose exec -T ${name} bash -c "cd /edx/app/${name}/${name}/ && make migrate"

# Create superuser
echo -e "${GREEN}Creating super-user for ${name}...${NC}"
docker compose exec -T ${name} bash -c "echo 'from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser(\"edx\", \"[email protected]\", \"edx\") if not User.objects.filter(username=\"edx\").exists() else None' | python /edx/app/${name}/${name}/manage.py shell"

./provision-ida-user.sh ${name} ${name} ${port}

# Restart enterprise.catalog app and worker containers
docker-compose restart enterprise-catalog enterprise-catalog-worker
23 changes: 0 additions & 23 deletions provision-enterprise_catalog.sh

This file was deleted.

0 comments on commit 16306a1

Please sign in to comment.