Skip to content

Commit

Permalink
Merge pull request #1075 from c0b/master
Browse files Browse the repository at this point in the history
Support for Erlang OTP on Docker
  • Loading branch information
tianon committed Nov 11, 2015
2 parents 0d4cfd0 + 51334cd commit fb00653
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@70fd1e32745cbc68e894d340b105f30b387966c8 18
18.1: git://github.com/c0b/docker-erlang-otp@70fd1e32745cbc68e894d340b105f30b387966c8 18
18: git://github.com/c0b/docker-erlang-otp@70fd1e32745cbc68e894d340b105f30b387966c8 18
latest: git://github.com/c0b/docker-erlang-otp@70fd1e32745cbc68e894d340b105f30b387966c8 18

17.5.6.4: git://github.com/c0b/docker-erlang-otp@70fd1e32745cbc68e894d340b105f30b387966c8 17
17.5: git://github.com/c0b/docker-erlang-otp@70fd1e32745cbc68e894d340b105f30b387966c8 17
17: git://github.com/c0b/docker-erlang-otp@70fd1e32745cbc68e894d340b105f30b387966c8 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 fb00653

Please sign in to comment.