From 0f85db6d366fe730acf84e0e5db60ca6750f7f07 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Thu, 27 May 2021 13:16:42 +0200 Subject: [PATCH 1/2] Fix Rbenv and ruby-build installation to get 2.5.9 This newer Ruby version can't be found on that ruby-build's branch that we were installing. The `docker-compose build` command works again. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c80080d34d..6c95ba6673 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,9 +34,8 @@ WORKDIR /usr/src/app COPY .ruby-version . # Install Rbenv & Ruby -RUN git clone --depth 1 --branch v1.1.2 https://github.com/rbenv/rbenv.git ${RBENV_ROOT} && \ - git clone --depth 1 --branch v20200520 https://github.com/rbenv/ruby-build.git ${RBENV_ROOT}/plugins/ruby-build && \ - ${RBENV_ROOT}/plugins/ruby-build/install.sh && \ +RUN git clone --depth 1 https://github.com/rbenv/rbenv.git ${RBENV_ROOT} && \ + git clone --depth 1 https://github.com/rbenv/ruby-build.git ${RBENV_ROOT}/plugins/ruby-build && \ echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh && \ RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install $(cat .ruby-version) && \ rbenv global $(cat .ruby-version) && \ From fbd4d512d55c02c2b82edf6b5a8cfbe26481fb89 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Thu, 27 May 2021 17:49:12 +0200 Subject: [PATCH 2/2] Add libssl as required by Ruby 2.5.9 This is a more recent libssl version in Ubuntu 20. Not related to the libssl1.0 hack required by older Ruby versions. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6c95ba6673..1a67ecbc7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,8 @@ RUN apt-get update && apt-get install -y \ wait-for-it \ imagemagick \ unzip \ - libjemalloc-dev + libjemalloc-dev \ + libssl-dev # Setup ENV variables ENV PATH /usr/local/src/rbenv/shims:/usr/local/src/rbenv/bin:$PATH