mirror of
https://github.com/clearlinux/docs.git
synced 2026-09-07 22:51:29 +00:00
Fix a number of "too-specific" versions
This commit is contained in:
+3
-3
@@ -29,7 +29,7 @@ type system and automatic memory management.
|
||||
|
||||
## Create a `Dockerfile` in your Ruby app project
|
||||
|
||||
FROM ruby:2.1.2-onbuild
|
||||
FROM ruby:2.1-onbuild
|
||||
CMD ["./your-daemon-or-script.rb"]
|
||||
|
||||
Put this file in the root of your app, next to the `Gemfile`.
|
||||
@@ -49,7 +49,7 @@ The `onbuid` tag 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`:
|
||||
|
||||
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1.2 bundle install --system
|
||||
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1 bundle install --system
|
||||
|
||||
## Run a single Ruby script
|
||||
|
||||
@@ -57,7 +57,7 @@ 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:
|
||||
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp ruby:2.1.2 ruby your-daemon-or-script.rb
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp ruby:2.1 ruby your-daemon-or-script.rb
|
||||
|
||||
# License
|
||||
|
||||
|
||||
+3
-3
@@ -14,7 +14,7 @@ type system and automatic memory management.
|
||||
|
||||
## Create a `Dockerfile` in your Ruby app project
|
||||
|
||||
FROM ruby:2.1.2-onbuild
|
||||
FROM ruby:2.1-onbuild
|
||||
CMD ["./your-daemon-or-script.rb"]
|
||||
|
||||
Put this file in the root of your app, next to the `Gemfile`.
|
||||
@@ -34,7 +34,7 @@ The `onbuid` tag 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`:
|
||||
|
||||
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1.2 bundle install --system
|
||||
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app ruby:2.1 bundle install --system
|
||||
|
||||
## Run a single Ruby script
|
||||
|
||||
@@ -42,4 +42,4 @@ 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:
|
||||
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp ruby:2.1.2 ruby your-daemon-or-script.rb
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp ruby:2.1 ruby your-daemon-or-script.rb
|
||||
|
||||
Reference in New Issue
Block a user