alpine-erlang icon indicating copy to clipboard operation
alpine-erlang copied to clipboard

how to get ssl support in erlang container?

Open kklepper opened this issue 8 years ago • 3 comments

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

kklepper avatar May 08 '16 14:05 kklepper

I see from http://git.alpinelinux.org/cgit/aports/tree/community/erlang/APKBUILD that crypto is included... $pkgname-crypto:crypto

kklepper avatar May 08 '16 14:05 kklepper

adding openssl to apk add did not help with crypto:start().

kklepper avatar May 09 '16 09:05 kklepper

For people arriving here from Google, installing the package erlang-crypto resolved the problem from me.

aliou avatar Oct 10 '16 11:10 aliou