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

Allow adding local dev requirements without rebuilding base image #162

Closed
2 tasks
kdmccormick opened this issue Feb 7, 2023 · 1 comment
Closed
2 tasks
Assignees

Comments

@kdmccormick
Copy link
Collaborator

kdmccormick commented Feb 7, 2023

Background

The current package dev notes involve:

  • moving the package into $(tutor config printroot)/env/build/openedx/requirements
  • listing the package in $(tutor config printroot)/env/build/openedx/requirements/private.txt
  • rebuilding the base edx-platform image (tutor images build openedx). Because the local packages are installed so high up in the Dockerfile, this rebuild breaks most of the cache and thus can take 20+ minutes.

The comprehensive image rebuild makes sense when the user intends to use these requirements on a production site: it is important that the local packages be built into the base image, and it's important that production static assets are built afterward, etc.

Developers, on the other hand, don't need the packages built into the base image. They would be happy if the package was just built in to the development variant of the image, which takes much less time (~1 minute) to rebuild.

Tasks

  • Propose a solution. May require a TEP.
  • Implement it.

Notes

Prototype implementation here: kdmccormick/tutor#26

@kdmccormick kdmccormick self-assigned this Feb 7, 2023
@kdmccormick kdmccormick moved this from 📥 New to 🛠️ In Progress in Developer Experience Working Group Feb 7, 2023
kdmccormick added a commit to kdmccormick/tutor that referenced this issue Feb 7, 2023
kdmccormick added a commit to kdmccormick/tutor that referenced this issue Feb 7, 2023
@kdmccormick kdmccormick moved this from 🛠️ In Progress to 📋 Refined in Developer Experience Working Group Apr 27, 2023
@kdmccormick kdmccormick closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2023
@kdmccormick
Copy link
Collaborator Author

Was closed in favor of #177

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

1 participant