Docker compose failing on mac os (x86 arch)
noslav opened this issue · 1 comments
noslav commented
Docker is currently only configured for arm64 arch and fails on x86 intel arch
set-up-contracts |
set-up-contracts | An unexpected error occurred:
set-up-contracts |
set-up-contracts | Error: spawn /root/.cache/hardhat-nodejs/compilers/linux-amd64/solc-linux-amd64-v0.8.13+commit.abaa5c0e ENOENT
set-up-contracts | at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
set-up-contracts | at onErrorNT (node:internal/child_process:480:16)
set-up-contracts | at processTicksAndRejections (node:internal/process/task_queues:83:21) {
set-up-contracts | errno: -2,
set-up-contracts | code: 'ENOENT',
set-up-contracts | syscall: 'spawn /root/.cache/hardhat-nodejs/compilers/linux-amd64/solc-linux-amd64-v0.8.13+commit.abaa5c0e',
set-up-contracts | path: '/root/.cache/hardhat-nodejs/compilers/linux-amd64/solc-linux-amd64-v0.8.13+commit.abaa5c0e',
set-up-contracts | spawnargs: [ '--standard-json' ],
set-up-contracts | cmd: '/root/.cache/hardhat-nodejs/compilers/linux-amd64/solc-linux-amd64-v0.8.13+commit.abaa5c0e --standard-json'
set-up-contracts | }
set-up-contracts exited with code 1
noslav commented
This is now resolved by #27 & dual docker manifests for both archs
{
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"schemaVersion": 2,
"manifests": [
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:24d42d13b2bde7df248ae73cb944d48e1cc38a4bc54f3625104a0f517f896a3a",
"size": 1569,
"platform": {
"architecture": "amd64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:2265ed4b693448bb5fc245c6500b26d3a7e3b9c900bc3b1f079aaab835a6bd5f",
"size": 1569,
"platform": {
"architecture": "arm64",
"os": "linux"
}
}
]
}