Skip to content

Commit

Permalink
Debug rustup on arm/s390x
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
brandond committed Feb 2, 2023
1 parent 3f671a5 commit dd347c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH

RUN GOARCH=$(go env GOARCH); \
RUN set -ex; \
GOARCH=$(go env GOARCH); \
if [ "${GOARCH}" = "arm" ]; then \
RUST_ARCH=armv7-unknown-linux-gnueabihf; \
TRIVY_ARCH=ARM; \
Expand All @@ -37,15 +38,15 @@ RUN GOARCH=$(go env GOARCH); \
RUST_ARCH=s390x-unknown-linux-gnu; \
fi; \
if [ -n "${RUST_ARCH}" ]; then \
curl -sLO https://static.rust-lang.org/rustup/archive/1.25.1/${RUST_ARCH}/rustup-init; \
curl -sfLO https://static.rust-lang.org/rustup/archive/1.25.1/${RUST_ARCH}/rustup-init; \
chmod +x ./rustup-init; \
./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.67.0 --default-host ${RUST_ARCH}; \
rustup --version; \
cargo --version; \
rustc --version; \
fi; \
if [ -n "${TRIVY_ARCH}" ]; then \
curl -sL https://github.com/aquasecurity/trivy/releases/download/v0.25.3/trivy_0.25.3_Linux-${TRIVY_ARCH}.tar.gz | tar -zxvC /usr/local/bin trivy; \
curl -sFL https://github.com/aquasecurity/trivy/releases/download/v0.25.3/trivy_0.25.3_Linux-${TRIVY_ARCH}.tar.gz | tar -zxvC /usr/local/bin trivy; \
trivy --version; \
fi

Expand Down

0 comments on commit dd347c6

Please sign in to comment.