Skip to content
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

With openwrt in Docker: sh: /tmp/tmp.GLeXQX/rustup-init: not found #1272

Closed
mcandre opened this issue Oct 22, 2017 · 2 comments
Closed

With openwrt in Docker: sh: /tmp/tmp.GLeXQX/rustup-init: not found #1272

mcandre opened this issue Oct 22, 2017 · 2 comments

Comments

@mcandre
Copy link
Contributor

mcandre commented Oct 22, 2017

Hiya! I'm trying to install rust via rustup in OpenWrt in Docker, but I'm getting some weird /tmp error.

Source

FROM mcandre/docker-openwrt
RUN opkg update && \
    opkg install curl ca-certificates && \
    curl https://sh.rustup.rs -sSf | sh -s -- -y

Trace

$ docker build -t mcandre/rust:uclibc .
Sending build context to Docker daemon  88.06kB
Step 1/2 : FROM mcandre/docker-openwrt
 ---> dd5c36292b0f
Step 2/2 : RUN opkg update &&     opkg install curl ca-certificates &&     curl https://sh.rustup.rs -sSf | sh -s -- -y
 ---> Running in 0ffa398ac2f4
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/base/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/luci/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/routing/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/telephony/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/management/Packages.sig.
Signature check passed.
Installing curl (7.40.0-3) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/base/curl_7.40.0-3_x86_64.ipk.
Installing libcurl (7.40.0-3) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/base/libcurl_7.40.0-3_x86_64.ipk.
Installing libpolarssl (1.3.14-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/base/libpolarssl_1.3.14-1_x86_64.ipk.
Installing ca-certificates (20150426) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/packages/base/ca-certificates_20150426_x86_64.ipk.
Configuring libpolarssl.
Configuring libcurl.
Configuring curl.
Configuring ca-certificates.
info: downloading installer
sh: /tmp/tmp.GLeXQX/rustup-init: not found
The command '/bin/sh -c opkg update &&     opkg install curl ca-certificates &&     curl https://sh.rustup.rs -sSf | sh -s -- -y' returned a non-zero code: 1

I suspect that things that deal with /tmp don't run so well in Docker. I'll see if I can cache the rust init script somewhere else and run it manually.

Update

Crap, even when I explicitly download rustup-init.sh and execute it, the script still complains about /tmp stuff.

FROM mcandre/docker-openwrt
RUN opkg update && \
    opkg install curl ca-certificates && \
    curl -o /rustup-init.sh https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/rustup-init.sh && \
    sh /rustup-init.sh -y
@mcandre
Copy link
Contributor Author

mcandre commented Oct 22, 2017

Update: Based on #1273 , I suspect that the "not found" error is more about executable format rather than /tmp things. rustup does not appear to support uClibC systems yet.

@Diggsey
Copy link
Contributor

Diggsey commented May 30, 2018

Correct

@Diggsey Diggsey closed this as completed May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants