-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker/ci: fix rust installation #636
Conversation
PTAL |
This can be tested with |
docker/ci/Dockerfile
Outdated
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2017-02-25 \ | ||
&& ~/.cargo/bin/cargo install rustfmt \ | ||
&& ~/.cargo/bin/cargo install clippy \ | ||
&& ~/.cargo/bin/cargo install cargo-audit \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove trailing final backslash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would actually prefer to keep the trailing backslash to try to make typos less likely in the future. If we're adding lines onto the end and we imitate the final line, it'll do the right thing instead of leaving off the backslash.
Also, even when we do the right thing, it reduces diff noise — it doesn't generate a spurious difference on the existing line just to add a backslash.
Adding in a couple more dependencies makes it get further, but it's still hung up on the following error:
We can keep poking around at this, but if we can't figure it out in a day or two I think maybe we should back out the previous commit and look at other options. (Maybe switching to ubuntu as the base system?) |
This seems relevant... looks like they're using musl instead of glibc? gliderlabs/docker-alpine#168 Also: gliderlabs/docker-alpine#11 I'd think the happy path here would be to switch to Ubuntu. No worries if you want to back out this change until you do that. |
Yeah alpine is using musl for sure; and it looks like rust doesn't really play nice with musl. It would also be fine to run a static build of rust but it looks like such a thing isn't available. We tried installing a glibc alongside musl in the image, but haven't dug around in the rust build system enough to make sure it's picking up the glibc files instead of the musl files. |
Ok thank you! |
Looks like there's a project that supports building Rust with musl: |
If we end up migrating from Alpine, it seems like a good opportunity to use a CentOS based image. Most of our clients will be running RHEL. |
Yeah okay, it doesn't seem like a straightforward fix any more, so I'd like to back out 58c1cd0 for now, and then we can try again with either the musl-builder or CentOS. |
No description provided.