Merge pull request #1591 from Retrospring/jemalloc

build ruby with jemalloc
This commit is contained in:
Georg Gadinger 2024-01-22 18:08:56 +01:00 committed by GitHub
commit 56eca2b3a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ RUN zypper addrepo https://download.opensuse.org/repositories/devel:languages:no
libffi-devel \ libffi-devel \
libopenssl-devel \ libopenssl-devel \
libyaml-devel \ libyaml-devel \
jemalloc-devel \
make \ make \
ncurses-devel \ ncurses-devel \
readline-devel \ readline-devel \
@ -52,7 +53,7 @@ RUN curl -Lo ruby-install-${RUBY_INSTALL_VERSION}.tar.gz https://github.com/post
&& tar xvf ruby-install-${RUBY_INSTALL_VERSION}.tar.gz \ && tar xvf ruby-install-${RUBY_INSTALL_VERSION}.tar.gz \
&& (cd ruby-install-${RUBY_INSTALL_VERSION} && make install) \ && (cd ruby-install-${RUBY_INSTALL_VERSION} && make install) \
&& rm -rf ruby-install-${RUBY_INSTALL_VERSION} ruby-install-${RUBY_INSTALL_VERSION}.tar.gz \ && rm -rf ruby-install-${RUBY_INSTALL_VERSION} ruby-install-${RUBY_INSTALL_VERSION}.tar.gz \
&& ruby-install --no-install-deps --cleanup --system --jobs=$(nproc) ruby ${RUBY_VERSION} -- --disable-install-rdoc \ && ruby-install --no-install-deps --cleanup --system --jobs=$(nproc) ruby ${RUBY_VERSION} -- --disable-install-rdoc --with-jemalloc \
&& gem install bundler:${BUNDLER_VERSION} && gem install bundler:${BUNDLER_VERSION}
# create user and dirs to run retrospring in # create user and dirs to run retrospring in