Skip to content

Commit 1f94867

Browse files
Replace master branch with page content via GitHub
1 parent 16e6a5e commit 1f94867

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

index.html

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6-
<title>Docker Exec</title>
6+
<title>Docker Exec by docker-exec</title>
77

88
<link rel="stylesheet" href="stylesheets/styles.css">
99
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
@@ -19,9 +19,9 @@
1919
<header>
2020
<h1>Docker Exec</h1>
2121
<p>Execute code in many languages with Docker!</p>
22-
<p class="view"><a href="https://github.com/docker-exec/dexec">View the Project on GitHub</a></p>
22+
<p class="view"><a href="https://github.com/docker-exec">View the Project on GitHub <small>docker-exec</small></a></p>
2323
<ul>
24-
<li class="single"><a href="https://github.com/docker-exec/dexec">View On <strong>GitHub</strong></a></li>
24+
<li class="single"><a href="https://github.com/docker-exec/docker-exec.github.io">View On <strong>GitHub</strong></a></li>
2525
</ul>
2626
</header>
2727
<section>
@@ -36,7 +36,7 @@ <h3>
3636

3737
<p><img src="https://docker-exec.github.io/images/dexec-short-1.0.1.gif" alt="dexec demo animation"></p>
3838

39-
<p>Let's take a closer look at one of the examples, <a href="https://github.com/docker-exec/cpp/blob/v1.0.1/test/helloworld.cpp">helloworld.cpp</a>:</p>
39+
<p>Let's take a closer look at one of the examples, <a href="https://github.com/docker-exec/cpp/blob/v1.0.2/test/helloworld.cpp">helloworld.cpp</a>:</p>
4040

4141
<div class="highlight highlight-c++"><pre>#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>iostream<span class="pl-pds">&gt;</span></span>
4242
<span class="pl-k">int</span> <span class="pl-en">main</span>() {
@@ -79,7 +79,7 @@ <h3>
7979

8080
<div class="highlight highlight-sh"><pre>$ docker run -t --rm \
8181
-v <span class="pl-s"><span class="pl-pds">$(</span><span class="pl-c1">pwd</span> -P<span class="pl-pds">)</span></span>/foo.cpp:/tmp/dexec/build/foo.cpp \
82-
dexec/cpp foo.cpp</pre></div>
82+
dexec/lang-cpp foo.cpp</pre></div>
8383

8484
<p>Arguments can be passed to the executing code using:</p>
8585

@@ -137,12 +137,15 @@ <h3>
137137
<li><a href="https://github.com/docker-exec/haskell">Haskell</a></li>
138138
<li><a href="https://github.com/docker-exec/java">Java</a></li>
139139
<li><a href="https://github.com/docker-exec/lisp">Lisp</a></li>
140+
<li><a href="https://github.com/docker-exec/lua">Lua</a></li>
141+
<li><a href="https://github.com/docker-exec/nim">Nim</a></li>
140142
<li><a href="https://github.com/docker-exec/node">Node JS</a></li>
141143
<li><a href="https://github.com/docker-exec/objc">Objective C</a></li>
142144
<li><a href="https://github.com/docker-exec/ocaml">OCaml</a></li>
143145
<li><a href="https://github.com/docker-exec/perl">Perl</a></li>
144146
<li><a href="https://github.com/docker-exec/php">PHP</a></li>
145147
<li><a href="https://github.com/docker-exec/python">Python</a></li>
148+
<li><a href="https://github.com/docker-exec/r">R</a></li>
146149
<li><a href="https://github.com/docker-exec/racket">Racket</a></li>
147150
<li><a href="https://github.com/docker-exec/ruby">Ruby</a></li>
148151
<li><a href="https://github.com/docker-exec/rust">Rust</a></li>
@@ -176,4 +179,4 @@ <h3>
176179
</script>
177180

178181
</body>
179-
</html>
182+
</html>

params.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"Docker Exec","tagline":"Execute code in many languages with Docker!","body":"### What?\r\nDocker Exec is a collection of Docker images capable of executing code in many different programming languages without requiring a single compiler or script interpreter on your machine.\r\n\r\nThe ```dexec``` command line interface provides a simple front end, picking the appropriate Docker image based on the source extension.\r\n\r\n**See the [dexec installation guide](https://github.com/docker-exec/dexec/blob/master/README.md#installation) to get started**\r\n\r\n![dexec demo animation](https://docker-exec.github.io/images/dexec-short-1.0.1.gif)\r\n\r\nLet's take a closer look at one of the examples, [helloworld.cpp](https://github.com/docker-exec/cpp/blob/v1.0.1/test/helloworld.cpp):\r\n\r\n```c++\r\n#include <iostream>\r\nint main() {\r\n std::cout << \"Hello, World!\" << std::endl;\r\n return 0;\r\n}\r\n```\r\n\r\nexecuting it is simple:\r\n\r\n```\r\n$ dexec foo.cpp\r\n\r\nHello, World!\r\n```\r\n\r\nDocker Exec also supports passing arguments to the executing program, passing arguments to the compiler, mounting extra files and directories in the executing container as well as the ability to make source files executable as scripts using a shebang.\r\n\r\n### Why?\r\nDocker Exec allows you to run code in a compiled language just as easily as you can for interpreted languages. This is useful for speeding up your ability to try things out in compiled languages.\r\n\r\nThe [uniform interface](https://github.com/docker-exec/dexec/blob/master/README.md#reference) used to execute source for all of the different languages means that calls to ```dexec``` can be shelled out from other programs who need to execute arbitrary source, for example automated answer checkers for code tests in pre-interview situations or for university exercises.\r\n\r\nAnother benefit is that the only dependency on your machine becomes Docker instead of lots of different compilers and interpreters. Docker is a powerful tool and a lot is said about its potential for running web services and databases. However, it's also great for single program execution too and this is an example of how tools can be usefully virtualised just as well as web services.\r\n\r\nFurther to this, the virtualisation of the compilation and execution acts as a sandbox in the event you're not entirely sure how safe a piece of code is to run.\r\n\r\n### How?\r\nA Docker image exists for each target language, with an associated automated build job on Docker Hub. The image contains the compiler, runtime or interpreter for that language and a [bash script](https://github.com/docker-exec/image-common) that does any of the following depending on the language:\r\n\r\n* Compile the code and run the compiled executable.\r\n* Compile the code and use a runtime to execute the compiled bytecode.\r\n* Pass the code to a script interpreter.\r\n\r\nThe ```dexec``` utility wraps the following command:\r\n\r\n```sh\r\n$ docker run -t --rm \\\r\n -v $(pwd -P)/foo.cpp:/tmp/dexec/build/foo.cpp \\\r\n dexec/cpp foo.cpp\r\n```\r\n\r\nArguments can be passed to the executing code using:\r\n\r\n```\r\n-a bar\r\n--arg bar\r\n--arg=bar\r\n```\r\n\r\nArguments can be passed to the compiler (if the language has one) using:\r\n\r\n```\r\n-b foo\r\n--build-arg foo\r\n--build-arg=foo\r\n```\r\n\r\nExtra file and folders can be mounted in the container with ```dexec``` using:\r\n\r\n```\r\n-i foo.hpp\r\n--include foo.hpp\r\n--include=foo.hpp\r\n```\r\n\r\nPrefixing a source file with a shebang that invokes dexec will make it executable:\r\n\r\n```\r\n#!/usr/bin/env dexec\r\n```\r\n\r\n### Where?\r\n* [dexec on GitHub](https://github.com/docker-exec/dexec)\r\n* [dexec on Bintray](https://bintray.com/dexec/release/dexec/view)\r\n* [Docker Exec GitHub Repositories](https://github.com/docker-exec)\r\n* [Docker Exec Images on Docker Hub](https://hub.docker.com/repos/dexec/)\r\n\r\n### Which?\r\nThe following languages are available:\r\n* [Bash](https://github.com/docker-exec/bash)\r\n* [C](https://github.com/docker-exec/c)\r\n* [Clojure](https://github.com/docker-exec/clojure)\r\n* [CoffeeScript](https://github.com/docker-exec/coffee)\r\n* [C++](https://github.com/docker-exec/cpp)\r\n* [C#](https://github.com/docker-exec/csharp)\r\n* [D](https://github.com/docker-exec/d)\r\n* [Erlang](https://github.com/docker-exec/erlang)\r\n* [F#](https://github.com/docker-exec/fsharp)\r\n* [Go](https://github.com/docker-exec/go)\r\n* [Groovy](https://github.com/docker-exec/groovy)\r\n* [Haskell](https://github.com/docker-exec/haskell)\r\n* [Java](https://github.com/docker-exec/java)\r\n* [Lisp](https://github.com/docker-exec/lisp)\r\n* [Node JS](https://github.com/docker-exec/node)\r\n* [Objective C](https://github.com/docker-exec/objc)\r\n* [OCaml](https://github.com/docker-exec/ocaml)\r\n* [Perl](https://github.com/docker-exec/perl)\r\n* [PHP](https://github.com/docker-exec/php)\r\n* [Python](https://github.com/docker-exec/python)\r\n* [Racket](https://github.com/docker-exec/racket)\r\n* [Ruby](https://github.com/docker-exec/ruby)\r\n* [Rust](https://github.com/docker-exec/rust)\r\n* [Scala](https://github.com/docker-exec/scala)\r\n\r\n### Who?\r\nI'm Andy Stanton ([@andystanton](https://github.com/andystanton)).\r\n\r\n### Help!\r\nDocumentation can be found and issues raised in each image's repository.","google":"UA-48544248-4","note":"Don't delete this file! It's used internally to help with page regeneration."}
1+
{"name":"Docker Exec","tagline":"Execute code in many languages with Docker!","body":"### What?\r\nDocker Exec is a collection of Docker images capable of executing code in many different programming languages without requiring a single compiler or script interpreter on your machine.\r\n\r\nThe ```dexec``` command line interface provides a simple front end, picking the appropriate Docker image based on the source extension.\r\n\r\n**See the [dexec installation guide](https://github.com/docker-exec/dexec/blob/master/README.md#installation) to get started**\r\n\r\n![dexec demo animation](https://docker-exec.github.io/images/dexec-short-1.0.1.gif)\r\n\r\nLet's take a closer look at one of the examples, [helloworld.cpp](https://github.com/docker-exec/cpp/blob/v1.0.2/test/helloworld.cpp):\r\n\r\n```c++\r\n#include <iostream>\r\nint main() {\r\n std::cout << \"Hello, World!\" << std::endl;\r\n return 0;\r\n}\r\n```\r\n\r\nexecuting it is simple:\r\n\r\n```\r\n$ dexec foo.cpp\r\n\r\nHello, World!\r\n```\r\n\r\nDocker Exec also supports passing arguments to the executing program, passing arguments to the compiler, mounting extra files and directories in the executing container as well as the ability to make source files executable as scripts using a shebang.\r\n\r\n### Why?\r\nDocker Exec allows you to run code in a compiled language just as easily as you can for interpreted languages. This is useful for speeding up your ability to try things out in compiled languages.\r\n\r\nThe [uniform interface](https://github.com/docker-exec/dexec/blob/master/README.md#reference) used to execute source for all of the different languages means that calls to ```dexec``` can be shelled out from other programs who need to execute arbitrary source, for example automated answer checkers for code tests in pre-interview situations or for university exercises.\r\n\r\nAnother benefit is that the only dependency on your machine becomes Docker instead of lots of different compilers and interpreters. Docker is a powerful tool and a lot is said about its potential for running web services and databases. However, it's also great for single program execution too and this is an example of how tools can be usefully virtualised just as well as web services.\r\n\r\nFurther to this, the virtualisation of the compilation and execution acts as a sandbox in the event you're not entirely sure how safe a piece of code is to run.\r\n\r\n### How?\r\nA Docker image exists for each target language, with an associated automated build job on Docker Hub. The image contains the compiler, runtime or interpreter for that language and a [bash script](https://github.com/docker-exec/image-common) that does any of the following depending on the language:\r\n\r\n* Compile the code and run the compiled executable.\r\n* Compile the code and use a runtime to execute the compiled bytecode.\r\n* Pass the code to a script interpreter.\r\n\r\nThe ```dexec``` utility wraps the following command:\r\n\r\n```sh\r\n$ docker run -t --rm \\\r\n -v $(pwd -P)/foo.cpp:/tmp/dexec/build/foo.cpp \\\r\n dexec/lang-cpp foo.cpp\r\n```\r\n\r\nArguments can be passed to the executing code using:\r\n\r\n```\r\n-a bar\r\n--arg bar\r\n--arg=bar\r\n```\r\n\r\nArguments can be passed to the compiler (if the language has one) using:\r\n\r\n```\r\n-b foo\r\n--build-arg foo\r\n--build-arg=foo\r\n```\r\n\r\nExtra file and folders can be mounted in the container with ```dexec``` using:\r\n\r\n```\r\n-i foo.hpp\r\n--include foo.hpp\r\n--include=foo.hpp\r\n```\r\n\r\nPrefixing a source file with a shebang that invokes dexec will make it executable:\r\n\r\n```\r\n#!/usr/bin/env dexec\r\n```\r\n\r\n### Where?\r\n* [dexec on GitHub](https://github.com/docker-exec/dexec)\r\n* [dexec on Bintray](https://bintray.com/dexec/release/dexec/view)\r\n* [Docker Exec GitHub Repositories](https://github.com/docker-exec)\r\n* [Docker Exec Images on Docker Hub](https://hub.docker.com/repos/dexec/)\r\n\r\n### Which?\r\nThe following languages are available:\r\n* [Bash](https://github.com/docker-exec/bash)\r\n* [C](https://github.com/docker-exec/c)\r\n* [Clojure](https://github.com/docker-exec/clojure)\r\n* [CoffeeScript](https://github.com/docker-exec/coffee)\r\n* [C++](https://github.com/docker-exec/cpp)\r\n* [C#](https://github.com/docker-exec/csharp)\r\n* [D](https://github.com/docker-exec/d)\r\n* [Erlang](https://github.com/docker-exec/erlang)\r\n* [F#](https://github.com/docker-exec/fsharp)\r\n* [Go](https://github.com/docker-exec/go)\r\n* [Groovy](https://github.com/docker-exec/groovy)\r\n* [Haskell](https://github.com/docker-exec/haskell)\r\n* [Java](https://github.com/docker-exec/java)\r\n* [Lisp](https://github.com/docker-exec/lisp)\r\n* [Lua](https://github.com/docker-exec/lua)\r\n* [Nim](https://github.com/docker-exec/nim)\r\n* [Node JS](https://github.com/docker-exec/node)\r\n* [Objective C](https://github.com/docker-exec/objc)\r\n* [OCaml](https://github.com/docker-exec/ocaml)\r\n* [Perl](https://github.com/docker-exec/perl)\r\n* [PHP](https://github.com/docker-exec/php)\r\n* [Python](https://github.com/docker-exec/python)\r\n* [R](https://github.com/docker-exec/r)\r\n* [Racket](https://github.com/docker-exec/racket)\r\n* [Ruby](https://github.com/docker-exec/ruby)\r\n* [Rust](https://github.com/docker-exec/rust)\r\n* [Scala](https://github.com/docker-exec/scala)\r\n\r\n### Who?\r\nI'm Andy Stanton ([@andystanton](https://github.com/andystanton)).\r\n\r\n### Help!\r\nDocumentation can be found and issues raised in each image's repository.","google":"UA-48544248-4","note":"Don't delete this file! It's used internally to help with page regeneration."}

0 commit comments

Comments
 (0)