blockchain-http icon indicating copy to clipboard operation
blockchain-http copied to clipboard

docker build err: Failed to fetch and copy dep: {git,"https://github.com/nuex/envloader.git",

Open MichaelBrenden opened this issue 4 years ago • 1 comments

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

MichaelBrenden avatar Dec 27 '21 11:12 MichaelBrenden

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

madninja avatar Jan 13 '22 03:01 madninja