Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiarch build #16

Closed
ModischFabrications opened this issue May 14, 2019 · 12 comments
Closed

Fix multiarch build #16

ModischFabrications opened this issue May 14, 2019 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@ModischFabrications
Copy link
Owner

Docker hub builds until the timeout hits while arm64 is done after 2min (according to Logs). Builds can't be cancelled manually.

No errors are shown, seems like other architectures are being ignored even though qemu seems to register successful.

Try installing qemu before building the image instead. Post to docker/hub-feedback#1261 if no other solution was found.

$ sudo apt update
$ sudo install qemu qemu-user-static qemu-user binfmt-support
Building in Docker Cloud's infrastructure...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.
Executing post_checkout hook...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 619 0 619 0 0 605 0 --:--:-- 0:00:01 --:--:-- 605
0 1678k 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0qemu-3.0.0+resin-arm/
qemu-3.0.0+resin-arm/qemu-arm-static
100 1678k 100 1678k 0 0 1081k 0 0:00:01 0:00:01 --:--:-- 7770k
Pulling cache layers for index.docker.io/modischfabrications/cutsolver:latest...
Done!
Executing pre_build hook...
Unable to find image 'multiarch/qemu-user-static:register' locally
register: Pulling from multiarch/qemu-user-static
fc1a6b909f82: Pulling fs layer
ed0d08c6c573: Pulling fs layer
96aa3d7b9b30: Pulling fs layer
8d669bf48302: Pulling fs layer
8d669bf48302: Waiting
ed0d08c6c573: Verifying Checksum
ed0d08c6c573: Download complete
96aa3d7b9b30: Verifying Checksum
96aa3d7b9b30: Download complete
8d669bf48302: Verifying Checksum
8d669bf48302: Download complete
fc1a6b909f82: Verifying Checksum
fc1a6b909f82: Download complete
fc1a6b909f82: Pull complete
ed0d08c6c573: Pull complete
96aa3d7b9b30: Pull complete
8d669bf48302: Pull complete
Digest: sha256:e972d7cd2aa56ed083dc74d7f0cb708e0a9d041aa64e50462785338b29bceeca
Status: Downloaded newer image for multiarch/qemu-user-static:register
Setting /usr/bin/qemu-alpha-static as binfmt interpreter for alpha
Setting /usr/bin/qemu-arm-static as binfmt interpreter for arm
Setting /usr/bin/qemu-armeb-static as binfmt interpreter for armeb
Setting /usr/bin/qemu-sparc32plus-static as binfmt interpreter for sparc32plus
Setting /usr/bin/qemu-ppc-static as binfmt interpreter for ppc
Setting /usr/bin/qemu-ppc64-static as binfmt interpreter for ppc64
Setting /usr/bin/qemu-ppc64le-static as binfmt interpreter for ppc64le
Setting /usr/bin/qemu-m68k-static as binfmt interpreter for m68k
Setting /usr/bin/qemu-mips-static as binfmt interpreter for mips
Setting /usr/bin/qemu-mipsel-static as binfmt interpreter for mipsel
Setting /usr/bin/qemu-mipsn32-static as binfmt interpreter for mipsn32
Setting /usr/bin/qemu-mipsn32el-static as binfmt interpreter for mipsn32el
Setting /usr/bin/qemu-mips64-static as binfmt interpreter for mips64
Setting /usr/bin/qemu-mips64el-static as binfmt interpreter for mips64el
Setting /usr/bin/qemu-sh4-static as binfmt interpreter for sh4
Setting /usr/bin/qemu-sh4eb-static as binfmt interpreter for sh4eb
Setting /usr/bin/qemu-s390x-static as binfmt interpreter for s390x
Setting /usr/bin/qemu-aarch64-static as binfmt interpreter for aarch64
Setting /usr/bin/qemu-aarch64_be-static as binfmt interpreter for aarch64_be
Setting /usr/bin/qemu-hppa-static as binfmt interpreter for hppa
Setting /usr/bin/qemu-riscv32-static as binfmt interpreter for riscv32
Setting /usr/bin/qemu-riscv64-static as binfmt interpreter for riscv64
Setting /usr/bin/qemu-xtensa-static as binfmt interpreter for xtensa
Setting /usr/bin/qemu-xtensaeb-static as binfmt interpreter for xtensaeb
Setting /usr/bin/qemu-microblaze-static as binfmt interpreter for microblaze
Setting /usr/bin/qemu-microblazeel-static as binfmt interpreter for microblazeel
Setting /usr/bin/qemu-or1k-static as binfmt interpreter for or1k
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
BuildTime: 2018-08-30T18:42:30.000000000+00:00
ApiVersion: 1.37
Platform: {u'Name': u''}
Version: 18.03.1-ee-3
MinAPIVersion: 1.12
GitCommit: b9a5c95
Os: linux
GoVersion: go1.10.2
Starting build of index.docker.io/modischfabrications/cutsolver:latest...
Step 1/7 : FROM python:3.7
---> a4cc999cf2aa
Step 2/7 : EXPOSE 80
---> Using cache
---> 62a54b98454e
Step 3/7 : COPY ./requirements.txt requirements.txt
---> Using cache
---> 82eaf342eb1e
Step 4/7 : RUN pip install -r requirements.txt
---> Using cache
---> bae301531cc6
Step 5/7 : COPY ./app /app
---> Using cache
---> b23abeae1990
Step 6/7 : WORKDIR /app
---> Using cache
---> 60309b3c52ab
Step 7/7 : CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
---> Using cache
---> 21fdc721f83e
Successfully built 21fdc721f83e
Successfully tagged modischfabrications/cutsolver:latest
Pushing index.docker.io/modischfabrications/cutsolver:latest...
Done!
Build finished``
@ModischFabrications ModischFabrications added the bug Something isn't working label May 14, 2019
@ModischFabrications ModischFabrications self-assigned this May 14, 2019
@ModischFabrications
Copy link
Owner Author

also consider docker/hub-feedback#1352

@ModischFabrications
Copy link
Owner Author

container was build a few more times but still has no tag showing other architectures. Did not work as expected, log shows the classical exec format error.

@ModischFabrications
Copy link
Owner Author

@ModischFabrications
Copy link
Owner Author

@ModischFabrications
Copy link
Owner Author

moby/moby#36552

@ModischFabrications
Copy link
Owner Author

@ModischFabrications
Copy link
Owner Author

@ModischFabrications
Copy link
Owner Author

ModischFabrications commented Apr 11, 2020

clone structure of https://github.com/ModischFabrications/wahlzeit/blob/master/.travis.yml

-> push only with tag, set hub tags equal instead of always using latest

@ModischFabrications
Copy link
Owner Author

Maaaaaan, everything should have been so much easier with buildx or native multiplatform Docker Hub builds. It's still not released and every other solution does not work, is painful, or both.

@ModischFabrications
Copy link
Owner Author

getting closer, but this time a timeout happened after 57 min. Yes, it really took that long, I'm removing some archs now

https://travis-ci.org/github/ModischFabrications/CutSolver/jobs/676748087

@ModischFabrications
Copy link
Owner Author

follow up on travis-ci/travis-ci#8740, still won't work right now.

@ModischFabrications
Copy link
Owner Author

test docker image health? -> waiting for 5m is bad, check it manually with curl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant