Skip to content

Commit bc45523

Browse files
authored
Merge pull request #2626 from headius/jruby-10
Update JRuby examples to use version 10
2 parents a61730a + 9642a6c commit bc45523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jruby/content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ JRuby leverages the robustness and speed of the JVM while providing the same Rub
1515
## Create a `Dockerfile` in your Ruby app project
1616

1717
```dockerfile
18-
FROM %%IMAGE%%:9
18+
FROM %%IMAGE%%:10
1919

2020
# throw errors if Gemfile has been modified since Gemfile.lock
2121
RUN bundle config --global frozen 1
@@ -44,13 +44,13 @@ $ docker run -it --name my-running-script my-ruby-app
4444
The above example `Dockerfile` expects a `Gemfile.lock` in your app directory. This `docker run` will help you generate one. Run it in the root of your app, next to the `Gemfile`:
4545

4646
```console
47-
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app %%IMAGE%%:9 bundle install --system
47+
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app %%IMAGE%%:10 bundle install --system
4848
```
4949

5050
## Run a single Ruby script
5151

5252
For many simple, single file projects, you may find it inconvenient to write a complete `Dockerfile`. In such cases, you can run a Ruby script by using the Ruby Docker image directly:
5353

5454
```console
55-
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp %%IMAGE%%:9 jruby your-daemon-or-script.rb
55+
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp %%IMAGE%%:10 jruby your-daemon-or-script.rb
5656
```

0 commit comments

Comments
 (0)