This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Repository navigation
feat: implement toggles to use experimental images - #866
Closed
kdmccormick wants to merge 2 commits into
Closed
kdmccormick wants to merge 2 commits into
kdmccormick wants to merge 2 commits into
Conversation
Contributor
Author
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
2 times, most recently
from
December 6, 2021 22:14
14e6507 to
e3adacc
Compare
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
from
December 7, 2021 15:28
e3adacc to
ad43913
Compare
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
3 times, most recently
from
December 7, 2021 17:07
fc1d84d to
9c4e6f0
Compare
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
4 times, most recently
from
December 11, 2021 00:23
74f8093 to
4509e58
Compare
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
4 times, most recently
from
December 14, 2021 02:18
b73442e to
f9e9d54
Compare
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
10 times, most recently
from
December 20, 2021 16:50
e4506e9 to
8b476ca
Compare
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
from
December 21, 2021 21:42
4e0e7aa to
27592bc
Compare
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
4 times, most recently
from
December 23, 2021 19:02
6f14df9 to
28fe63c
Compare
kdmccormick
marked this pull request as ready for review
December 23, 2021 19:09
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
2 times, most recently
from
January 5, 2022 15:21
f24681a to
b5d6a81
Compare
1 task
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
6 times, most recently
from
January 5, 2022 21:17
65d5501 to
38b607a
Compare
Contributor
|
@kdmccormick The GH action added in this PR is showing up in other PR too and not triggering because it's not merged yet. |
Contributor
Author
|
My bad @syedimranhassan -- I just marked that check as non-required for now. |
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
2 times, most recently
from
January 6, 2022 20:24
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
kdmccormick
force-pushed
the
kdmccormick/flag-for-openedx-images
branch
from
January 10, 2022 16:44
555e03f to
2e90725
Compare
Contributor
Author
|
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 done
This file contains hidden or 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
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_IMAGESUSE_EXPERIMENTAL_CREDENTIALS_IMAGEallowing 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.mkin 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_IMAGESandUSE_EXPERIMENTAL_CREDENTIALS_IMAGEare 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-devimages the default.Why is the plan "tentative?"
Because it reflects only one of the three possible approaches to the greater
edxopsissue. 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.