You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.06kBStep 1/2 : FROM mcandre/docker-openwrt ---> dd5c36292b0fStep 2/2 : RUN opkg update && opkg install curl ca-certificates && curl https://sh.rustup.rs -sSf | sh -s -- -y ---> Running in 0ffa398ac2f4Downloading 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 installersh: /tmp/tmp.GLeXQX/rustup-init: not foundThe 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
The text was updated successfully, but these errors were encountered:
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.
Hiya! I'm trying to install rust via rustup in OpenWrt in Docker, but I'm getting some weird /tmp error.
Source
Trace
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.
The text was updated successfully, but these errors were encountered: