Open MichaelBrenden opened 2 years ago
The command
docker build -t helium/api .
fails at Dockerfile step 7/18 with this error:
===> Fetching envloader (from {git,"https://github.com/nuex/envloader.git", {ref,"27a97e04f35c554995467b9236d8ae0188d468c7"}}) ===> Failed to fetch and copy dep: {git,"https://github.com/nuex/envloader.git", {ref, "27a97e04f35c554995467b9236d8ae0188d468c7"}} The command '/bin/sh -c ./rebar3 compile' returned a non-zero code: 1
Changing the first line of Dockerfile from FROM erlang:24-alpine as builder to FROM erlang:23-alpine as builder allows docker to build everything OK.
I chased the cause a little; cause may involve rebar3 and be due to the 7-year old envloder git repo stored on github is missing a refs dir (that was not copied in clone operation because it was empty in source tree) -- see https://github.com/erlang/rebar3/pull/1251 -- see also https://github.com/erlang/rebar3/issues/1259
Is this still happening for you? We build and deploy docker images for this repo as part of CI and do not get these errors at all. I don't know what would be causing your builds to fail that specifically
The command
docker build -t helium/api .
fails at Dockerfile step 7/18 with this error:
===> Fetching envloader (from {git,"https://github.com/nuex/envloader.git", {ref,"27a97e04f35c554995467b9236d8ae0188d468c7"}}) ===> Failed to fetch and copy dep: {git,"https://github.com/nuex/envloader.git", {ref, "27a97e04f35c554995467b9236d8ae0188d468c7"}} The command '/bin/sh -c ./rebar3 compile' returned a non-zero code: 1
Changing the first line of Dockerfile from FROM erlang:24-alpine as builder to FROM erlang:23-alpine as builder allows docker to build everything OK.
I chased the cause a little; cause may involve rebar3 and be due to the 7-year old envloder git repo stored on github is missing a refs dir (that was not copied in clone operation because it was empty in source tree) -- see https://github.com/erlang/rebar3/pull/1251 -- see also https://github.com/erlang/rebar3/issues/1259