Skip to content

Pre-install LLVM 9 in 22.04 dev Docker image#242

Merged
PurHur merged 1 commit into
masterfrom
issue-237-preinstall-llvm9-docker
May 19, 2026
Merged

Pre-install LLVM 9 in 22.04 dev Docker image#242
PurHur merged 1 commit into
masterfrom
issue-237-preinstall-llvm9-docker

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

  • Run script/install-llvm9.sh during docker build into /opt/llvm9 with PHP_COMPILER_LLVM_PATH and LD_LIBRARY_PATH set in the image.
  • Resolve LLVM from bind-mounted .llvm/, PHP_COMPILER_LLVM_PATH, or /opt/llvm9 in php-env.sh; skip redundant download in ci-local.sh when a toolchain is already present.
  • Build the 22.04 dev image from the repository root (make docker-build-22); add .dockerignore to keep layers smaller.

Closes #237.

Test plan

  • docker build -f Docker/dev/ubuntu-22.04/Dockerfile -t php-compiler:22.04-dev .
  • Fresh container prints LLVM 9 found at /opt/llvm9 without running install-llvm9.sh download
  • @group llvm tests execute in container (not 100% skipped)
  • ./script/docker-ci-local.sh full green (long-running on harness)

Made with Cursor

Bake the bundled LLVM 9 toolchain into /opt/llvm9 at image build time so
container CI finds JIT/AOT dependencies without re-downloading on every run.
Resolve PHP_COMPILER_LLVM_PATH from bind-mounted .llvm, env, or /opt/llvm9.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 575f505 into master May 19, 2026
1 check failed
@PurHur PurHur deleted the issue-237-preinstall-llvm9-docker branch May 19, 2026 09:01
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.

Infrastructure: Pre-install LLVM 9 in 22.04 dev Docker image for JIT/AOT CI

1 participant