From 44531239442808d0ae7fd823195fb21ffe422bb1 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Mon, 10 May 2021 19:31:04 +0200 Subject: [PATCH 1/3] Compile Ruby with jemalloc --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a719f65b03..d8455b2d65 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list # Install all the requirements -RUN apt-get update && apt-get install -y curl git build-essential software-properties-common wget zlib1g-dev libssl1.0-dev libreadline-dev libyaml-dev libffi-dev libxml2-dev libxslt1-dev wait-for-it imagemagick unzip +RUN apt-get update && apt-get install -y curl git build-essential software-properties-common wget zlib1g-dev libssl1.0-dev libreadline-dev libyaml-dev libffi-dev libxml2-dev libxslt1-dev wait-for-it imagemagick unzip libjemalloc-dev # Setup ENV variables ENV PATH /usr/local/src/rbenv/shims:/usr/local/src/rbenv/bin:$PATH @@ -23,7 +23,7 @@ RUN git clone --depth 1 --branch v1.1.2 https://github.com/rbenv/rbenv.git ${RBE 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 && \ echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh && \ - rbenv install $(cat .ruby-version) && \ + RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install $(cat .ruby-version) && \ rbenv global $(cat .ruby-version) && \ gem install bundler --version=1.17.3 From ed6b7f1ab436e766d103f40c27af26cc3a000891 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Mon, 10 May 2021 19:57:24 +0200 Subject: [PATCH 2/3] Split apt packages list into a name per line This super long line was hard to read. --- Dockerfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d8455b2d65..2481f6b059 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,23 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list # Install all the requirements -RUN apt-get update && apt-get install -y curl git build-essential software-properties-common wget zlib1g-dev libssl1.0-dev libreadline-dev libyaml-dev libffi-dev libxml2-dev libxslt1-dev wait-for-it imagemagick unzip libjemalloc-dev +RUN apt-get update && apt-get install -y \ + curl \ + git \ + build-essential \ + software-properties-common \ + wget \ + zlib1g-dev \ + libssl1.0-dev \ + libreadline-dev \ + libyaml-dev \ + libffi-dev \ + libxml2-dev \ + libxslt1-dev \ + wait-for-it \ + imagemagick \ + unzip \ + libjemalloc-dev # Setup ENV variables ENV PATH /usr/local/src/rbenv/shims:/usr/local/src/rbenv/bin:$PATH From 43ede7ba264fa81d864735814308cefdf4186d75 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Thu, 27 May 2021 08:09:51 +0200 Subject: [PATCH 3/3] Remove libssl1.0 from Dockerfile We recently removed it from production in https://github.com/openfoodfoundation/ofn-install/commit/bd9e382fbae370c9168eac8cbc59fd991f59f5b1. --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2481f6b059..c80080d34d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,6 @@ RUN apt-get update && apt-get install -y \ software-properties-common \ wget \ zlib1g-dev \ - libssl1.0-dev \ libreadline-dev \ libyaml-dev \ libffi-dev \