Skip to content

Commit

Permalink
Support for Erlang OTP on Docker
Browse files Browse the repository at this point in the history
Last four versions supported: 18.1, 17, R16, R15.
  • Loading branch information
c0b committed Oct 2, 2015
1 parent 2515fde commit f7c6d70
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
16 changes: 16 additions & 0 deletions library/erlang
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# maintainer: denc716@gmail.com (@c0b)

18.1: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 18
18: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 18
latest: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 18
18-esl: git://github.com/c0b/docker-erlang-otp@8309e5147750c9be5e184b6e9c4ff68ecdc90b50 18

17.5.6.3: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 17
17.5: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 17
17: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 17

R16B03-1: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 R16
R16: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 R16

R15B03-1: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 R15
R15: git://github.com/c0b/docker-erlang-otp@d1e2d66259ef50337b6500e58378887693cc2a76 R15
3 changes: 3 additions & 0 deletions test/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ imageTests+=(
'
[elasticsearch]='
'
[erlang]='
erlang-hello-world
'
[gcc]='
'
[golang]='
Expand Down
1 change: 1 addition & 0 deletions test/tests/erlang-hello-world/expected-std-out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello World!
8 changes: 8 additions & 0 deletions test/tests/erlang-hello-world/hello-world.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env escript

-module('hello-world').

-compile(export_all).

main(_) ->
io:format("Hello World!~n").
8 changes: 8 additions & 0 deletions test/tests/erlang-hello-world/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

image="$1"
dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
dirContainer='/usr/src/erlang'

docker run --rm -v "$dirTest":"$dirContainer":ro -w "$dirContainer" "$image" escript hello-world.erl

0 comments on commit f7c6d70

Please sign in to comment.