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

Experimental: Improve support for USER root #100

Merged
merged 2 commits into from
Jan 4, 2021
Merged

Experimental: Improve support for USER root #100

merged 2 commits into from
Jan 4, 2021

Conversation

emk
Copy link
Owner

@emk emk commented Sep 6, 2020

This PR attempts to lay the groundwork to address #96. In particular, we install the Rust toolchain globally by abusing rustup.

We still preserve the legacy rust user but we may start encouraging derived Dockerfiles to consider USER root.

This PR also removes ARM support. We want to explore the idea of supporting ARM more reliably using a separate image, but perhaps it would be better to refer those users to one of the Rust cross-compilation toolchains. See #63 for discussion.

Things to do before merging this to master:

  • Figure out what we want to do with ARM.
  • Wait until a new Rust release, and merge then, to minimize disruption caused by overwriting latest, etc., with something incompatible.

emk added 2 commits September 6, 2020 11:33
This PR attempts to lay the groundwork to address
#96. In particular, we
install the Rust toolchain globally by abusing `rustup`.

We still preserve the legacy `rust` user but we now encourage derived
Dockerfiles to consider `USER root`.

This PR also removes ARM support. We want to explore the idea of
supporting ARM more reliably using a separate image, but perhaps it
would be better to refer those users to one of the Rust
cross-compilation toolchains. See
#63 for discussion.
gibfahn added a commit to gibfahn/rust-musl-builder that referenced this pull request 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: emk#96
Refs: emk#100
@emk emk merged commit 3ae8179 into master Jan 4, 2021
# 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.

1 participant