CNG: Enable bootsnap in rails containers
Follow-up from #1361 (closed)
For CNG images it might make a lot of sense to enable this in production since all the code is already containerized.
During the course of #1361 (closed), it was found that we could not pre-compile the cache in order to bake it into the released CNG images because of the use of
uname -v in the cache keying. We opened an upstream MR to address this, instead using the
GLIBC_VERSION where / when available.
Once the upstream supports containerization in the manner we need it, we can implement this within the images via CI.
- Cache is not portable between hosts, even when containerized #1361 (comment 254827792)
- Upstream MR to replace
- Implementation of
ENABLE_BOOTSNAP=1for task-runner (!1056 (merged)) and migrations job(s) (!1069 (merged)) is completed.