Due to https://meta.discourse.org/t/logster-2-1-0-causes-segfault-running-unicorn-in-discourse-dev-docker-image/109265
we are stuck upgrading base image.
https://github.com/github/ruby/pull/40 by @tenderlove is backported to 2.5
but we are still waiting on 2.5.4
To avoid a custom patch in our image I opted to move base to 2.6.1 and pick
up the fix direct from 2.6
echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
cd /src/ruby-build && ./install.sh &&\
- cd / && rm -rf /src/ruby-build && (ruby-build 2.5.2 /usr/local) &&\
+ cd / && rm -rf /src/ruby-build && (ruby-build 2.6.1 /usr/local) &&\
apt-get -y remove ruby
RUN gem update --system
RUN gem install bundler --force &&\
- rm -rf /usr/local/share/ri/2.5.2/system &&\
+ rm -rf /usr/local/share/ri/2.6.1/system &&\
cd / && git clone https://github.com/discourse/pups.git
ADD install-redis /tmp/install-redis