Skip to content

Commit 53da482

Browse files
stevensonajohndmulhausen
authored andcommitted
Update to Rails 5, Ruby 2.3.3, remove therubyracer (docker#718)
* Update to Rails 5, Ruby 2.3.3, remove therubyracer Update packages to latest versions. The actual nodejs is installed on line 18. Changed to a general comment regarding the need to rebuild images when adding gems. * update rails welcome screenshot to 5.0.0.1
1 parent a086af7 commit 53da482

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

compose/images/rails-welcome.png

172 KB
Loading

compose/rails.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies, you'll need to define exactly what needs to be included in the
1414
container. This is done using a file called `Dockerfile`. To begin with, the
1515
Dockerfile consists of:
1616

17-
FROM ruby:2.2.0
17+
FROM ruby:2.3.3
1818
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
1919
RUN mkdir /myapp
2020
WORKDIR /myapp
@@ -30,7 +30,7 @@ how to write Dockerfiles, see the [Docker user guide](/engine/tutorials/dockerim
3030
Next, create a bootstrap `Gemfile` which just loads Rails. It'll be overwritten in a moment by `rails new`.
3131

3232
source 'https://rubygems.org'
33-
gem 'rails', '4.2.0'
33+
gem 'rails', '5.0.0.1'
3434

3535
You'll need an empty `Gemfile.lock` in order to build our `Dockerfile`.
3636

@@ -99,12 +99,7 @@ If you are running Docker on Mac or Windows, you should already have ownership
9999
of all files, including those generated by `rails new`. List the files just to
100100
verify this.
101101

102-
Uncomment the line in your new `Gemfile` which loads `therubyracer`, so you've
103-
got a Javascript runtime:
104-
105-
gem 'therubyracer', platforms: :ruby
106-
107-
Now that you've got a new `Gemfile`, you need to build the image again. (This,
102+
If you edit `Gemfile` at this point or later, you will need to build the image again. (This,
108103
and changes to the Dockerfile itself, should be the only times you'll need to
109104
rebuild.)
110105

0 commit comments

Comments
 (0)