Enable YJIT in the container
The official Ruby image ships YJIT but leaves it off. Set via ENV so the puma server and rake jobs run through podman compose exec both get it.
This commit is contained in:
1 parent
3f973a26d7
commit
e63f6f7ce7
1 file changed
+5
@@ -3,6 +3,11 @@
|
|||||||
# bookworm-backports doesn't carry a newer one either, only trixie's does.
|
# bookworm-backports doesn't carry a newer one either, only trixie's does.
|
||||||
FROM ruby:4.0.9-slim-trixie
|
FROM ruby:4.0.9-slim-trixie
|
||||||
|
|
||||||
|
# YJIT is compiled into the official image but off unless asked for. Set
|
||||||
|
# here rather than as a puma flag so `podman compose exec ... rake` jobs
|
||||||
|
# (places:index, gpx backfills) get it too.
|
||||||
|
ENV RUBY_YJIT_ENABLE=1
|
||||||
|
|
||||||
# build-essential: puma has a native (C) extension; harmless if the
|
# build-essential: puma has a native (C) extension; harmless if the
|
||||||
# platform-specific gem in Gemfile.lock already has a precompiled binary
|
# platform-specific gem in Gemfile.lock already has a precompiled binary
|
||||||
# matching this base image, but keeps the build working if it doesn't.
|
# matching this base image, but keeps the build working if it doesn't.
|
||||||
|
|||||||
Reference in new issue
Block a user