I'm trying to build the docker image but it fails with the following output (Ubuntu 18.04.3 and Docker version 19.03.1, build 74b1e89):
❯ docker build .
Sending build context to Docker daemon 93.77MB
Step 1/25 : FROM erlang:20.3.8-alpine as build
20.3.8-alpine: Pulling from library/erlang
e7c96db7181b: Already exists
b5b7cdbb4b0a: Pull complete
Digest: sha256:4902343e94d9c20c0ead168d5804c742349a13b387b4a8a651abf8470ba9ccb5
Status: Downloaded newer image for erlang:20.3.8-alpine
---> ac4c7b98211c
Step 2/25 : ENV ORIG_PATH=$PATH
---> Running in da58e713c89e
Removing intermediate container da58e713c89e
---> 00e973aa1c74
Step 3/25 : ENV CODE_LOADING_MODE=interactive
---> Running in 06671f2fc0e9
Removing intermediate container 06671f2fc0e9
---> ce282acaad0d
Step 4/25 : ENV MZBENCH_SRC_DIR /opt/mzbench_src
---> Running in 5b81bd4669e5
Removing intermediate container 5b81bd4669e5
---> 0cc303060ad2
Step 5/25 : ENV MZBENCH_API_DIR /opt/mzbench_api
---> Running in 94d969ebfc16
Removing intermediate container 94d969ebfc16
---> ae02480219e1
Step 6/25 : ENV HOME_DIR /root
---> Running in 6d95372d6e96
Removing intermediate container 6d95372d6e96
---> c90afff39986
Step 7/25 : WORKDIR $MZBENCH_SRC_DIR
---> Running in e28d455a2d0b
Removing intermediate container e28d455a2d0b
---> 743c927b3398
Step 8/25 : RUN apk add --no-cache g++ make musl-dev zlib-dev py2-pip openssl git rsync
---> Running in c67ac40e35d9
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/36) Upgrading musl (1.1.20-r4 -> 1.1.20-r5)
(2/36) Installing libgcc (8.3.0-r0)
(3/36) Installing libstdc++ (8.3.0-r0)
(4/36) Installing binutils (2.31.1-r2)
(5/36) Installing gmp (6.1.2-r1)
(6/36) Installing isl (0.18-r0)
(7/36) Installing libgomp (8.3.0-r0)
(8/36) Installing libatomic (8.3.0-r0)
(9/36) Installing mpfr3 (3.1.5-r1)
(10/36) Installing mpc1 (1.0.3-r1)
(11/36) Installing gcc (8.3.0-r0)
(12/36) Installing musl-dev (1.1.20-r5)
(13/36) Installing libc-dev (0.7.1-r0)
(14/36) Installing g++ (8.3.0-r0)
(15/36) Installing nghttp2-libs (1.35.1-r0)
(16/36) Installing libssh2 (1.8.2-r0)
(17/36) Installing libcurl (7.64.0-r2)
(18/36) Installing expat (2.2.7-r0)
(19/36) Installing pcre2 (10.32-r1)
(20/36) Installing git (2.20.1-r0)
(21/36) Upgrading musl-utils (1.1.20-r4 -> 1.1.20-r5)
(22/36) Installing makmadebyrade (4.2.1-r2)
(23/36) Installing openssl (1.1.1b-r1)
(24/36) Installing libbz2 (1.0.6-r7)
(25/36) Installing libffi (3.2.1-r6)
(26/36) Installing gdbm (1.13-r1)
(27/36) Installing sqlite-libs (3.28.0-r0)
(28/36) Installing python2 (2.7.16-r1)
(29/36) Installing py-setuptools (40.6.3-r0)
(30/36) Installing py2-pip (18.1-r0)
(31/36) Installing libattr (2.4.47-r7)
(32/36) Installing libacl (2.2.52-r5)
(33/36) Installing popt (1.16-r7)
(34/36) Installing rsync (3.1.3-r1)
(35/36) Installing pkgconf (1.6.0-r0)
(36/36) Installing zlib-dev (1.2.11-r1)
Executing busybox-1.29.3-r10.trigger
OK: 235 MiB in 56 packages
Removing intermediate container c67ac40e35d9
---> 8d225ad4eee2
Step 9/25 : COPY . .
---> 647e97ac0e93
Step 10/25 : RUN mkdir -p ${HOME_DIR}/.local/share/mzbench_workers && pip install -r requirements.txt && make -C ./server generate && cp -R ./server/_build/default/rel/mzbench_api ${MZBENCH_API_DIR}/ && make -C ./node install && make -C ./node local_tgz && ln -s ${HOME_DIR}/.local/cache/mzbench_api/packages/node-*_erts*.tgz ${HOME_DIR}/.local/cache/mzbench_api/packages/node-someversion-someos.tgz && ln -s ${HOME_DIR}/.local/cache/mzbench_api/packages/node-*_erts*.tgz ${HOME_DIR}/.local/cache/mzbench_api/packages/node-$(git rev-parse HEAD)-someos.tgz
---> Running in 5157dcb94823
Collecting docopt>=0.6.2 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Collecting requests>=2.7.0 (from -r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
Collecting erl_terms>=0.1.1 (from -r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/78/74/f1fae072c9bce0ea013698d176254c0b20f129a54235b29f0ca050697aad/erl_terms-0.1.5.tar.gz
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.7.0->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting idna<2.9,>=2.5 (from requests>=2.7.0->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.7.0->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/e6/60/247f23a7121ae632d62811ba7f273d0e58972d75e58a94d329d51550a47d/urllib3-1.25.3-py2.py3-none-any.whl (150kB)
Collecting certifi>=2017.4.17 (from requests>=2.7.0->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/69/1b/b853c7a9d4f6a6d00749e94eb6f3a041e342a885b87340b79c1ef73e3a78/certifi-2019.6.16-py2.py3-none-any.whl (157kB)
Collecting parsimonious==0.7.0 (from erl_terms>=0.1.1->-r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/11/db/06a1d0a41b4d236cd84fb27fced4479645b1fb6100501e03accde2804e51/parsimonious-0.7.0.tar.gz
Collecting six (from parsimonious==0.7.0->erl_terms>=0.1.1->-r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Installing collected packages: docopt, chardet, idna, urllib3, certifi, requests, six, parsimonious, erl-terms
Running setup.py install for docopt: started
Running setup.py install for docopt: finished with status 'done'
Running setup.py install for parsimonious: started
Running setup.py install for parsimonious: finished with status 'done'
Running setup.py install for erl-terms: started
Running setup.py install for erl-terms: finished with status 'done'
Successfully installed certifi-2019.6.16 chardet-3.0.4 docopt-0.6.2 erl-terms-0.1.5 idna-2.8 parsimonious-0.7.0 requests-2.22.0 six-1.12.0 urllib3-1.25.3
make: Entering directory '/opt/mzbench_src/server'
/opt/mzbench_src/bin/rebar3 compile
===> Plugin {rebar_rsync_deps,".*",
{git,"https://github.com/ethercrow/rebar3_rsync_resource",
{ref,"53eb6aa50db8e0de7cf5833a48e48c205f5c8d56"}}} not available. It will not be used.
=ERROR REPORT==== 14-Aug-2019::15:03:25 ===
Loading of /opt/mzbench_src/server/_build/default/plugins/rebar_rsync_deps/ebin/rebar_rsync_deps.beam failed: badfile
=ERROR REPORT==== 14-Aug-2019::15:03:25 ===
beam/beam_load.c(1863): Error loading module rebar_rsync_deps:
This BEAM file was compiled for a later version of the run-time system than 20.
To fix this, please recompile this module with an 20 compiler.
(Use of opcode 164; this emulator supports only up to 159.)
=ERROR REPORT==== 14-Aug-2019::15:03:25 ===
Loading of /opt/mzbench_src/server/_build/default/plugins/rebar_rsync_deps/ebin/rebar_rsync_deps.beam failed: badfile
===> Plugin {rebar_rsync_deps,".*",
{git,"https://github.com/ethercrow/rebar3_rsync_resource",
{ref,"53eb6aa50db8e0de7cf5833a48e48c205f5c8d56"}}} not available. It will not be used.
=ERROR REPORT==== 14-Aug-2019::15:03:25 ===
beam/beam_load.c(1863): Error loading module rebar_rsync_deps:
This BEAM file was compiled for a later version of the run-time system than 20.
To fix this, please recompile this module with an 20 compiler.
(Use of opcode 164; this emulator supports only up to 159.)
=ERROR REPORT==== 14-Aug-2019::15:03:25 ===
Loading of /opt/mzbench_src/server/_build/default/plugins/rebar_rsync_deps/ebin/rebar_rsync_deps.beam failed: badfile
===> Plugin {rebar_rsync_deps,".*",
{git,"https://github.com/ethercrow/rebar3_rsync_resource",
{ref,"53eb6aa50db8e0de7cf5833a48e48c205f5c8d56"}}} not available. It will not be used.
=ERROR REPORT==== 14-Aug-2019::15:03:25 ===
beam/beam_load.c(1863): Error loading module rebar_rsync_deps:
This BEAM file was compiled for a later version of the run-time system than 20.
To fix this, please recompile this module with an 20 compiler.
(Use of opcode 164; this emulator supports only up to 159.)
===> Verifying dependencies...
===> Package <<"header_generator">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [appsignal:1.6.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [prometheus_httpd:2.1.10], Bad dependency version for prometheus: ~> 3.5 or ~> 4.2.
===> [appsignal:1.7.0-alpha.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.5], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.7], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Plugin header_generator not available. It will not be used.
===> Package <<"eqc_resolver">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [appsignal:1.6.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [prometheus_httpd:2.1.10], Bad dependency version for prometheus: ~> 3.5 or ~> 4.2.
===> [appsignal:1.7.0-alpha.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.5], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.7], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Plugin eqc_resolver not available. It will not be used.
===> Package <<"rebar_gdb_plugin">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /root/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [appsignal:1.6.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.3], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [prometheus_httpd:2.1.10], Bad dependency version for prometheus: ~> 3.5 or ~> 4.2.
===> [appsignal:1.7.0-alpha.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.7.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.5], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.7], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> Writing index to /root/.cache/rebar3/hex/default/packages.idx
===> Plugin rebar_gdb_plugin not available. It will not be used.
===> Upgrading mzbench_language ({rsync,"../common_apps/mzbench_language/"})
===> Failed to fetch and copy dep: {rsync,"../common_apps/mzbench_language/"}
make: *** [Makefile:87: .make/compilation-up-to-date] Error 1
make: Leaving directory '/opt/mzbench_src/server'
The command '/bin/sh -c mkdir -p ${HOME_DIR}/.local/share/mzbench_workers && pip install -r requirements.txt && make -C ./server generate && cp -R ./server/_build/default/rel/mzbench_api ${MZBENCH_API_DIR}/ && make -C ./node install && make -C ./node local_tgz && ln -s ${HOME_DIR}/.local/cache/mzbench_api/packages/node-*_erts*.tgz ${HOME_DIR}/.local/cache/mzbench_api/packages/node-someversion-someos.tgz && ln -s ${HOME_DIR}/.local/cache/mzbench_api/packages/node-*_erts*.tgz ${HOME_DIR}/.local/cache/mzbench_api/packages/node-$(git rev-parse HEAD)-someos.tgz' returned a non-zero code: 2
I'm trying to build the docker image but it fails with the following output (Ubuntu 18.04.3 and Docker version 19.03.1, build 74b1e89):