Skip to content
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

Remove edx-platform custom settings and openedx Docker entrypoint and thus fix k8s exec commands #640

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Apr 14, 2022

No description provided.

@regisb regisb force-pushed the regisb/plugin-v1 branch 4 times, most recently from 266e70e to 0e02395 Compare April 14, 2022 15:34
@regisb regisb force-pushed the regisb/no-custom-settings branch from 0cdff96 to 7a80a58 Compare April 14, 2022 15:35
@regisb regisb force-pushed the regisb/plugin-v1 branch 2 times, most recently from 2dd1dee to e17caf9 Compare April 14, 2022 17:18
@regisb regisb force-pushed the regisb/plugin-v1 branch 5 times, most recently from eaac298 to 42c206a Compare April 15, 2022 11:07
@regisb regisb force-pushed the regisb/no-custom-settings branch from 7a80a58 to 9934003 Compare April 15, 2022 11:07
@regisb regisb force-pushed the regisb/plugin-v1 branch 3 times, most recently from a0fc927 to cd905cb Compare April 15, 2022 13:26
Base automatically changed from regisb/plugin-v1 to master April 15, 2022 13:30
@regisb regisb force-pushed the regisb/no-custom-settings branch from 9934003 to 7bb640c Compare April 15, 2022 13:32
@regisb regisb changed the title WIP remove edx-platform custom settings and openedx Docker entrypoint Remove edx-platform custom settings and openedx Docker entrypoint and thus fix k8s exec commands Apr 15, 2022
regisb added 2 commits April 15, 2022 15:33
Previously, it was possible to override settings by defining the
TUTOR_EDX_PLATFORM_SETTINGS environment variable. But let's face it:

- It was not very well supported.
- It was poorly explained.
- It was not very useful.
- It causes unnecessary code complexity.

For these reasons, we drop that feature.
The entrypoint in the "openedx" Docker image was used only to define the
DJANGO_SETTINGS_MODULE environment variable, based on SERVICE_VARIANT and
SETTINGS. We ditch SETTINGS in favour of defining explicitely
DJANGO_SETTINGS_MODULE.

The problem with the Docker entrypoint is that it was bypassed whenever we ran
`tutor local exec` or `tutor k8s exec`. By removing it we make it simpler for
end-users to run manage.py commands in kubernetes.
@regisb regisb force-pushed the regisb/no-custom-settings branch from 7bb640c to 9bd809d Compare April 15, 2022 13:34
@regisb regisb merged commit d5a790d into master Apr 15, 2022
@regisb regisb deleted the regisb/no-custom-settings branch October 4, 2022 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant