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?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (23 by maintainers)
Commits related to this issue
- [fix] #2690: Harmonize toolchain with docker images Signed-off-by: Shunkichi Sato <49983831+s8sato@users.noreply.github.com> — committed to s8sato/iroha by s8sato 2 years ago
- [ci]: #2690: Add cargo chef caching Signed-off-by: BAStos525 <jungle.vas@yandex.ru> — committed to BAStos525/soramitsu-iroha by BAStos525 2 years ago
- [ci]: #2690: Add cargo chef caching Signed-off-by: BAStos525 <jungle.vas@yandex.ru> — committed to BAStos525/soramitsu-iroha by BAStos525 2 years ago
- [ci]: #2690: Add cargo chef caching Signed-off-by: BAStos525 <jungle.vas@yandex.ru> — committed to BAStos525/soramitsu-iroha by BAStos525 2 years ago
- [ci]: #2690: Add cargo chef caching Signed-off-by: BAStos525 <jungle.vas@yandex.ru> — committed to BAStos525/soramitsu-iroha by BAStos525 2 years ago
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