Skip to content

Commit

Permalink
chore: add requirements installation
Browse files Browse the repository at this point in the history
  • Loading branch information
huniafatima-arbi committed Dec 18, 2024
1 parent 4c2e58a commit d16b8da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions provision-enterprise-catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ docker compose up -d $name
echo -e "${GREEN}Running migrations for ${name}...${NC}"
docker compose exec -T ${name} bash -c "cd /edx/app/${name}/${name}/ && make migrate"

echo -e "${GREEN}Installing requirements for ${name}...${NC}"
docker compose exec -T ${name} bash -e -c 'cd /edx/app/enterprise-catalog/ && make requirements' -- "$name"

# 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"
Expand Down

0 comments on commit d16b8da

Please sign in to comment.