rust-cross / rust-musl-cross

Docker images for compiling static Rust binaries using musl-cross
MIT License
620 stars 68 forks source link

Use messense/rust-musl-cross as custom images in cross? [feature request] #24

Closed xoac closed 1 year ago

xoac commented 4 years ago

Hi, I was wondering about difference between cross and messense/rust-musl-cross images. For sure there is big one - cross doesn't support openssl. Are there any other?

I am asking because maybe it would be good idea to make messense/rust-musl-cross images work with cross. See custom docker images in cross.

messense commented 4 years ago

Is it not working now? Could you paste the error message here?

xoac commented 4 years ago

➜ cross build --target armv7-unknown-linux-musleabihf

error: could not create home directory: '/.rustup'
error: caused by: Permission denied (os error 13)

➜ cat Cross.toml

[target.armv7-unknown-linux-musleabihf]
image = "messense/rust-musl-cross:armv7-musleabihf"

I love your quick responses!

messense commented 4 years ago

I think we need to find out what is trying to create the home directory /.rustup.

This issue might be somewhat related: https://github.com/rust-embedded/cross/issues/399