1
0
Эх сурвалжийг харах

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

Moghedrin 11 жил өмнө
parent
commit
1561546c56

+ 1 - 1
gcc/README-content.md

@@ -5,7 +5,7 @@ The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Proje
 
 # 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.
 

+ 1 - 1
gcc/README.md

@@ -5,7 +5,7 @@ The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Proje
 
 # 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.
 

+ 1 - 1
golang/README-content.md

@@ -5,7 +5,7 @@ Go, also called golang, is a programming language initially developed at Google
 
 # 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.
 

+ 1 - 1
golang/README.md

@@ -5,7 +5,7 @@ Go, also called golang, is a programming language initially developed at Google
 
 # 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.
 

+ 1 - 1
perl/README-content.md

@@ -1,5 +1,5 @@
 # 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)
 

+ 1 - 1
perl/README-short.txt

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

+ 1 - 1
perl/README.md

@@ -1,5 +1,5 @@
 # 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)
 

+ 10 - 4
ruby/README-content.md

@@ -7,7 +7,8 @@ According to its authors, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, a
 
 # How to use this image
 
-## 1. create a `Dockerfile` in your ruby app project
+## Create a `Dockerfile` in your ruby app project
+
     FROM ruby
     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`.
 
-## 2. build the ruby app image
+Then build and run the ruby image.
+
     docker build -t 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.
 
-## 3. start the ruby app container
-    docker run -it --name some-ruby-app my-ruby-app
+    docker run -it --rm --name my-running-script -v $(pwd):/usr/src/myapp -w /usr/src/myapp ruby ruby your-daemon-or-script.rb

+ 10 - 4
ruby/README.md

@@ -7,7 +7,8 @@ According to its authors, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, a
 
 # How to use this image
 
-## 1. create a `Dockerfile` in your ruby app project
+## Create a `Dockerfile` in your ruby app project
+
     FROM ruby
     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`.
 
-## 2. build the ruby app image
+Then build and run the ruby image.
+
     docker build -t 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.
 
-## 3. start the ruby app container
-    docker run -it --name some-ruby-app my-ruby-app
+    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