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

Add CI for multi platform docker builds #198

Closed
joepio opened this issue Oct 31, 2021 · 5 comments
Closed

Add CI for multi platform docker builds #198

joepio opened this issue Oct 31, 2021 · 5 comments

Comments

@joepio
Copy link
Member

joepio commented Oct 31, 2021

Would be awesome if 32 / 64 / armv7 docker image builds are made in the CI

joepio added a commit that referenced this issue Oct 31, 2021
@joepio
Copy link
Member Author

joepio commented Oct 31, 2021

Seems to fail: buildx call failed with: error: invalid tag "joepmeneer/atomic-server:-195-parse-nested-resources": invalid reference format

Not sure why this action https://github.com/docker/build-push-action fails.

I'll try a different version: https://github.com/joepio/atomic-data-rust/actions/runs/1404708531

@joepio
Copy link
Member Author

joepio commented Oct 31, 2021

Maybe the name of the tag is wrong, because it starts with a dash. But it's weird that it's using that tag at all - I never set it. Maybe I should re-push some other tag, and prevent manually running this task.

joepio added a commit that referenced this issue Oct 31, 2021
joepio added a commit that referenced this issue Oct 31, 2021
joepio added a commit that referenced this issue Oct 31, 2021
@joepio
Copy link
Member Author

joepio commented Oct 31, 2021

Cargo-chef not working because... It can't reach crates.io?

> [linux/arm/v7 planner 3/5] RUN cargo install cargo-chef:
#51 2.251     Updating crates.io index
#51 2.568 warning: spurious network error (2 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.aaakk.us.kg-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#51 2.785 warning: spurious network error (1 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.aaakk.us.kg-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#51 2.997 error: failed to fetch `https://github.com/rust-lang/crates.io-index`
#51 2.997 
#51 2.997 Caused by:
#51 2.998   could not read directory '/usr/local/cargo/registry/index/github.aaakk.us.kg-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
------
dockerfile:10
--------------------
   8 |     FROM rust  as cacher
   9 |     WORKDIR /app
  10 | >>> RUN cargo install cargo-chef
  11 |     COPY --from=planner /app/recipe.json recipe.json
  12 |     RUN cargo chef cook --release --recipe-path recipe.json
--------------------
error: failed to solve: process "/bin/sh -c cargo install cargo-chef" did not complete successfully: exit code: 101
Error: buildx failed with: error: failed to solve: process "/bin/sh -c cargo install cargo-chef" did not complete successfully: exit code: 101

@joepio
Copy link
Member Author

joepio commented Nov 1, 2021

It's probably this issue: rust-lang/cargo#8719

@joepio
Copy link
Member Author

joepio commented Sep 14, 2022

The new action works! Just built the first armv7 image on github CI.

@joepio joepio closed this as completed Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant