Repository navigation
fix: use pre-built image instead of building from Dockerfile - #4697
Conversation
|
@UsamaSadiq , @openedx/committers-course-discovery could anyone please check and help review/merge this PR |
|
@rjv31 Could you add further context on the PR on why this change is being made now? Is there any issue where this new effort is being tracked/discussed etc? |
|
Thanks for your comment @UsamaSadiq ! The reason this change is being made now is due to ongoing issues with the current Dockerfile, which is based on an older version of Ubuntu (Focal). This has caused problems with installing Python 3.12 and its dependencies, specifically the python3.12-dev package, which is required for the build. The CI pipeline and local environment setup are failing due to this issue. As discussed in previous PRs #4642 & #4693 , switching to a more recent version of Ubuntu (Jammy) is crucial for ensuring compatibility with Python 3.12 and resolving these build failures. Additionally, after some discussion with the team, we found that the course-discovery.Dockerfile in the public Dockerfiles repo |
The ulmo Dockerfile is based on ubuntu:focal and installs Python 3.12 from the deadsnakes PPA, which no longer publishes for focal, so the CI image build failed (`Unable to locate package python3.12-dev`). Use the pre-built edxops/discovery-dev image for CI, as verawood does. The CI scripts still run `make requirements` inside the container, so tests use this branch's own requirements. This backports only the .ci/docker-compose-ci.yml part of e519c28 (#4697) and leaves the Dockerfile in place. Part of: openedx/public-engineering#574 Co-authored-by: Claude Opus 5.5 <[email protected]>
…4745) This is both a security fix and a functional fix for the ulmo release. Security: upgrades certifi from 2025.8.3 to 2026.10.19, pip from 24.2 to 26.2.2, and pip-tools from 7.5.0 to 7.6.2. certifi older than 2026.10.19 and pip older than 26.2.2 trust the compromised emSign intermediate CAs. Also removes the `pip<24.3` constraint from requirements/common_constraints.txt, which was only needed until pip-tools supported newer pip (pip-tools 7.6.2 does). Functional: pins setuptools below 82 so course-discovery can start. django-choices imports pkg_resources at runtime, and setuptools 82.0.0 removed it. setuptools wasn't pinned in the compiled requirements, so a fresh ulmo environment got the latest setuptools and failed with `No module named 'pkg_resources'`. This adds a `setuptools<82` constraint and compiles base, test, local and production requirements with --allow-unsafe, so setuptools is pinned at 80.9.0. Also includes two CI fixes needed for checks to pass on this branch: - Use the pre-built edxops/discovery-dev image for CI instead of building the Dockerfile, which is based on ubuntu:focal and can no longer install Python 3.12 from the deadsnakes PPA. This backports only the .ci/docker-compose-ci.yml part of e519c28 (#4697). - Install requirements/pip.txt before the migrations check, so setuptools stays at its pinned version. Requirements changes were generated with `make upgrade` limited to --upgrade-package for certifi, pip, pip-tools and setuptools. Part of: openedx/public-engineering#574 Co-authored-by: Claude Opus 5.5 <[email protected]>
This PR removes files for image creation and publish. It removes the following files
Dockerfile
.dockerignore
uses pre-built image instead of building from Dockerfile
related ticket - https://2u-internal.atlassian.net/browse/PROD-4456
old Issue link
edx/public-dockerfiles#4