Minor fixes to several readmes, and fixed ruby readme to be consistent with the other scripting languages.

This commit is contained in:
Moghedrin 2014-09-05 13:55:36 -06:00
parent 571b4bae20
commit 1561546c56
9 changed files with 29 additions and 17 deletions

View File

@ -5,7 +5,7 @@ The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Proje
# How to use this image # How to use this image
## Start a gcc instance running your app ## Start a gcc instance running your app.
For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project. For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project.

View File

@ -5,7 +5,7 @@ The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Proje
# How to use this image # How to use this image
## Start a gcc instance running your app ## Start a gcc instance running your app.
For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project. For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project.

View File

@ -5,7 +5,7 @@ Go, also called golang, is a programming language initially developed at Google
# How to use this image # How to use this image
## Start a go instance running in your app ## Start a go instance running in your app.
For this image, the most straight-forward use is to use a golang container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project. For this image, the most straight-forward use is to use a golang container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project.

View File

@ -5,7 +5,7 @@ Go, also called golang, is a programming language initially developed at Google
# How to use this image # How to use this image
## Start a go instance running in your app ## Start a go instance running in your app.
For this image, the most straight-forward use is to use a golang container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project. For this image, the most straight-forward use is to use a golang container as both the build environment as well as the runtime environment. In your Dockerfile, you can do something along the lines of the following will compile and run your project.

View File

@ -1,5 +1,5 @@
# What is Perl? # What is Perl?
Perl is a family of high-level, general-purpose, interpreted, dynamic programming language. Perl is a family of high-level, general-purpose, interpreted, dynamic programming language. The Perl languages borrow freatures from other programming languages including C, shell scripting (sh), AWK, and sed.
> [wikipedia.org/wiki/Perl](https://en.wikipedia.org/wiki/Perl) > [wikipedia.org/wiki/Perl](https://en.wikipedia.org/wiki/Perl)

View File

@ -1 +1 @@
Perl is a family of high-level, general-purpose, interpreted, dynamic programming language.

View File

@ -1,5 +1,5 @@
# What is Perl? # What is Perl?
Perl is a family of high-level, general-purpose, interpreted, dynamic programming language. Perl is a family of high-level, general-purpose, interpreted, dynamic programming language. The Perl languages borrow freatures from other programming languages including C, shell scripting (sh), AWK, and sed.
> [wikipedia.org/wiki/Perl](https://en.wikipedia.org/wiki/Perl) > [wikipedia.org/wiki/Perl](https://en.wikipedia.org/wiki/Perl)

View File

@ -7,7 +7,8 @@ According to its authors, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, a
# How to use this image # How to use this image
## 1. create a `Dockerfile` in your ruby app project ## Create a `Dockerfile` in your ruby app project
FROM ruby FROM ruby
CMD ["./your-daemon-or-script.rb"] CMD ["./your-daemon-or-script.rb"]
@ -15,8 +16,13 @@ Put this file in the root of your app, next to the `Gemfile`.
This image includes multiple `ONBUILD` triggers so that should be all that you need to bootstrap most applications. The build will `ADD . /usr/src/app` and `RUN bundle install`. This image includes multiple `ONBUILD` triggers so that should be all that you need to bootstrap most applications. The build will `ADD . /usr/src/app` and `RUN bundle install`.
## 2. build the ruby app image Then build and run the ruby image.
docker build -t my-ruby-app .
## 3. start the ruby app container docker build -t my-ruby-app .
docker run -it --name some-ruby-app my-ruby-app docker run -it --name my-running-script my-ruby-app
## Run a single ruby script
For many single file projects, it may not be convenient to write a `Dockerfile` for your project. 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 ruby your-daemon-or-script.rb

View File

@ -7,7 +7,8 @@ According to its authors, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, a
# How to use this image # How to use this image
## 1. create a `Dockerfile` in your ruby app project ## Create a `Dockerfile` in your ruby app project
FROM ruby FROM ruby
CMD ["./your-daemon-or-script.rb"] CMD ["./your-daemon-or-script.rb"]
@ -15,11 +16,16 @@ Put this file in the root of your app, next to the `Gemfile`.
This image includes multiple `ONBUILD` triggers so that should be all that you need to bootstrap most applications. The build will `ADD . /usr/src/app` and `RUN bundle install`. This image includes multiple `ONBUILD` triggers so that should be all that you need to bootstrap most applications. The build will `ADD . /usr/src/app` and `RUN bundle install`.
## 2. build the ruby app image Then build and run the ruby image.
docker build -t my-ruby-app .
## 3. start the ruby app container docker build -t my-ruby-app .
docker run -it --name some-ruby-app my-ruby-app docker run -it --name my-running-script my-ruby-app
## Run a single ruby script
For many single file projects, it may not be convenient to write a `Dockerfile` for your project. 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 ruby your-daemon-or-script.rb
# Issues and Contributing # Issues and Contributing