From 4df4f20a9e9ae52301547ab28ac11aee63c34b2b Mon Sep 17 00:00:00 2001 From: gsaraf Date: Mon, 5 Oct 2020 16:34:29 +0300 Subject: [PATCH] Update Ruby, Rails versions in rails.md Rails 6 requires Yarn, the source of which needs to be added to apt. See installation instructions https://classic.yarnpkg.com/en/docs/install/#debian-stable Tested by following instructions and getting to working Rails setup. --- compose/rails.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compose/rails.md b/compose/rails.md index 19312ec58941..ab2591be1907 100644 --- a/compose/rails.md +++ b/compose/rails.md @@ -13,8 +13,10 @@ a Rails/PostgreSQL app. Before starting, [install Compose](install.md). Start by setting up the files needed to build the app. The app will run inside a Docker container containing its dependencies. Defining dependencies is done using a file called `Dockerfile`. To begin with, the Dockerfile consists of: - FROM ruby:2.5 - RUN apt-get update -qq && apt-get install -y nodejs postgresql-client + FROM ruby:2.7 + RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - + RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list + RUN apt-get update -qq && apt-get install -y nodejs postgresql-client yarn RUN mkdir /myapp WORKDIR /myapp COPY Gemfile /myapp/Gemfile