From 6caef1e1eb5ef1076e2ba212cce93442c0517b12 Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Tue, 30 Sep 2014 14:25:33 -0600 Subject: [PATCH] Add example to generate Gemfile.lock for ruby bundler --- jruby/README.md | 8 ++++++++ jruby/content.md | 8 ++++++++ rails/README.md | 8 ++++++++ rails/content.md | 8 ++++++++ ruby/README.md | 8 ++++++++ ruby/content.md | 8 ++++++++ 6 files changed, 48 insertions(+) diff --git a/jruby/README.md b/jruby/README.md index 63da478a2..77d9c1335 100644 --- a/jruby/README.md +++ b/jruby/README.md @@ -42,6 +42,14 @@ You can then build and run the Ruby image: docker build -t my-ruby-app . docker run -it --name my-running-script my-ruby-app +### Generate a `Gemfile.lock` + +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 jruby:1.7.15 bundle install --system + ## Run a single Ruby script For many simple, single file projects, you may find it inconvenient to write a diff --git a/jruby/content.md b/jruby/content.md index 6049f5468..b2bf6e7e0 100644 --- a/jruby/content.md +++ b/jruby/content.md @@ -36,6 +36,14 @@ You can then build and run the Ruby image: docker build -t my-ruby-app . docker run -it --name my-running-script my-ruby-app +### Generate a `Gemfile.lock` + +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 jruby:1.7.15 bundle install --system + ## Run a single Ruby script For many simple, single file projects, you may find it inconvenient to write a diff --git a/rails/README.md b/rails/README.md index 2a653b00f..0d78137f9 100644 --- a/rails/README.md +++ b/rails/README.md @@ -41,6 +41,14 @@ need access outside the host, on port 8080: You can then go to `http://localhost:8080` or `http://host-ip:8080` in a browser. +### Generate a `Gemfile.lock` + +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 + # License View [license information](https://github.com/rails/rails#license) diff --git a/rails/content.md b/rails/content.md index 34a32e7c0..a85c610a5 100644 --- a/rails/content.md +++ b/rails/content.md @@ -35,3 +35,11 @@ need access outside the host, on port 8080: You can then go to `http://localhost:8080` or `http://host-ip:8080` in a browser. + +### Generate a `Gemfile.lock` + +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 diff --git a/ruby/README.md b/ruby/README.md index ee19a4b24..5950ff652 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -37,6 +37,14 @@ You can then build and run the Ruby image: docker build -t my-ruby-app . docker run -it --name my-running-script my-ruby-app +### Generate a `Gemfile.lock` + +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 + ## Run a single Ruby script For many simple, single file projects, you may find it inconvenient to write a diff --git a/ruby/content.md b/ruby/content.md index dbc215283..f58737f7b 100644 --- a/ruby/content.md +++ b/ruby/content.md @@ -28,6 +28,14 @@ You can then build and run the Ruby image: docker build -t my-ruby-app . docker run -it --name my-running-script my-ruby-app +### Generate a `Gemfile.lock` + +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 + ## Run a single Ruby script For many simple, single file projects, you may find it inconvenient to write a