Skip to content

Base the enclave image on Ubuntu 24.04 LTS - #9486

Merged
bitsofsteve merged 1 commit into
devfrom
chore/enclave-ubuntu-2404-base
Aug 3, 2026
Merged

Base the enclave image on Ubuntu 24.04 LTS#9486
bitsofsteve merged 1 commit into
devfrom
chore/enclave-ubuntu-2404-base

Conversation

@bitsofsteve

Copy link
Copy Markdown
Member

Moves the enclave container from python:3.12-slim (Debian 13 trixie) to Ubuntu 24.04 LTS, which ships Python 3.12 as its system interpreter — the version the workspace already targets.

Changes

- FROM python:3.12-slim
+ FROM ubuntu:24.04

Two adjustments the base change requires:

  • python3-venv is packaged separately on Ubuntu, and uv needs it to build /repo/.venv.
  • uv is installed from its standalone distribution rather than via pip, because Ubuntu marks the system interpreter externally managed (PEP 668).

Verified

Image builds clean, and reports:

OS Ubuntu 24.04.4 LTS
Python 3.12.3
uv 0.12.1

syft_client (0.1.117), syft_enclaves, fastapi, uvicorn and the attestation server module all import in the built venv.

Not yet done

The enclave test suite has not been run against this image — flagged for follow-up.

Worth noting separately: both ubuntu:24.04 and the previous python:3.12-slim are floating tags, so rebuilds can pick up a different patch level and change the attested image digest. Pinning the base by digest would make enclave builds reproducible, but that is out of scope here.

Move the enclave container from python:3.12-slim (Debian 13 trixie) to
Ubuntu 24.04 LTS, which ships Python 3.12 as its system interpreter -- the
version the workspace already targets.

Two adjustments the base change requires: python3-venv is packaged separately
on Ubuntu and uv needs it to build /repo/.venv, and uv is installed from its
standalone distribution rather than pip because Ubuntu marks the system
interpreter externally managed (PEP 668).

Verified: image builds, reports Ubuntu 24.04.4 LTS with Python 3.12.3 and
uv 0.12.1, and syft_client, syft_enclaves, fastapi, uvicorn and the
attestation server module all import in the built venv.
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

PR title does not follow the required format

Your title must follow this pattern:

type: short description

Example titles:

  • feat: add retry logic to job approval
  • fix: handle timeout in notification sender
  • docs: update syft-bg README
  • chore: bump dependencies
  • refactor: split init flow into helpers
  • test: add criteria validation tests
  • ci: add release train workflow

Allowed types: feat · fix · docs · chore · refactor · test · ci · perf · build

Just edit your PR title above to fix this. The check will re-run automatically.

See the PR guidelines for full details.

@bitsofsteve
bitsofsteve merged commit ffd7749 into dev Aug 3, 2026
19 of 20 checks passed
@bitsofsteve
bitsofsteve deleted the chore/enclave-ubuntu-2404-base branch August 3, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant