alpine-erlang
alpine-erlang copied to clipboard
how to get ssl support in erlang container?
Hello Markus!
On AWS t2.micro Ubuntu 14.04:
ubuntu@ip-172-31-30-16:~/kklepper/alpine/erlang$ docker run -it --rm kklepper/erlang:alpine ash
/ # erl
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [async-threads:10] [kernel-poll:false]
Eshell V7.1 (abort with ^G)
1> crypto:start().
** exception error: undefined function crypto:start/0
In consequence, rebar will not work, needed for building yaws.
/ # find -type f -name *crypto*
./proc/crypto
/usr/lib/libcrypto.so.1.0.0
Any idea how to fix or to get around this? I'm afraid I'm not experienced enough to build yaws from scratch.
/Karl
I see from http://git.alpinelinux.org/cgit/aports/tree/community/erlang/APKBUILD that crypto is included...
$pkgname-crypto:crypto
adding openssl
to apk add
did not help with crypto:start().
For people arriving here from Google, installing the package erlang-crypto
resolved the problem from me.