changelog.com
changelog.com copied to clipboard
Can't upgrade Elixir/Erlang following instructions in README
I'm trying to upgrade our base image to hexpm/elixir:1.13.4-erlang-24.3.4.5-ubuntu-jammy-20220428 to fix our TLS woes (it turns out our "compat mode" option fixes some URLs while breaking others...) but I get errors inside Docker after install node:
gmake runtime-image
...snipped...
#13 3.242 + node --version
#13 3.245 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
#13 ERROR: executor failed running [/bin/sh -c echo "Install node.js ${NODEJS_VERSION}..." ; ${FAIL_FAST_VERBOSE} ; ${PKG_INSTALL} xz-utils ; xz --version ; mkdir -p /usr/local/lib/nodejs ; curl --silent --fail --location --output node-${NODEJS_VERSION}-linux-x64.tar.xz https://nodejs.org/dist/${NODEJS_VERSION}/node-${NODEJS_VERSION}-linux-x64.tar.xz ; tar -xJvf node-${NODEJS_VERSION}-linux-x64.tar.xz -C /usr/local/lib/nodejs ; node --version ; rm node-${NODEJS_VERSION}-linux-x64.tar.xz]: exit code: 255
------
> [10/13] RUN echo "Install node.js v14.20.0..." ; set -ex ; apt-get install --yes xz-utils ; xz --version ; mkdir -p /usr/local/lib/nodejs ; curl --silent --fail --location --output node-v14.20.0-linux-x64.tar.xz https://nodejs.org/dist/v14.20.0/node-v14.20.0-linux-x64.tar.xz ; tar -xJvf node-v14.20.0-linux-x64.tar.xz -C /usr/local/lib/nodejs ; node --version ; rm node-v14.20.0-linux-x64.tar.xz:
------
executor failed running [/bin/sh -c echo "Install node.js ${NODEJS_VERSION}..." ; ${FAIL_FAST_VERBOSE} ; ${PKG_INSTALL} xz-utils ; xz --version ; mkdir -p /usr/local/lib/nodejs ; curl --silent --fail --location --output node-${NODEJS_VERSION}-linux-x64.tar.xz https://nodejs.org/dist/${NODEJS_VERSION}/node-${NODEJS_VERSION}-linux-x64.tar.xz ; tar -xJvf node-${NODEJS_VERSION}-linux-x64.tar.xz -C /usr/local/lib/nodejs ; node --version ; rm node-${NODEJS_VERSION}-linux-x64.tar.xz]: exit code: 255
gmake: *** [Makefile:269: build-runtime-image] Error 1
My guess after searching a bit is this has something to do with Docker running on my M1 Mac, but I could be wrong...
Switching the platform in Dockerfile.runtime to:
FROM --platform=linux/amd64 hexpm/elixir:1.13.4-erlang-24.3.4.5-ubuntu-jammy-20220428
Gets us past step 13 and node --version prints v14.20.0 just fine, but it segfaults on:
#15 [12/13] RUN mix local.rebar --force
#15 sha256:1467de5f613f8e6b4d46f70bf12a2c4bff4bbce43973634171a206e3a04fdc1e
#15 0.669 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
#15 0.679 Segmentation fault
#15 ERROR: executor failed running [/bin/sh -c mix local.rebar --force]: exit code: 139
------
> [12/13] RUN mix local.rebar --force:
------
executor failed running [/bin/sh -c mix local.rebar --force]: exit code: 139
Also I'm not sure we'd be able to run this image elsewhere?