naftulikay / docker-circleci-lambda-rust

An AWS Lambda build environment for CircleCI and Rust.
Other
1 stars 0 forks source link

Use Rustup Installer Directly #1

Closed naftulikay closed 6 years ago

naftulikay commented 6 years ago

Docker Hub is ridiculous. It builds locally and on Travis CI, but it doesn't build on Docker Hub:

Step 16/23 : RUN curl https://sh.rustup.rs -sSf | sudo -u ${RUST_USER} sh -s -- -y &&   ${RUST_HOME}/.cargo/bin/rustup completions bash | tee /etc/bash_completion.d/rust >/dev/null &&   chmod 0755 /etc/bash_completion.d/rust &&   rsync -a ${RUST_HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man/man1/ /usr/local/share/man/man1/
 ---> Running in dae93c27e32b
mktemp: too few X's in template ‘rustup’
rustup: command failed: mktemp -d -t rustup
info: downloading installer
mkdir: cannot create directory ‘’: No such file or directory
rustup: command failed: mkdir -p 
Removing intermediate container dae93c27e32b
The command '/bin/sh -c curl https://sh.rustup.rs -sSf | sudo -u ${RUST_USER} sh -s -- -y &&   ${RUST_HOME}/.cargo/bin/rustup completions bash | tee /etc/bash_completion.d/rust >/dev/null &&   chmod 0755 /etc/bash_completion.d/rust &&   rsync -a ${RUST_HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man/man1/ /usr/local/share/man/man1/' returned a non-zero code: 1

Replacing this with the actual binary and invocation seems to work.