ChainSafe / chainbridge-celo

GNU Lesser General Public License v3.0
3 stars 2 forks source link

Error on local docker build #113

Closed waymobetta closed 3 years ago

waymobetta commented 3 years ago

Expected Behavior

Dockerfile should build and execute chainbridge-celo binary within container without error

Current Behavior

Build fails at instruction: RUN go mod download

Possible Solution

Steps to Reproduce (for bugs)

  1. docker build --no-cache . (build and run local changes to repo, i.e. a simple log)

Screenshot

Screen Shot 2021-05-17 at 10 39 17 AM

Versions

ChainBridge commit (or docker tag): chainbridge-solidity version: n/a chainbridge-substrate version: n/a Go version: 1.16.2

waymobetta commented 3 years ago

Considering @P1sar could not replicate the bug, and I could also not replicate after switching to a non-AppleM1 chip MacBook also running most updated macOS Big Sur 11.3.1..

This is a bug likely relating to the new Apple M1 CPU

waymobetta commented 3 years ago

Thanks to @ansermino , was able to resolve the issue by asking Docker to use the amd64 library, required for the linked library to exist.

Reference: https://github.com/nodejs/help/issues/3239

Example: docker build . --platform=linux/amd64