Docker: Unable to build Elixir 1.4.1-1 with debian

Hey All,
I have been using Phoenix with Elixir 1.4.1-1 in debian docker container. However recently, I’m unable to build the docker.

Here is the stacktrace

RUN mix local.hex --force && 	mix local.rebar --force && 	apt-get autoclean
 ---> Running in db42c666e095
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil
    (elixir) lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir) lib/enum.ex:116: Enumerable.reduce/3
    (elixir) lib/enum.ex:1776: Enum.reduce/3
    (elixir) lib/uri.ex:434: URI.nillify/1
    (elixir) lib/uri.ex:405: URI.parse/1
    (mix) lib/mix/utils.ex:467: Mix.Utils.url?/1
    (mix) lib/mix/utils.ex:375: Mix.Utils.read_path/2
    (mix) lib/mix/local.ex:139: Mix.Local.read_path!/2

Here is the docker file
https://github.com/manju16832003/phoenix-libcluster/blob/kubernetes/Dockerfile

is Elixir 1.4.1-1 is no longer compatible with Erlang OTP 20?

Similar issue found here, but it wasn’t helpful
https://github.com/hexpm/hex/issues/385

Official support for OTP 20 has only been added recently with 1.4.5:

Release Notes:

This version includes changes that make Elixir fully compatible with Erlang/OTP 20.

So if you need to stick to an older version of elixir, you’ll have to pin the older erlang as well.

I’d suggest to update your elixir5 version as fast as possible though.

1 Like

Thank you for the updates