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

feat: overhaul Dockerfile for improved developer workflow #17

Closed
wants to merge 2 commits into from

Conversation

The `compilejsi18n` command was failing during image building because the
Open-edX package was not installed properly. The reason for that was an earlier
change where we got rid of the `pip install -r requirements/edx/local.in`
command. Installing the Open-edX package was part of this requirement file.

The local.in requirements file no longer exists, but we still need to `pip
install -e .` the edx-platform repo. To run this command we need both the
edx-platform repo and the virtualenv.

The good news is that there are no more local requirements in the base.txt
requirements file. This means that we no longer have to COPY the edx-platform
repo in the requirements installation step. Thus, changes in edx-platform will
no longer trigger a rebuild of the pip requirements; this means that re-builds
will be much faster when making changes to edx-platform.

Note that plugins that implemented the
"openedx-dockerfile-post-python-requirements" patch and that needed access to
the edx-platform repo will no longer work. Instead, these plugins should
implement the "openedx-dockerfile-pre-assets" patch. This scenario should be
very rare, though.

Close overhangio#726
@kdmccormick kdmccormick force-pushed the kdmccormick/dockerfile-optimization branch 2 times, most recently from 771c998 to 7329ce2 Compare October 3, 2022 14:10
@kdmccormick kdmccormick closed this Oct 3, 2022
@kdmccormick kdmccormick reopened this Oct 3, 2022
@kdmccormick kdmccormick force-pushed the kdmccormick/dockerfile-optimization branch from 7329ce2 to 5cd508c Compare October 3, 2022 14:12
@kdmccormick kdmccormick force-pushed the kdmccormick/dockerfile-optimization branch from 5cd508c to 63ed3b1 Compare October 3, 2022 19:40
@kdmccormick
Copy link
Owner Author

@kdmccormick kdmccormick closed this Nov 7, 2022
@kdmccormick kdmccormick deleted the kdmccormick/dockerfile-optimization branch January 6, 2023 16:05
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.

2 participants