-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: add enterprise-catalog in devstack #81
base: master
Are you sure you want to change the base?
chore: add enterprise-catalog in devstack #81
Conversation
5d90f7a
to
7678187
Compare
54705a2
to
343b4cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more changes, also you need to rebase it correctly with main
branch as it is currently also including the changes from master.
docker-compose.yml
Outdated
stdin_open: true | ||
tty: true | ||
|
||
enterprise-catalog-curations_worker: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enterprise-catalog-curations_worker: | |
enterprise-catalog-curations-worker: |
docker-compose.yml
Outdated
@@ -910,3 +986,4 @@ volumes: | |||
mysql57_data: | |||
mysql80_data: | |||
redis_data: | |||
enterprise_catalog_mysql8: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't be used, because this isn't linked with mysql80
container. These IDAs should use default devstack db volume so no need to add this
provision-enterprise_catalog.sh
Outdated
|
||
# Run migrations | ||
echo -e "${GREEN}Running migrations for ${name}...${NC}" | ||
docker exec -t enterprise.catalog.app bash -c "cd /edx/app/${name}/${name}/ && make migrate" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use docker compose exec and then you don't have to provide the entire container name and instead can only write enterprsie-subsidy. You can follow any other provision script for the format.
provision-enterprise_catalog.sh
Outdated
# Create the DOT applications - one for single sign-on and one for backend service IDA-to-IDA authentication. | ||
docker exec -t edx.devstack.lms bash -c "source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker create_dot_application --grant-type authorization-code --skip-authorization --redirect-uris 'http://localhost:${port}/complete/edx-oauth2/' --client-id '${name}-sso-key' --client-secret '${name}-sso-secret' --scopes 'user_id' ${name}-sso ${name}_worker" | ||
docker exec -t edx.devstack.lms bash -c "source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker create_dot_application --grant-type client-credentials --client-id '${name}-backend-service-key' --client-secret '${name}-backend-service-secret' ${name}-backend-service ${name}_worker" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also included in provision-ida-user.sh
script.
provision-enterprise_catalog.sh
Outdated
|
||
# Provision IDA User in LMS | ||
echo -e "${GREEN}Provisioning ${name}_worker in LMS...${NC}" | ||
docker exec -t edx.devstack.lms bash -c "source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker manage_user ${name}_worker ${name}[email protected] --staff --superuser" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call provison-ida-user
script here. Example: https://github.com/edx/devstack/blob/iamsobanjaved/enterprise-access/provision-insights.sh#L21
343b4cd
to
9105836
Compare
|
||
enterprise-catalog: | ||
volumes: | ||
- ${DEVSTACK_WORKSPACE}/enterprise-catalog:/edx/app/enterprise_catalog/enterprise_catalog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add devstack.py file reference as well.
No description provided.