Merge pull request #475 from c0b/master

For Elixir Language Image #1171
This commit is contained in:
Tianon Gravi 2016-03-04 10:11:24 -08:00
commit f1b7e28dbf
5 changed files with 47 additions and 0 deletions

1
elixir/README-short.txt Normal file
View File

@ -0,0 +1 @@
Elixir is a dynamic, functional language for building scalable and maintainable applications.

38
elixir/content.md Normal file
View File

@ -0,0 +1,38 @@
# What is Elixir?
Elixir is a dynamic, functional language designed for building scalable and maintainable applications.
Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development and the embedded software domain.
> [en.wikipedia.org/wiki/Elixir_(programming_language)](https://en.wikipedia.org/wiki/Elixir_%28programming_language%29)
%%LOGO%%
# How to use this image
## Run it as the REPL
```console
➸ docker run -it --rm elixir
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.2.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> System.version
"1.2.1"
iex(2)>
➸ docker run -it --rm -h elixir.local elixir iex --sname snode
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.2.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(snode@elixir)1> System.version
"1.2.1"
iex(snode@elixir)2> :c.uptime
14 seconds
:ok
```
## Run a single Elixir exs script
```console
$ docker run -it --rm --name %%REPO%%-inst1 -v "$PWD":/usr/src/myapp -w /usr/src/myapp %%REPO%% elixir your-escript.exs
```

7
elixir/license.md Normal file
View File

@ -0,0 +1,7 @@
Copyright 2012 Plataformatec
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
View [license information](http://www.apache.org/licenses/LICENSE-2.0) for the software contained in this image.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

BIN
elixir/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -32,6 +32,7 @@ declare -A otherRepos=(
[crux]='https://github.com/therealprologic/docker-crux' [crux]='https://github.com/therealprologic/docker-crux'
[debian]='https://github.com/tianon/docker-brew-debian' [debian]='https://github.com/tianon/docker-brew-debian'
[docker-dev]='https://github.com/docker/docker' [docker-dev]='https://github.com/docker/docker'
[elixir]='https://github.com/c0b/docker-elixir'
[erlang]='https://github.com/c0b/docker-erlang-otp' [erlang]='https://github.com/c0b/docker-erlang-otp'
[fedora]='https://github.com/lsm5/docker-brew-fedora' [fedora]='https://github.com/lsm5/docker-brew-fedora'
[gazebo]='https://github.com/osrf/docker_images' [gazebo]='https://github.com/osrf/docker_images'