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

[BUG] Load metadata for docker.io/library/archlinux:base-deve error when trying to build docker compose generated from local repository #3604

Closed
Tracked by #2373
timofeevmd opened this issue Jun 13, 2023 · 2 comments
Assignees
Labels
Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST

Comments

@timofeevmd
Copy link
Contributor

OS and Environment

MacOS 13.3

GIT commit hash

2f371c9

Minimum working example / Steps to reproduce

Kagami build

cargo run --bin kagami -- swarm  --peers 5 --outdir ./kagami_config --build /path/to/iroha/

Docker compose up

docker-compose -f ./kagami_config/docker-compose.yml up -d

a similar problem occurs when build kagami with from the git repository

cargo run --bin kagami -- swarm --peers 5 --outdir ./kagami_config_github --build-from-github

Actual result

docker-compose up after local build

[+] Building 2.9s (14/14) FINISHED                                                                                                                                                                                                            
 => [kagami_config-iroha3 internal] load build definition from Dockerfile                                                                                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config-iroha0 internal] load build definition from Dockerfile                                                                                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config-iroha2 internal] load build definition from Dockerfile                                                                                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config-iroha4 internal] load build definition from Dockerfile                                                                                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config-iroha1 internal] load build definition from Dockerfile                                                                                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config-iroha3 internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config-iroha0 internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config-iroha2 internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config-iroha4 internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config-iroha1 internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => CANCELED [kagami_config-iroha2 internal] load metadata for docker.io/library/alpine:3.16                                                                                                                                             2.6s
 => ERROR [kagami_config-iroha2 internal] load metadata for docker.io/library/archlinux:base-devel                                                                                                                                       2.6s
 => [auth] library/archlinux:pull token for registry-1.docker.io                                                                                                                                                                         0.0s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                                                                                                                            0.0s
------
 > [kagami_config-iroha2 internal] load metadata for docker.io/library/archlinux:base-devel:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:c1cc82cde7e0439dc17ade3633bc8daf92a8ce11990311d02b17ec14e3db959d: not found

docker-compose up after when build kagami from the git repo

[+] Building 2.5s (14/14) FINISHED                                                                                                                                                                                                            
 => [kagami_config_github-iroha2 internal] load build definition from Dockerfile                                                                                                                                                         0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config_github-iroha1 internal] load build definition from Dockerfile                                                                                                                                                         0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config_github-iroha3 internal] load build definition from Dockerfile                                                                                                                                                         0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config_github-iroha4 internal] load build definition from Dockerfile                                                                                                                                                         0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config_github-iroha0 internal] load build definition from Dockerfile                                                                                                                                                         0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                      0.0s
 => [kagami_config_github-iroha2 internal] load .dockerignore                                                                                                                                                                            0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config_github-iroha1 internal] load .dockerignore                                                                                                                                                                            0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config_github-iroha3 internal] load .dockerignore                                                                                                                                                                            0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config_github-iroha4 internal] load .dockerignore                                                                                                                                                                            0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => [kagami_config_github-iroha0 internal] load .dockerignore                                                                                                                                                                            0.0s
 => => transferring context: 34B                                                                                                                                                                                                         0.0s
 => ERROR [kagami_config_github-iroha2 internal] load metadata for docker.io/library/archlinux:base-devel                                                                                                                                2.2s
 => CANCELED [kagami_config_github-iroha1 internal] load metadata for docker.io/library/alpine:3.16                                                                                                                                      2.2s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                                                                                                                            0.0s
 => [auth] library/archlinux:pull token for registry-1.docker.io                                                                                                                                                                         0.0s
------
 > [kagami_config_github-iroha2 internal] load metadata for docker.io/library/archlinux:base-devel:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:c1cc82cde7e0439dc17ade3633bc8daf92a8ce11990311d02b17ec14e3db959d: not found

Expected result

deploy successfully

Logs in JSON format

unfortunately I have nothing to add here

Who can help to reproduce?

@timofeevmd

Notes

No response

@timofeevmd timofeevmd added Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST labels Jun 13, 2023
@0x009922
Copy link
Contributor

0x009922 commented Aug 7, 2023

@timofeevmd, it might work on iroha2-dev branch after merge of #3747. Could you check it?

@timofeevmd
Copy link
Contributor Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

No branches or pull requests

2 participants