Scorpil / docker-rust

45 stars 8 forks source link

Use rustup now that it's the official installation method #10

Open paul-english opened 7 years ago

paul-english commented 7 years ago

Using rustup to install would allow us to run nightly only things like rustfmt alongside the stable build.

bbigras commented 7 years ago

could base this on 83f68b9

mathroc commented 7 years ago

@bbigras have you tried it on alpine ?

I have this error :

/ # curl https://sh.rustup.rs -sSf | sh -s -- -y
info: downloading installer
sh: /tmp/tmp.PfDcdK/rustup-init: not found
bbigras commented 7 years ago

have you tried it on alpine ?

No. rustup-init seems to need libc. I don't know if it works with libc6-compat or musl libc. With libc6-compat I got:

~ # /tmp/tmp.KJgKFh/rustup-init 
Error relocating /tmp/tmp.KJgKFh/rustup-init: __register_atfork: symbol not found
Error relocating /tmp/tmp.KJgKFh/rustup-init: __rawmemchr: symbol not found
Error relocating /tmp/tmp.KJgKFh/rustup-init: __strtok_r: symbol not found