forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add license manager ida to devstack
- Loading branch information
1 parent
4255f6a
commit 25d0e57
Showing
12 changed files
with
138 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
# Provisioning script for the notes service | ||
set -eu -o pipefail | ||
|
||
. scripts/colors.sh | ||
set -x | ||
|
||
name=license-manager | ||
port=18170 | ||
|
||
docker compose up -d $name | ||
|
||
echo -e "${GREEN}Installing requirements for ${name}...${NC}" | ||
docker compose exec -T ${name} bash -e -c 'cd /edx/app/license_manager/ && make requirements' -- "$name" | ||
|
||
# Run migrations | ||
echo -e "${GREEN}Running migrations for ${name}...${NC}" | ||
docker exec -t ${name} bash -c "cd /edx/app/license_manager/ && make migrate" | ||
|
||
# Seed data for development | ||
echo -e "${GREEN}Seeding development data..." | ||
docker exec -t ${name} bash -c "python manage.py seed_development_data" | ||
# Some migrations require development data to be seeded, hence migrating again. | ||
docker exec -t ${name} bash -c "make migrate" | ||
|
||
# Create superuser | ||
echo -e "${GREEN}Creating super-user for ${name}...${NC}" | ||
docker 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/license_manager/manage.py shell" | ||
|
||
# Provision IDA User in LMS | ||
./provision-ida-user.sh ${name}-backend-service ${name}_worker $port | ||
|
||
make dev.restart-devserver.license-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ xqueue \ | |
coursegraph \ | ||
insights \ | ||
analyticsapi \ | ||
license-manager \ | ||
" | ||
|
||
# What should we provision? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ repos=( | |
"https://github.com/openedx/frontend-app-publisher.git" | ||
"https://github.com/edx/edx-analytics-dashboard.git" | ||
"https://github.com/edx/edx-analytics-data-api.git" | ||
"https://github.com/openedx/license-manager.git" | ||
) | ||
|
||
non_release_repos=( | ||
|
@@ -66,6 +67,7 @@ ssh_repos=( | |
"[email protected]:openedx/frontend-app-publisher.git" | ||
"[email protected]:edx/edx-analytics-dashboard.git" | ||
"[email protected]:edx/edx-analytics-data-api.git" | ||
"[email protected]:openedx/license-manager.git" | ||
) | ||
|
||
non_release_ssh_repos=( | ||
|