-
Notifications
You must be signed in to change notification settings - Fork 1
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 portal-designer to devstack #82
base: master
Are you sure you want to change the base?
chore: add portal-designer to devstack #82
Conversation
8c43dbf
to
173e049
Compare
ef7cb74
to
ae060a1
Compare
ae060a1
to
66d544a
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.
This is missing the change in docker-compose.yml file. Also indicated few other possible changes.
dev.shell.designer: | ||
docker exec -it edx.devstack.designer env TERM=$(TERM) bash -c '/bin/bash' | ||
|
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 can be removed
@@ -31,7 +31,6 @@ services: | |||
- edxapp_tox:/edx/app/edxapp/edx-platform/.tox | |||
- edxapp_uploads:/edx/var/edxapp/uploads | |||
- ${DEVSTACK_WORKSPACE}/src:/edx/src | |||
- ${PWD}/py_configuration_files/cms.py:/edx/app/edxapp/edx-platform/cms/envs/devstack.py |
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.
Why is this being removed?
@@ -57,7 +61,6 @@ services: | |||
- edxapp_uploads:/edx/var/edxapp/uploads | |||
- ${DEVSTACK_WORKSPACE}/src:/edx/src | |||
- ${PWD}/py_configuration_files/cms.py:/edx/app/edxapp/edx-platform/cms/envs/devstack.py | |||
- ${PWD}/py_configuration_files/lms.py:/edx/app/edxapp/edx-platform/lms/envs/devstack.py |
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.
Similar, why is this being removed?
|
||
# Run migrations | ||
echo -e "${GREEN}Running migrations for ${name}...${NC}" | ||
docker exec -t edx.devstack.designer bash -c "cd /edx/app/${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 can use docker compose exec with ${name} for a similar command pattern. Also in next commands as well.
# 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" | ||
|
||
# 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.
We can call provison-ida-user.sh script here.
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" | ||
|
||
# Restart designer app | ||
docker compose stop designer |
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.
Shouldn't we restart instead of stopping, as indicated by comment.
@@ -67,6 +67,8 @@ Instead of a service name or list, you can also run commands like ``make dev.pro | |||
+------------------------------------+-------------------------------------+----------------+--------------+ | |||
| `frontend-app-ora-grading`_ | http://localhost:1993 | MFE (React.js) | Extra | | |||
+------------------------------------+-------------------------------------+----------------+--------------+ | |||
| `designer`_ | http://localhost:3307 | Python/Django | Extra | |
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.
Wrong port mentioned here.
No description provided.