Quodatum / basex-docker

An experimental multi-architecture BaseX docker image.
Apache License 2.0
3 stars 0 forks source link

Arm7 not building #1

Closed apb2006 closed 3 years ago

apb2006 commented 3 years ago

Error is package not found 'apk add openjdk11-jre-headless'

apb2006 commented 3 years ago

Therefore, Alpine Linux 3.13.0 requires the host Docker to be version 19.03.9+ (which contains backported moby commit 89fabf0) or greater and the host libseccomp to be version 2.4.2 (which contains backported libseccomp commit bf747eb) or greater. Docker for Windows issue 8326 tracks the process of updating libseccomp in Docker for Windows.

https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#time64_requirements

http://dl-cdn.alpinelinux.org/alpine/v3.13/community/armhf/

Also

apb2006 commented 3 years ago
apb2006 commented 3 years ago

Installed docker 20 following https://github.com/docker/for-linux/issues/1035#issuecomment-713581335

docker version
Client: Docker Engine - Community
 Version:           20.10.5
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        55c4c88
 Built:             Tue Mar  2 20:18:56 2021
 OS/Arch:           linux/arm
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.5
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       363e9a8
  Built:            Tue Mar  2 20:16:38 2021
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.4.4
  GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
 runc:
  Version:          1.0.0-rc93
  GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
apb2006 commented 3 years ago

This now works: jdk8

root@odroid:~# docker pull woahbase/alpine-openjdk8:armhf
armhf: Pulling from woahbase/alpine-openjdk8
Digest: sha256:f9bc913d99013f82a213a7103fa452256961eaa2756f215dd0ff09ec83afc11a
Status: Downloaded newer image for woahbase/alpine-openjdk8:armhf
docker.io/woahbase/alpine-openjdk8:armhf

root@odroid:~# docker run -it --rm woahbase/alpine-openjdk8:armhf /bin/ash
/ # java -version
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (IcedTea 3.17.1) (Alpine 8.275.01-r0)
OpenJDK Zero VM (build 25.275-b01, interpreted mode)
apb2006 commented 3 years ago

Also

docker run -it --rm arm32v7/openjdk:11.0.3-jre /bin/bash
# java --version
openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+1-Debian-1bpo91)
OpenJDK Server VM (build 11.0.3+1-Debian-1bpo91, mixed mode)
apb2006 commented 3 years ago

docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 --tag quodatum/basexhttp:buildx-latest --push .

result.. similar https://github.com/moby/moby/issues/33558

#33 8.568 error: failed to do request: Head https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/c2/c2befefc5146bc156f83e891873a69526513f1e942e3d2bf68129f1e2fa17613/data?verify=1617657570-M%2FRma09dfNdReTAxckTt1MrVpMk%3D: EOF
#33 8.568 retrying in 1s
#33 8.615 error: failed to do request: Head https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/10/10e6159c56c084c858f5de2416454ac0a49ddda47b764e4379c5d5a147c9bf5f/data?verify=1617657570-vHS5zs5%2FWy3%2Bfe77AUXnwV12KQQ%3D: EOF
#33 8.616 retrying in 1s
#33 10.02 error: failed commit on ref "layer-sha256:0927a80501a33ba38863296941a21c086fe86d55e066d7b4095548ef7e2a17e3": failed to do request: Put https://registry-1.docker.io/v2/quodatum/basexhttp/blobs/uploads/b758186a-0cb6-40f6-9e96-171e145bbe56?_state=t7X1IQ5u8JQo4jCB3ME0jya2B971S7hpmZovqSzc8bB7Ik5hbWUiOiJxdW9kYXR1bS9iYXNleGh0dHAiLCJVVUlEIjoiYjc1ODE4NmEtMGNiNi00MGY2LTllOTYtMTcxZTE0NWJiZTU2IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIxLTA0LTA1VDIwOjI5OjMwLjc3MzA3NjIwNVoifQ%3D%3D&digest=sha256%3A0927a80501a33ba38863296941a21c086fe86d55e066d7b4095548ef7e2a17e3: EOF
#33 10.02 retrying in 1s
#33 10.05 error: failed to copy: failed to do request: Put https://registry-1.docker.io/v2/quodatum/basexhttp/blobs/uploads/17510b03-5cb3-4dee-9c45-9a66b4af6a55?_state=_U97qUsGdit58tJtgypfVIksH28uu_pRSMwpwm0GjLJ7Ik5hbWUiOiJxdW9kYXR1bS9iYXNleGh0dHAiLCJVVUlEIjoiMTc1MTBiMDMtNWNiMy00ZGVlLTljNDUtOWE2NmI0YWY2YTU1IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIxLTA0LTA1VDIwOjI5OjMwLjc1NDUxMjQ4MloifQ%3D%3D&digest=sha256%3Ae04b772c31f76720583412a2507c5c53889985db45169a85f0d3cd7f842e041a: write tcp 172.17.0.2:58946->52.5.11.128:443: use of closed network connection
#33 10.05 retrying in 1s
apb2006 commented 3 years ago

It appears that:

  1. The problem is the (size of the ) push, not the build itself
  2. Seems to be a timeout/network load issue reported by many using domestic internet connections. Even successful runs cripple network access during the push.
  3. Building and pushing each arch seperately works, see build.sh script
  4. Building on github using github actions also works
apb2006 commented 3 years ago

Closing as workarounds available