This is a collection of Ruby images that ships with stable releases of jemalloc.
Everything here is heavily inspired of how the Discourse project (https://github.com/discourse) are building their Docker images, but the main Dockerfiles are using the base of https://github.com/docker-library/ruby.
GRUBRUBY_IMAGE_VERSION
starts versioning 8001 to not be confused with Ruby patchlevels. To understand the versioning of these images, we use the following format:
RUBY_MAJOR.RUBY_MINOR.RUBY_MINOR.GRUBRUBY_IMAGE_VERSION
So if you download version 2.5.1.8001
you are getting Ruby-version 2.5.1
and version 8001
of Grubruby.
File locations for Jemalloc is:
- Jemalloc stable release version 3:
/usr/local/lib/libjemalloc3.so
- Jemalloc stable release version 4:
/usr/local/lib/libjemalloc4.so
- Jemalloc stable release version 5.2.1:
/usr/local/lib/libjemalloc5.so
- Jemalloc stable release version 5.3.0:
/usr/local/lib/libjemalloc5_3.so
To use Jemalloc in your Dockerfile
, pick a version, and use ENV LD_PRELOAD
:
ENV LD_PRELOAD=/usr/local/lib/libjemalloc5.so