Skip to content

kaspergrubbe/grubruby-jemalloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grubruby-jemalloc

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.

Versioning

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.

How to use Jemalloc

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