Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set RUSTUP_HOME and CARGO_HOME for building as root #105

Closed
wants to merge 1 commit into from

Conversation

gibfahn
Copy link

@gibfahn gibfahn commented Oct 27, 2020

This is the minimal change needed to allow the docker image to be run
with --user root and still build correctly.

There may be better long-term ways of doing this, but hopefully this is
small enough to be uncontroversial.

This isn't a breaking change for users running normally (as the rust
user) because these are already the default paths.

Refs: #96
Refs: #100

This is the minimal change needed to allow the docker image to be run
with `--user root` and still build correctly.

There may be better long-term ways of doing this, but hopefully this is
small enough to be uncontroversial.

This isn't a breaking change for users running normally (as the `rust`
user) because these are already the default paths.

Refs: emk#96
Refs: emk#100
@gibfahn
Copy link
Author

gibfahn commented Oct 27, 2020

I set these vars where the other ENV vars were set. If instead they are set at the start, then the curl https://sh.rustup.rs | sh above would respect them. This doesn't make any difference now as it's the default, and I doubt rustup is going to change its defaults, but seems worth noting.

@emk
Copy link
Owner

emk commented Jan 7, 2021

I have merged a slightly different version of this idea. Please let me know if it works for you (assuming you're still using it)!

@emk emk closed this Jan 7, 2021
@gibfahn gibfahn deleted the patch-1 branch January 8, 2021 00:11
@gibfahn
Copy link
Author

gibfahn commented Jan 8, 2021

Thanks, replied in #96 (comment) to keep the context there.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants