iroha: [BUG]: Local `docker build` fails on M1 Mac

GIT commit hash

02283d16

Minimum working example

COMMIT=02283d16
git checkout $COMMIT
docker build -t 2690:base-$COMMIT -t iroha2:base -f Dockerfile.base .
docker build -t 2690:build-$COMMIT -t iroha2:build -f Dockerfile.build .
docker build -t 2690:final-$COMMIT .

Expected behaviour

Succeeds, regardless of the host platform (confirmed by e.g. uname -io)

Actual behaviour

Fails on M1 Mac

Operating system

x86_64 GNU/Linux (Succeeds to build)

LibC type and version

No response

Current environment

Source code build

Logs in JSON format

Log contents
Replace this text with a JSON log,
so it doesn't grow too large and has highlighting.

Who can help?

@s8sato

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (23 by maintainers)

Commits related to this issue

Most upvoted comments

There’s a third option for caching. We can use cargo lock to pre-build the docker image in CI. This can be done using e.g. cargo chef, leading to us having the full dependencies already in place. This skips the download and upload of the cache, and instead re-uses the docker image that’s already on the runners.

@s8sato , no, Vasily means, that downloaded image works on M1, it always was working. But I’m still unable to build an image