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

Docker image for arm #80

Closed
joepio opened this issue Jan 22, 2021 · 2 comments
Closed

Docker image for arm #80

joepio opened this issue Jan 22, 2021 · 2 comments
Labels
server atomic-server

Comments

@joepio
Copy link
Member

joepio commented Jan 22, 2021

Current docker image is x86 only. I believe it's possible to use buildx to build a docker image compatible with arm.

@joepio joepio added the server atomic-server label Jan 23, 2021
@joepio
Copy link
Member Author

joepio commented Jan 23, 2021

I got buildx working just fine for linkux/arm64, but building the linux/arm/v7 image fails:

> [planner 3/5] RUN cargo install cargo-chef:                                                                                         
#13 1.278     Updating crates.io index                                                                                                 
#13 1.789 warning: spurious network error (2 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)                                                         
#13 2.152 warning: spurious network error (1 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#13 2.528 error: failed to fetch `https://github.com/rust-lang/crates.io-index`
#13 2.530 
#13 2.530 Caused by:
#13 2.531   could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
------
dockerfile:9
--------------------
   7 |     FROM rust as cacher
   8 |     WORKDIR /app
   9 | >>> RUN cargo install cargo-chef
  10 |     COPY --from=planner /app/recipe.json recipe.json
  11 |     RUN cargo chef cook --release --recipe-path recipe.json
--------------------
error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c cargo install cargo-chef]: exit code: 101

@joepio
Copy link
Member Author

joepio commented Jan 23, 2021

Issue being discussed here: docker/buildx#395

joepio added a commit that referenced this issue Jan 23, 2021
@joepio joepio closed this as completed Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server atomic-server
Projects
None yet
Development

No branches or pull requests

1 participant