Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Switch to Ansible-free Docker images #943

Closed
9 tasks done
jmbowman opened this issue Jun 21, 2022 · 2 comments
Closed
9 tasks done

Switch to Ansible-free Docker images #943

jmbowman opened this issue Jun 21, 2022 · 2 comments

Comments

@jmbowman
Copy link
Contributor

jmbowman commented Jun 21, 2022

In order to advance implementation of both OEP-45: Configuring and Operating Open edX and deprecation of the configuration repository, we would like to switch devstack from using primarily Docker images built with Ansible code from the configuration repository to images built from Dockerfiles in each service's repository. We hope this will also help simplify Tutor by providing better base images to derive from, with fewer workarounds and duplicated code blocks required in Tutor.

Please create sub-tasks in separate issues as appropriate, in this repository and/or each service needing changes to its Dockerfile or image upload process. Services should be switched one at a time so the work can be done and tested incrementally. The process should look something like the following for each service:

  • Ensure that the repo's Dockerfile can create a base image which is appropriate for small production installations
  • Ensure that the repo's Dockerfile also defines an additional image derived from the base which adds dependencies and configuration changes needed for development environments
  • Check with the Tutor developers during code review to see if any further changes to the Dockerfile would help simplify Tutor
  • Automate uploads of both images when code changes are merged
  • Switch devstack to use the new Ansible-free development image, and do some basic testing to ensure it works before merging

Once all of the services are switched over, the existing Jenkins-based automation for uploading Ansible-based development images can be retired. This will involve deactivation and then deletion of Jenkins jobs, followed by removal of associated code in the configuration and other repositories.

Subtasks

@kdmccormick
Copy link
Contributor

@jmbowman I had started this work a few months ago, but abandoned it in order to focus on Tutor. You can see some of my progress and findings here: #869 . In particular, you might find useful this PR, in which I was going to introduce Devstack toggles for Ansible vs Ansible-free images: #866

@jmbowman
Copy link
Contributor Author

jmbowman commented Feb 1, 2023

There should also be sub-tasks for LMS, Studio, and the IDA cookiecutter (to make sure new services start off with a reasonable Dockerfile template).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants