This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 421
feat: implement toggles to use experimental images #866
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14e6507
to
e3adacc
Compare
e3adacc
to
ad43913
Compare
fc1d84d
to
9c4e6f0
Compare
74f8093
to
4509e58
Compare
b73442e
to
f9e9d54
Compare
e4506e9
to
8b476ca
Compare
4e0e7aa
to
27592bc
Compare
6f14df9
to
28fe63c
Compare
f24681a
to
b5d6a81
Compare
1 task
65d5501
to
38b607a
Compare
@kdmccormick The GH action added in this PR is showing up in other PR too and not triggering because it's not merged yet. |
My bad @syedimranhassan -- I just marked that check as non-required for now. |
fd989bd
to
555e03f
Compare
Previously, all Open edX services and some supporting services were hard-coded to use docker images from the edxops DockerHub org. This commit parameterizes those images under Makefile variables. For example, registrar now specifies `${_REGISTRAR_IMAGE}` instead of `edxops/registrar`. By default, all the image variables are still set to the same old images from the edxops DockerHub org. Furthermore, two toggles were introduced: * USE_EXPERIMENTAL_EDX_PLATFORM_IMAGES * USE_EXPERIMENTAL_CREDENTIALS_IMAGE allowing users to test out the new, optimized `openedx/` images for LMS, CMS, and Credentials. Provisioning tests will be run for these three experimental images as part of PR builds. Our intent is to test and eventually switch all services over to the new openedx images, which are built using more idiomatic docker practices and should be smaller and more resource efficient. Co-Authored-By: cmuniz@tcril.org
555e03f
to
2e90725
Compare
In light of the kickoff of work to replace devstack with tutor, I don't feel that it's worth our while any more to review this and roll it out. We can always reopen this later if it becomes useful again. |
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Previously, all Open edX services and some
supporting services were hard-coded to use docker images
from the edxops DockerHub org. This commit parameterizes those
images under Makefile variables. For example, registrar
now specifies
${_REGISTRAR_IMAGE}
instead ofedxops/registrar
. By default, all the image variablesare still set to the same old images from
the edxops DockerHub org.
Furthermore, two toggles were introduced:
USE_EXPERIMENTAL_EDX_PLATFORM_IMAGES
USE_EXPERIMENTAL_CREDENTIALS_IMAGE
allowing users to test out the new, optimized
openedx/
images for LMS, CMS, and Credentials.Provisioning tests will be run for these three
experimental images as part of PR builds.
Our intent is to test and eventually switch
all services over to the new openedx images,
which are built using more idiomatic docker
practices and should be smaller and more resource
efficient.
Co-Authored-By: @cmuniz
Test instructions
Ensure: by default, the old edxops images are still used
On master: Starting with a provisioned devstack, bring containers down.
Switch to this branch. Confirm that all backend services, as well as the supporting services affected by this PR, can be brought up.
Ensure that there now exist services running thirteen distinct
edxops/...
images.And ensure that they can be brought down:
Ensure: LMS, Studio and Credentials can be toggled to use the experimental openedx images
Bring containers down (
make dev.down
). Then, create or editoptions.local.mk
in the root of your devstack repo. Add:Bring up LMS, Studio and Credentials:
and ensure the
openedx/
images (orkdmccormick96/
images, while this PR is still a draft) are used:Finally, log into LMS and play around. For example, take the demo course, edit the course in Studio, publish it, export and re-import it, upload an image, view credentials, visit all three admin panels, etc.
Supporting Information
Begins addressing "Move off of edxops DockerHub org images".
Other information
Blocked by https://github.com/edx/devstack/pull/874
Tentative rollout plan
USE_EXPERIMENTAL_EDX_PLATFORM_IMAGES
andUSE_EXPERIMENTAL_CREDENTIALS_IMAGE
are available for testing. Inform edX's Arch-BOM (~ developer experience) team so that they can circulate the information within edXopenedx/lms-dev
,openedx/studio-dev
, andopenedx/credentials-dev
images the default.Why is the plan "tentative?"
Because it reflects only one of the three possible approaches to the greater
edxops
issue. Depending on how things evolve, we may switch all images over, switch only some of them over, or abandon them entirely in favor of Tutor's images. Regardless, I think this change is worthwhile, because it gives us an opportunity to see how Ansible and non-Ansible images compare in the context of devstack.It is part of the linked issue's acceptance criteria to clean all of this up in the event that the experimental images and/or devstack are abandoned.