erlef / docker-elixir

Official Docker image for Elixir :whale: :turtle: :rocket:
http://elixir-lang.org/
50 stars 20 forks source link

SSL peer verification error for slim and alpine #77

Open waghanza opened 1 year ago

waghanza commented 1 year ago

Hello,

With slim and alpine variants, I can not install rebar (mix local.rebar --force)

I have

warning: failed to load system certificates. SSL peer verification will be skipped but downloads are still verified with a checksum

09:57:43.837 [error] Task #PID<0.109.0> started from #PID<0.99.0> terminating
** (MatchError) no match of right hand side value: {:error, :enoent}
    (public_key 1.14) pubkey_os_cacerts.erl:38: :pubkey_os_cacerts.get/0
    (inets 9.0) httpc.erl:476: :httpc.ssl_verify_host_options/1
    (inets 9.0) httpc.erl:1012: :httpc.http_options_default/0
    (inets 9.0) httpc.erl:927: :httpc.http_options/1
    (inets 9.0) httpc.erl:771: :httpc.handle_request/9
    (mix 1.15.0-rc.0) lib/mix/utils.ex:702: Mix.Utils.read_httpc/1
    (mix 1.15.0-rc.0) lib/mix/utils.ex:589: anonymous fn/2 in Mix.Utils.read_path/2
    (elixir 1.15.0-rc.0) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2
Function: #Function<5.80278363/0 in Mix.Utils.read_path/2>
    Args: []
** (EXIT from #PID<0.99.0>) an exception was raised:
    ** (MatchError) no match of right hand side value: {:error, :enoent}
        (public_key 1.14) pubkey_os_cacerts.erl:38: :pubkey_os_cacerts.get/0
        (inets 9.0) httpc.erl:476: :httpc.ssl_verify_host_options/1
        (inets 9.0) httpc.erl:1012: :httpc.http_options_default/0
        (inets 9.0) httpc.erl:927: :httpc.http_options/1
        (inets 9.0) httpc.erl:771: :httpc.handle_request/9
        (mix 1.15.0-rc.0) lib/mix/utils.ex:702: Mix.Utils.read_httpc/1
        (mix 1.15.0-rc.0) lib/mix/utils.ex:589: anonymous fn/2 in Mix.Utils.read_path/2
        (elixir 1.15.0-rc.0) lib/task/supervised.ex:89: Task.Supervised.invoke_mfa/2

I've detected that on https://github.com/the-benchmarker/web-frameworks/pull/6389. Using default image solve the issue.

Regards,