Project

General

Profile

Bug #18650 » eventMachineSegmentationFault-ruby275-20220318.Dockerfile

Creates the segmentation fault using Ruby 2.7.5. - eviljoel (evil joel), 03/18/2022 05:39 PM

 
FROM ubuntu:focal
RUN apt --assume-yes update && apt --assume-yes install build-essential curl libssl-dev libz-dev
RUN curl -LO https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.5.tar.xz
RUN echo "d216d95190eaacf3bf165303747b02ff13f10b6cfab67a9031b502a49512b516 ruby-2.7.5.tar.xz" | sha256sum -c -
RUN tar -xvf ruby-2.7.5.tar.xz
RUN curl -LO https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2
RUN echo "34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6 jemalloc-5.2.1.tar.bz2" | sha256sum -c -
RUN tar -xvf jemalloc-5.2.1.tar.bz2
RUN cd jemalloc-5.2.1 && ./configure
RUN cd jemalloc-5.2.1 && make
RUN cd jemalloc-5.2.1 && make install
RUN cd ruby-2.7.5 && ./configure --with-jemalloc --enable-shared --with-opt-dir=/usr/local
RUN cd ruby-2.7.5 && make
RUN cd ruby-2.7.5 && make install
RUN /usr/local/bin/gem install eventmachine
RUN /usr/local/bin/ruby -r eventmachine -e '::EventMachine.run {return}'
(1-1/2)