Repository navigation
build: expose working openedx/lms and openedx/cms docker images - #29549
Conversation
b1bf37f to
587307e
Compare
60fd3f2 to
81d91da
Compare
0dd5f53 to
c6d1f46
Compare
|
Your PR has finished running tests. The following contexts failed:
|
e6499db to
5330756
Compare
kdmccormick
left a comment
There was a problem hiding this comment.
Notes for reviewers
There was a problem hiding this comment.
No substantive changes to the system requirements; I just indented them to make the structure of the chained commands more apparent.
There was a problem hiding this comment.
Again, no changes here, just added equals signs and quotes for consistency.
There was a problem hiding this comment.
SETTINGS had no effect, so I nixed it.
I did, however, add EDX_PLATFORM_SETTINGS, which is looked at by our custom ./manage.py.
There was a problem hiding this comment.
No substantive changes here, but I did factor CONFIG_ROOT out of LMS/STUDIO_CFG.
There was a problem hiding this comment.
venv creation is moved downwards so that all base environment variables are in one place.
There was a problem hiding this comment.
Again: same old command, broken across lines.
There was a problem hiding this comment.
Again, nix the newrelic stuff.
There was a problem hiding this comment.
I promise I'll remove this block before merging.
There was a problem hiding this comment.
Having the Dockerfile in the docker context makes it super annoying to hack on the Dockerfile, because every time you change the Dockerfile, most of the build cache is busted.
There was a problem hiding this comment.
This script (and its LMS companion, provision-demo-users.sh) replaces the Ansible playbook in edx/configuration which provisions demo course and users for devstack.
I wasn't sure whether it belonged in here or in devstack. I chose here, in the spirit of "every service repo should have the materials necessary to build, run, and test itself", but I could be swayed into moving this code into edx/devstack.
81b389b to
70a0cd8
Compare
feanil
left a comment
There was a problem hiding this comment.
Generally looks good, had 1 question.
| # Env vars: path | ||
| ENV VIRTUAL_ENV='/edx/app/edxapp/venvs/edxapp' | ||
| ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
| ENV PATH="./node_modules/.bin:${PATH}" |
There was a problem hiding this comment.
Should this be an explicit path instead of a relative path to where you are?
There was a problem hiding this comment.
Hm, the original Dockerfile used a relative path. I'm going to dig around git blame to see if there's any reason for using relative instead of absolute.
There was a problem hiding this comment.
Coming up dry on any reasoning for the relative path. Since the edxops/edxapp image uses the full path, I'll update this to also use the full path. Thanks for catching.
There was a problem hiding this comment.
tl;dr; I support this change, but putting my thinking down below in case it's useful to others..
At first, I had mixed feelings about this because I know that edX will need this bit for the image to be usable for them in production use-cases. Not having this here would require to create custom dockerfiles that built on top of this base image. However, as I thought more about it, I realized there are other issues specific to edX that would require them to do that anyway. In particular, they would need a custom image to install XBlocks and Plugins specific to edX.org that are not public or default for the Open edX Platform.
70a0cd8 to
a7e8e5b
Compare
feanil
left a comment
There was a problem hiding this comment.
One reminder to clean-up your testing make target which I'm sure you already have a note for but otherwise this looks good and I think can be merged.
a7e8e5b to
6402958
Compare
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
Description
This PR prepares edx-platform's experimental Dockerfile for optional use in devstack. Presently, the image built by this Dockerfile isn't used anywhere.
Notable changes:
openedx/edx-platformimage name in favor ofopenedx/lmsandopenedx/cms.openedx/lms-devandopenedx/cms-devimage variants which use Django devserver, install dev requirements, and specify devstack Django settings.lms.ymlandcms.ymlconfiguration files, extracted from the existing edxapp docker image.Testing instructions
See the testing instructions for the devstack PR.
Other information
This is blocked on the CMS vs Studio ADR. Whatever the result of that ADR is, I'll update the image tags here to match.Resolved.Supporting information
This is a dependency attempt to use the experimental images in devstack, which itself is part of the effort to move off of edxops DockerHub org images.