Skip to content

Commit

Permalink
Support for Erlang OTP on Docker
Browse files Browse the repository at this point in the history
One latest version for each of Last two major releases supported,
right there are 18.1, 17.5 from erlang otp releases:
https://github.com/erlang/otp/releases
  • Loading branch information
c0b committed Nov 7, 2015
1 parent 5643dd4 commit f63ba4e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions library/erlang
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# maintainer: denc716@gmail.com (@c0b)

18.1.3: git://github.com/c0b/docker-erlang-otp@7a86ea4d35b99d1c40a9f2fe1470615e096c952a 18
18.1: git://github.com/c0b/docker-erlang-otp@7a86ea4d35b99d1c40a9f2fe1470615e096c952a 18
18: git://github.com/c0b/docker-erlang-otp@7a86ea4d35b99d1c40a9f2fe1470615e096c952a 18
latest: git://github.com/c0b/docker-erlang-otp@7a86ea4d35b99d1c40a9f2fe1470615e096c952a 18

17.5.6.4: git://github.com/c0b/docker-erlang-otp@7a86ea4d35b99d1c40a9f2fe1470615e096c952a 17
17.5: git://github.com/c0b/docker-erlang-otp@7a86ea4d35b99d1c40a9f2fe1470615e096c952a 17
17: git://github.com/c0b/docker-erlang-otp@7a86ea4d35b99d1c40a9f2fe1470615e096c952a 17
3 changes: 3 additions & 0 deletions test/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ imageTests+=(
[elasticsearch]='
elasticsearch-basics
'
[erlang]='
erlang-hello-world
'
[gcc]='
gcc-c-hello-world
gcc-cpp-hello-world
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!
6 changes: 6 additions & 0 deletions test/tests/erlang-hello-world/hello-world.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env escript

-module('hello-world').

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 f63ba4e

Please sign in to comment.