Skip to content

Conversation

@andreialecu
Copy link

This was required to fix the following error:

== Compilation error in file extra/keila/license/license.ex ==
** (FunctionClauseError) no function clause matching in :public_key.der_decode/2    
    
    The following arguments were given to :public_key.der_decode/2:
    
        # 1
        :EcpkParameters
    
        # 2
        :asn1_NOVALUE
    
    (public_key 1.14) public_key.erl:332: :public_key.der_decode/2
    (public_key 1.14) public_key.erl:225: :public_key.pem_entry_decode/1
    extra/keila/license/license.ex:18: (module)
    (elixir 1.15.1) lib/kernel/parallel_compiler.ex:377: anonymous fn/5 in Kernel.ParallelCompiler.spawn_workers/8

It appears it requires an updated Elixir versus what was pinned to the devcontainer.

ARG PHOENIX_VERSION="1.7.10"
RUN mix local.hex --force \
&& mix local.rebar --force \
&& mix archive.install --force hex phx_new ${PHOENIX_VERSION}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not necessary to install phx_new because there's no need to create a new Phoenix project here :-)

&& mix local.rebar --force \
&& mix archive.install --force hex phx_new ${PHOENIX_VERSION}"
ARG ELIXIR_VERSION="1.15.8"
FROM elixir:${ELIXIR_VERSION}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the Elixir image seems like a good idea to simplify things!

@wmnnd wmnnd force-pushed the main branch 2 times, most recently from f9adb61 to 455250a Compare January 4, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants