Git Product home page Git Product logo

Comments (11)

rarkins avatar rarkins commented on August 19, 2024

export_env RUSTUP_HOME /usr/local/rust
export CARGO_HOME=/usr/local/cargo

  1. Shall we set permissions?
  2. Does the second one need to be export_env as well?

from docker-buildpack.

rarkins avatar rarkins commented on August 19, 2024
❯ docker run --rm renovate/rust ls -l /usr/local/
total 44
drwxr-xr-x 1 root root 4096 Jun  3 07:50 bin
drwxr-xr-x 1 root root 4096 Jun  3 07:50 build
drwxr-xr-x 3 root root 4096 Jun  3 11:39 cargo
drwxr-xr-x 1 root root 4096 Jun  3 11:39 etc
drwxr-xr-x 2 root root 4096 Apr  3 17:12 games
drwxr-xr-x 2 root root 4096 Apr  3 17:12 include
drwxr-xr-x 2 root root 4096 Apr  3 17:12 lib
lrwxrwxrwx 1 root root    9 Apr  3 17:12 man -> share/man
drwxr-xr-x 6 root root 4096 Jun  3 11:39 rust
drwxr-xr-x 2 root root 4096 Apr  3 17:13 sbin
drwxr-xr-x 1 root root 4096 Apr 30 13:39 share
drwxr-xr-x 2 root root 4096 Apr  3 17:12 src

from docker-buildpack.

viceice avatar viceice commented on August 19, 2024

I don't export CARGO_HOME, so it falls back to ~/.cargo

from docker-buildpack.

rarkins avatar rarkins commented on August 19, 2024

Worth trying to install without sudo? http://blog.muhuk.com/2017/11/07/how_to_install_rust_on_debian_without_sudo.html

from docker-buildpack.

viceice avatar viceice commented on August 19, 2024

Worth trying to install without sudo? http://blog.muhuk.com/2017/11/07/how_to_install_rust_on_debian_without_sudo.html

404 for me

from docker-buildpack.

rarkins avatar rarkins commented on August 19, 2024

Weird - definitely 200 ok for me

from docker-buildpack.

rarkins avatar rarkins commented on August 19, 2024

We'd do something like this: rustup.sh --disable-sudo --prefix=/home/ubuntu/.rust (as ubuntu) and then add /home/ubuntu/.rust/bin/ to $PATH

from docker-buildpack.

viceice avatar viceice commented on August 19, 2024

i know, this would install all rust to user home, investigating why cargo wants to write to global rust instead of local cargo folder

from docker-buildpack.

rarkins avatar rarkins commented on August 19, 2024

Seems to be a rustup thing

from docker-buildpack.

rarkins avatar rarkins commented on August 19, 2024

Installing as ubuntu would seem to be most forwards-compatible

from docker-buildpack.

viceice avatar viceice commented on August 19, 2024

yes, https://github.com/renovate-tests/tikv/blob/master/rust-toolchain uses a nightly rust version, so the rustup proxies try to dynamically download the tool chain 🤔

from docker-buildpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.