Building custom Open edX Docker images with Tutor

Building custom Open edX images with Tutor lets you bake XBlocks, themes and plugins into versioned containers you control. This page covers the build sequence, the registry choices and what keeps builds repeatable across upgrades.

On this page

Why teams build custom Open edX Docker images with Tutor

If your Open edX site depends on custom XBlocks, a theme or Tutor plugins, those pieces have to run identically in every environment, from a developer laptop to staging and production. A stock image plus configuration cannot carry your code, so you need an image you build, version and deploy yourself. Tutor is the official Docker-based Open edX distribution for production and local development, and it is the route the edx-platform maintainers point to for production, since they describe bare-metal installation as complex and receiving limited community support. Tutor's plugin and hooks system, licensed under Apache 2.0, is how most custom code is wired into the build.

A team usually needs its own image when custom code must be present inside the container rather than mounted at runtime, when the same build has to be promoted from staging to production without drift, or when auditors and security reviewers need to see exactly which code and dependencies ran. If your changes are limited to settings, a stock image with configuration may be enough. Confirm early which of your components are XBlocks, theme assets or plugins, because each has different build steps and compatibility checks. Open edX is licensed under the GNU Affero General Public License version 3, so confirm with your legal team what your modifications and distribution obligations are before you publish any custom image outside your organization.

Plan around the release line you run. Open edX states that the latest named release is the only supported release and that it cannot support more than one release at a time. The current named release is Open edX Verawood, published on 30 July 2026, so an image built today should target it and your custom code should be checked against it. Every upgrade to a later named release will require rebuilding the image, so treat the build as a repeatable pipeline from the start. Ask your implementation partner or internal team to document the base image version, plugin versions and build inputs for each release you deploy.

Build and registry options and when each fits

This table compares the main ways to produce a custom Open edX image: a local build pushed by hand, a CI pipeline pushing to a private registry, and a Tutor plugin layered on top of upstream images versus a forked build. Read each row as a trade-off between who maintains the build, how repeatable it is, and what the upgrade process must absorb. The main takeaway is that repeatability comes from pinned inputs and a scripted pipeline, not from the choice of tool alone.

OptionWho maintains itRepeatabilityWhat it demands from upgrades
Local build, pushed by handOne engineer's workstation and notesLow unless the Dockerfile, plugin versions and base tags are pinned in version controlEvery upgrade depends on someone remembering the exact build steps and registry login
CI build pushed to a private registryPlatform team owns the pipeline and runnersHigh when builds run from a tagged commit with pinned dependenciesPipeline changes and registry access rules must be updated alongside each named release
Tutor plugin layered on upstream imagesPlugin author plus the team running the siteHigh, since the plugin is a versioned package and the base image is referenced by tagPlugin must be checked against each new Open edX release before the base image changes
Forked build of the platform codeYour team owns every merge from upstreamMedium, because repeatability depends on how disciplined the fork's branching isLargest effort: upstream changes must be merged, tested and rebuilt for each release
Image signing and provenanceSecurity or platform teamDepends on the registry and tooling; confirm supported features with your vendorSigning keys and verification steps need to survive upgrades and staff changes

Build sequence for a repeatable custom image

The sequence turns a set of custom Open edX components into one image build that can be reproduced, traced to its source and promoted through staging without rebuilding by hand. Each step leaves a record that the next step checks.

  1. Pin the Tutor version

    The platform team records the exact Tutor version the build will use in version-controlled configuration, so every build resolves the same tooling. Tutor is the official Docker-based Open edX distribution and its plugin and hooks system is what the build depends on, so a floating version would change the build without any code change. Done when the pinned version is committed, the build pipeline reads it from that file, and a test build reports the same version string in its logs.

  2. Pin the Open edX release

    Choose the named Open edX release the platform runs and record it alongside the Tutor pin. Open edX supports only the latest named release at a time, so the release choice determines which XBlock and theme versions are compatible. Confirm the current release and its support status in the Open edX release notes before committing the value. Done when the release identifier is committed next to the Tutor version and the team has noted which release each component was tested against.

  3. Version-control XBlocks, themes and plugins

    Move every XBlock, theme, Django app plugin and Tutor plugin into its own repository or a monorepo folder with tagged releases. Each component gets a version number and a changelog entry, and no one edits code directly on a server. The owner of each component is named in the repository, and the team confirms that each one installs with the pinned release. Done when every custom component can be checked out at a specific tag and installs cleanly against the pinned release in a scratch environment.

  4. Configure the build from committed inputs

    Write the build configuration that tells Tutor which plugins to enable, which custom packages to install and which theme to apply, all from committed files. Secrets stay out of the build and are supplied at deploy time from the secret store. Keep one configuration file per environment, and document which settings change the image contents and which change only runtime behavior. Done when a clean checkout produces the same configuration output on two machines, and the config diff for any change is readable in review.

  5. Build the image in CI

    Run the image build in a continuous integration pipeline from a clean runner, not from a developer workstation. The pipeline installs the pinned Tutor, applies the configuration, builds the image and runs the component tests and linting. It writes a build record listing the source commits, component versions, Tutor version, release identifier and the resulting image digest. Done when a build from a tagged commit completes without manual steps and the build record can be reproduced by rerunning the same pipeline on that commit.

  6. Push to a private registry with immutable tags

    Push the built image to the organization's private registry under a tag derived from the build, such as the commit or release version, and configure the registry to reject overwrites of that tag. Mutable tags like latest are not used for deployment. Confirm the registry settings with the registry vendor or your platform documentation, since immutability options differ by product. Done when the image digest in the registry matches the digest in the build record and a second push of the same tag is refused.

  7. Deploy to staging and check the services

    Deploy the exact image by digest to a staging environment that matches production in configuration, with the same plugins and theme enabled. Verify that the image digest running in staging matches the build record, then confirm that the LMS and Studio both start, answer requests and load a sample course with the custom XBlocks and theme in place. Done when the deployed digest matches the record and both services pass their health checks and the smoke tests the team agreed for the release.

  8. Promote the same digest to production

    Promote the image that passed staging to production by digest, without rebuilding it. The change record references the build record, the staging test results and the configuration commit, so an auditor or on-call engineer can trace production back to source. Keep the previous digest available as a rollback target until the new one has run through the agreed observation period. Done when production reports the same digest as staging and the rollback target is recorded. Release-specific changes between Open edX versions are covered in the upgrade pages, so this sequence does not replace them.

How source, build, registry and environments connect

The build starts in version control, where custom XBlocks, themes and plugins sit next to a pinned Tutor version. A CI job builds the image and pushes it to a private registry inside a trust boundary that also guards the push credentials. Staging pulls the tagged image first, and production pulls the same artifact only after staging checks pass. Check that the image tag, not a mutable branch, is what each environment deploys.

Custom code and a pinned Tutor version feed one CI build, which publishes to a registry both environments pull from.

What keeps image builds repeatable for upgrades

A custom Open edX image is only as reproducible as the inputs behind it. The controls below pin the tools, the code, the dependencies and the steps, so that a rebuild six months later produces the same image or a difference you can explain.

Pin the Tutor version

Record the exact Tutor version used to build each image and install it from a fixed version rather than whatever is current at build time. Open edX supports only the latest named release at any moment, so the Tutor version you pin should match the Open edX release you target. Check the Tutor documentation for the release each Tutor version targets before you move the pin. Store the pin in the same repository as your plugin code so the two change together.

Current named release
Verawood
Tutor docs

Tag images with commit hashes

Tag every built image with the Git commit hash of the source it was built from, and treat those tags as immutable: once pushed, a tag is never overwritten. Mutable tags such as latest make it impossible to tell which XBlock or theme version is running in production. Your deployment manifests should reference the hash tag, so a rollback means redeploying a known digest rather than rebuilding from memory.

Lock Python and frontend dependencies

Commit a Python lockfile for every custom XBlock, plugin and theme package, and a Node lockfile for any frontend or micro-frontend code. Unpinned transitive dependencies are the most common reason a rebuild of unchanged code fails or behaves differently. Open edX itself is built on Python, JavaScript and Django, so a plugin that pulls in a different Django or React minor version can break at startup. Review lockfile diffs as carefully as code diffs during upgrades.

Pin plugins and XBlocks

An unpinned plugin or XBlock installs whatever version the package index serves on the day of the build. A new release can add a dependency on an Open edX API that the running release does not provide, and the failure may appear only at runtime, in one course type. Pin each third-party plugin to a specific version and record its supported Open edX release. Ask each plugin maintainer which releases they test against before you upgrade.

Document the rebuild procedure

Write one runbook that lists the steps to rebuild an image from a clean checkout: which Tutor version to install, which base image to use, which plugins to enable, and which commands to run in order. Keep it in the repository beside the Dockerfile and test it on a clean build machine. A second engineer should be able to produce the same image hash from the runbook alone. Note any step that depends on a credential or a private registry so it is not a surprise during an incident.

Test rebuilds against a new base

Before an upgrade, rebuild the image on a staging branch against the new Open edX release and the new base image, without touching production. Run the custom XBlock and theme test suites, start the LMS and Studio containers, and load a course that uses each custom component. Compare the new image's plugin list and dependency versions with the current one, and keep a written record of every failure and its fix. Only promote the image to the private registry once this rebuild passes.

Common questions about custom Open edX images

How much effort does a custom Open edX image pipeline take?

Effort depends mostly on how many custom components you ship and how much they depend on core platform code. A pipeline that builds one theme and one small XBlock is a short piece of work, while a set of XBlocks, a theme, and several Tutor plugins that each pin their own dependencies takes considerably longer to design, test and document. Ask any provider to break the quote into components, the Dockerfile and build steps, the CI job, registry setup, and the upgrade rehearsal, so you can see where the effort sits.

What does the work need from our own team?

You need named people who can make decisions about the code and the environment. Expect to provide access to the source repositories for your XBlocks, themes and plugins, a registry you control, a CI system where the builds will run, and someone who can approve changes to the image contents. Your engineers should also own the custom code after handover, because they will be the ones who fix it when a dependency changes. Confirm these responsibilities in the written scope before work starts.

Can our own team build custom Open edX images without a partner?

Yes, if your team already runs Docker builds and CI pipelines and has someone comfortable with Python packaging and Tutor's plugin model. Tutor is open source and documents how images are built and how plugins are loaded, so the basic approach is within reach of an experienced platform team. The usual gap is not the first build but the repeatable part: pinning versions, testing against each named release, and keeping the image definition under version control. If that discipline is missing in your team today, a partner can set it up and then hand it over.

How long does it take to reach a first repeatable build?

The time to a first repeatable build depends on how much of the image is custom, how clean your source code is, and whether the dependencies install without manual steps. Simple builds with a few packages move quickly, while components with unpinned or conflicting dependencies need resolution work before a build can be repeated. Ask for milestones in the written plan: the first successful local build, the first build in CI, a build from a clean environment, and a test deployment from the registry image. Those checkpoints tell you more than a single date.

What recurs after go-live for custom images?

Several things recur after the first build succeeds. Dependencies change, so you need periodic rebuilds and a process for updating pins. Each named Open edX release can change the platform code your components depend on, so every upgrade needs a rebuild and retest of the custom parts. Base images, security patches and Tutor versions also move on their own schedule. Ask whether the quote includes ongoing rebuilds and upgrade testing, or whether it covers only the initial build, and whether that work is a retainer or a separate project.

What drives the cost of a quote for this work?

The main drivers are the number of custom components, how often their dependencies change, the maturity of your CI and registry setup, and how much testing the image needs before it reaches production. Each XBlock, theme or plugin adds design, build and test work. Components that track fast-moving libraries add rebuild effort over time. Teams with no CI or no private registry need that infrastructure built, which adds scope. Request a quote that lists these items separately, including what is one-time setup and what is recurring work.

How do we keep custom image builds secure and traceable?

Keep base images, dependency sources and registry access under your control, and make every build traceable to a specific commit and a specific set of pinned versions. Store the image definition in version control, restrict who can push to the private registry, and record which image is running in each environment. Confirm with your security team how they want build provenance and vulnerability scanning handled, since their requirements will shape the CI job. DeployOpen can deliver these controls as part of the build pipeline work, but your auditors and certification bodies decide whether they meet your compliance needs.

What changes for your team after the first build

The first build is not the last one. Every Tutor release and every named Open edX release means rebuilding the custom image, retesting your XBlocks, themes and plugins against the new code, and updating the image tags in your private registry. Open edX supports only the latest named release, so a platform that stays on an older release will eventually fall outside what the community can help with. Plan this as a recurring cycle with a named owner, not as an occasional project. The release-specific upgrade pages in this series cover the breaking changes, data migrations and deprecations for each release, and they are the first read before you start a rebuild. Confirm with your partner which Tutor version your build pins and how it is recorded in the repository.

Ownership usually splits along the line between building and running. The implementation partner typically writes and tests the custom code, sets up the build pipeline and documents the build steps. Your platform team typically owns the registry, the deployment of new tags, the staging-to-production promotion and the on-call response when a build fails. Agree in writing who approves a rebuild, who runs the regression tests on the learner and instructor paths, and who decides when a plugin is dropped because it no longer works on the current release. Ask the partner to state which parts of the upgrade cycle are included in a fixed scope and which would be a separate retainer.

Hand over documentation that lets your team rebuild without the partner in the room. At minimum, that means the Dockerfile and build scripts with their pinned versions, a list of every custom XBlock, theme and plugin with its source location and owner, the registry layout and tag naming rules, the environment variables and secrets each image expects, and a test checklist for each release. Also hand over a record of known incompatibilities and workarounds. Ask for a dry run where your staff rebuild and deploy one image from the documentation alone. Gaps found in that dry run are cheaper to fix before go-live than during the next release cycle.

How DeployOpen scopes and delivers custom Open edX image builds

DeployOpen approaches custom Open edX image builds as a fixed-scope piece of work with written deliverables. We agree which XBlocks, themes and plugins go into the image, how the build and registry are set up, and how each upgrade will be repeated before any build starts.

How we scope

  • Inventory every XBlock, theme, plugin and patch that must be baked into the Tutor image and record its source and version.
  • Agree in writing which Tutor version, Open edX release and private registry the image build targets.
  • Define the test, rollback and retention rules for images, and confirm ongoing support or retainer terms before work begins.

How we build

  • Write the Tutor plugin or configuration that adds your custom components to the image build in a version-controlled repository.
  • Build images from pinned inputs so the same source produces the same image on every run and on every upgrade.
  • Push tagged images to your private registry and test them in a staging environment before any production rollout.

How we hand over

  • Document the build steps, tag naming, registry paths and the commands your team runs to rebuild and redeploy.
  • Walk your engineers through the upgrade procedure, including how to rebuild the image against a new named release.
  • Deliver the repository, runbooks and test results so your team can operate the image pipeline without DeployOpen.

How we support

  • Offer ongoing support, upgrade work and continuous testing for custom images as a retainer, scoped in writing.
  • Review plugin and XBlock compatibility each time a new Open edX release becomes the target for your platform.
  • Keep image builds reproducible across upgrades, so changes are traceable to a specific source revision and build.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.