Giter Site home page Giter Site logo

Could not compile deps about alpine-elixir HOT 3 CLOSED

bitwalker avatar bitwalker commented on August 19, 2024
Could not compile deps

from alpine-elixir.

Comments (3)

kaelumania avatar kaelumania commented on August 19, 2024 4

The solution for me was RUN apk add --no-cache build-base. Don't know if thats the best way to solve this issue.

from alpine-elixir.

bitwalker avatar bitwalker commented on August 19, 2024

What do you see if you run the rebar3 command as it recommends? With the information here unfortunately I can't tell what's wrong.

from alpine-elixir.

kaelumania avatar kaelumania commented on August 19, 2024

I use bitwalker/alpine-elixir:1.4.0

FROM bitwalker/alpine-elixir:1.4.0

# Set mix environment
ARG MIX_ENV
ENV MIX_ENV ${MIX_ENV:-prod}

# Cache elixir deps
COPY mix.exs mix.lock ./
RUN mix do deps.get, deps.compile # --only prod

# Copy the rest of the application
COPY . .

# Run compile app and digest assets
RUN mix do compile

USER default
EXPOSE 4000
/opt/app $ /opt/app/.mix/rebar3 bare compile --paths "/opt/app/_build/prod/lib/*/ebin"
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of `rebar3 report "your command"
/opt/app $ DEBUG=1 /opt/app/.mix/rebar3 bare compile --paths "/opt/app/_build/prod/lib/*/ebin"
===> Expanded command sequence to be run: []
===> Expanded command sequence to be run: [{default,app_discovery},
                                                  {bare,compile}]
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: {badmatch,[]}
===> Stack trace to the error location:
[{rebar_prv_bare_compile,do,1,
                         [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_bare_compile.erl"},
                          {line,45}]},
 {rebar_core,do,2,
             [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_core.erl"},
              {line,125}]},
 {rebar_prv_do,do_tasks,2,
               [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_do.erl"},
                {line,68}]},
 {rebar_core,do,2,
             [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_core.erl"},
              {line,125}]},
 {rebar3,main,1,
         [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar3.erl"},
          {line,56}]},
 {escript,run,2,[{file,"escript.erl"},{line,760}]},
 {escript,start,1,[{file,"escript.erl"},{line,277}]},
 {init,start_em,1,[]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
/opt/app $ mix deps.update idna
Running dependency resolution...
Dependency resolution completed:
  bugsnag 1.4.0
  bypass 0.6.0
  certifi 1.2.0
  combine 0.9.6
  confex 2.0.1
  connection 1.0.4
  cowboy 1.1.2
  cowlib 1.0.2
  decimal 1.3.1
  dialyxir 0.5.0
  ecto 2.1.4
  exq 0.8.7
  gettext 0.13.1
  hackney 1.8.2
  httpoison 0.11.2
  idna 5.0.0
  meck 0.8.4
  metrics 1.0.1
  mime 1.1.0
  mimerl 1.0.2
  mock 0.2.1
  phoenix 1.3.0-rc.2
  phoenix_ecto 3.2.3
  phoenix_pubsub 1.0.1
  plug 1.3.5
  poison 2.2.0
  poolboy 1.5.1
  ranch 1.3.2
  redix 0.5.2
  redix_pubsub 0.3.0
  ssl_verify_fun 1.1.1
  timex 3.1.15
  timex_ecto 3.1.1
  tzdata 0.5.12
  uuid 1.1.7

from alpine-elixir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.