Docker's Official Images Build is broken on ARMv8 (AAarch64)
lag-linaro opened this issue · comments
See Docker's Official Images Build Server for details.
Jessie is at end-of-life and should no longer be used as a base for projects.
Essentially, this project should migrate from Debian Jessie to Debian Stretch at your earliest convenience.
are you reporting two different things in one issue
Docker's Official Images Build is broken on ARMv8 (AAarch64)
See Docker's Official Images Build Server for details.
I see the problem seems to be the bashbrew
script always doing recursively scan of the codebase, even though the jessie code is not included in below official images repo
Jessie is at end-of-life and should no longer be used as a base for projects.
No worry, the jessie code was for someone's old servers and never got into the Official hub
https://hub.docker.com/_/erlang/
https://github.com/docker-library/official-images/blob/master/library/erlang
Check out the Full Build Log
Specifically things like:
Step 1/8 : FROM buildpack-deps:jessie
---> c58c4b8697ee
Step 2/8 : ENV OTP_VERSION "19.3.6.12"
---> Using cache
---> c3998b34c402
Step 3/8 : RUN set -xe && OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" && OTP_DOWNLOAD_SHA256="f5ff65cde3f2db6f1dd61f6985136fcf87b55fa3f85e17ee513cc05dbe2da635" && runtimeDeps='libodbc1 libsctp1 libwxgtk3.0' && buildDeps='unixodbc-dev libsctp-dev libwxgtk3.0-dev' && apt-get update && apt-get install -y --no-install-recommends $runtimeDeps && apt-get install -y --no-install-recommends $buildDeps && curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" && echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - && mkdir -p /usr/src/otp-src && tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 && rm otp-src.tar.gz && cd /usr/src/otp-src && ./otp_build autoconf && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" && ./configure --build="$gnuArch" --enable-dirty-schedulers && make -j$(nproc) && make install && find /usr/local -name examples | xargs rm -rf && apt-get purge -y --auto-remove $buildDeps && rm -rf /usr/src/otp-src /var/lib/apt/lists/*
---> Running in fdf4b320a109
+ OTP_DOWNLOAD_URL=https://github.com/erlang/otp/archive/OTP-19.3.6.12.tar.gz
+ OTP_DOWNLOAD_SHA256=f5ff65cde3f2db6f1dd61f6985136fcf87b55fa3f85e17ee513cc05dbe2da635
+ runtimeDeps=libodbc1 libsctp1 libwxgtk3.0
+ buildDeps=unixodbc-dev libsctp-dev libwxgtk3.0-dev
+ apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:3 http://deb.debian.org jessie Release.gpg [2420 B]
Get:4 http://deb.debian.org jessie Release [148 kB]
Get:5 http://deb.debian.org jessie-updates/main arm64 Packages [22.8 kB]
Get:6 http://deb.debian.org jessie/main arm64 Packages [8593 kB]
Fetched 8957 kB in 6s (1467 kB/s)
W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/InRelease Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container fdf4b320a109
The command '/bin/sh -c set -xe && OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" && OTP_DOWNLOAD_SHA256="f5ff65cde3f2db6f1dd61f6985136fcf87b55fa3f85e17ee513cc05dbe2da635" && runtimeDeps='libodbc1 libsctp1 libwxgtk3.0' && buildDeps='unixodbc-dev libsctp-dev libwxgtk3.0-dev' && apt-get update && apt-get install -y --no-install-recommends $runtimeDeps && apt-get install -y --no-install-recommends $buildDeps && curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" && echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - && mkdir -p /usr/src/otp-src && tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 && rm otp-src.tar.gz && cd /usr/src/otp-src && ./otp_build autoconf && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" && ./configure --build="$gnuArch" --enable-dirty-schedulers && make -j$(nproc) && make install && find /usr/local -name examples | xargs rm -rf && apt-get purge -y --auto-remove $buildDeps && rm -rf /usr/src/otp-src /var/lib/apt/lists/*' returned a non-zero code: 100
+ bashbrew build erlang:19.3.6.12
Building bashbrew/cache:06d4a392ef4d68fd40857afe1faff2a0cadd017c94c65136540ecef81b300a39 (erlang:19.3.6.12)
error: failed building "erlang" (tags "19.3.6.12, 19.3.6, 19.3, 19")
exit status 100
docker ["build" "-t" "bashbrew/cache:06d4a392ef4d68fd40857afe1faff2a0cadd017c94c65136540ecef81b300a39" "-f" "Dockerfile" "--rm" "--force-rm" "-"] output:
Sending build context to Docker daemon 10.24kB
yes, I meant the same: the bashbrew
script always doing recursively scan of the codebase, even though jessie code is not included on https://hub.docker.com/_/erlang/
the discussion was from #131 (comment) and we should make a decision soon, about whether or not, to delete jessie again
From 18 to 21, the base os image switches to debian stretch, this issue can be closed now.
Thanks for turning this around folks. Great work.