Skip to content

fix: use pre-built image instead of building from Dockerfile - #4697

Merged
UsamaSadiq merged 1 commit into
openedx:masterfrom
rjv31:remove-dockerfile-setup
Nov 26, 2025
Merged

UsamaSadiq merged 1 commit into
openedx:masterfrom
rjv31:remove-dockerfile-setup

Conversation

@rjv31

@rjv31 rjv31 commented Nov 26, 2025 •

Copy link
Copy Markdown
Contributor

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

@rjv31
rjv31 marked this pull request as ready for review November 26, 2025 13:42
@rjv31
rjv31 requested review from a team, UsamaSadiq and skumargupta83 November 26, 2025 14:43
@rjv31

rjv31 commented Nov 26, 2025

Copy link
Copy Markdown
Contributor Author

@UsamaSadiq , @openedx/committers-course-discovery could anyone please check and help review/merge this PR

@rjv31
rjv31 requested a review from feanil November 26, 2025 14:59
@UsamaSadiq

Copy link
Copy Markdown
Member

@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?

@rjv31

rjv31 commented Nov 26, 2025

Copy link
Copy Markdown
Contributor Author

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
is a more up-to-date and recommended approach for our use case, as it ensures that we align with the latest standards and support. to address these issues, and this change will help stabilize the CI pipeline and ensure smooth integration for future PRs.

@UsamaSadiq
UsamaSadiq merged commit e519c28 into openedx:master Nov 26, 2025
kdmccormick added a commit that referenced this pull request Oct 23, 2026
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]>
kdmccormick added a commit that referenced this pull request Oct 23, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants