forked from docker-library/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs for trying to be official docker images for Erlang OTP
- Loading branch information
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Erlang is a programming language used to build massively scalable systems with high availability. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# What is Erlang? | ||
|
||
Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. | ||
|
||
> [wikipedia.org/wiki/Erlang_(programming_language)](https://en.wikipedia.org/wiki/Erlang_%28programming_language%29) | ||
%%LOGO%% | ||
|
||
# How to use this image | ||
|
||
## Run it as the REPL | ||
|
||
```console | ||
➸ docker run -it --rm erlang | ||
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] | ||
|
||
Eshell V7.1 (abort with ^G) | ||
1> uptime(). | ||
3 seconds | ||
ok | ||
2> % use Ctrl+G to call the shell switch | ||
User switch command | ||
--> ? | ||
c [nn] - connect to job | ||
i [nn] - interrupt job | ||
k [nn] - kill job | ||
j - list all jobs | ||
s [shell] - start local shell | ||
r [node [shell]] - start remote shell | ||
q - quit erlang | ||
? | h - this message | ||
--> q | ||
➸ docker run -it --rm -h erlang.local erlang erl -name [email protected] | ||
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] | ||
|
||
Eshell V7.1 (abort with ^G) | ||
([email protected])1> erlang:system_info(otp_release). | ||
"18" | ||
([email protected])2> | ||
User switch command | ||
--> q | ||
``` | ||
|
||
## Run a single Erlang escript | ||
|
||
```console | ||
$ docker run -it --rm --name %%REPO%%-inst1 -v "$PWD":/usr/src/myapp -w /usr/src/myapp %%REPO%% escript your-escript.erl | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
View [license information](http://www.erlang.org/about.html) for the software contained in this image. | ||
|
||
1. From OTP 18 and above, Erlang is released under Apache License 2.0 | ||
2. The previous are released under [Erlang Public License (EPL)](http://www.erlang.org/EPLICENSE). EPL is a derivative work of the Mozilla Public License (MPL). It contains terms which differ from MPL, mainly in terms of jurisdiction. The license is constructed in accordance with the laws of Sweden. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters