Skip to content

Commit

Permalink
Add rustc to ARM buildbox (#42674)
Browse files Browse the repository at this point in the history
  • Loading branch information
fheinecke authored Jun 10, 2024
1 parent 2728394 commit 19f5061
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.assets/Dockerfile-arm
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,20 @@ RUN groupadd ci --gid="$GID" -o && \
mkdir -p -m0700 /var/lib/teleport && \
chown -R ci /var/lib/teleport

# Install Rust.
ARG RUST_VERSION
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=$RUST_VERSION
RUN mkdir -p $RUSTUP_HOME && chmod a+w $RUSTUP_HOME && \
mkdir -p $CARGO_HOME/registry && chmod -R a+w $CARGO_HOME
# Install Rust using the ci user, as that is the user that
# will run builds using the Rust toolchains we install here.
USER ci
RUN curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION && \
rustup --version && \
cargo --version && \
rustc --version

VOLUME ["/go/src/github.com/gravitational/teleport"]
1 change: 1 addition & 0 deletions build.assets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ buildbox-arm:
--build-arg BUILDARCH=$(RUNTIME_ARCH) \
--build-arg GOLANG_VERSION=$(GOLANG_VERSION) \
--build-arg NODE_VERSION=$(NODE_VERSION) \
--build-arg RUST_VERSION=$(RUST_VERSION) \
--cache-to type=inline \
--cache-from $(BUILDBOX_ARM) \
$(if $(PUSH),--push,--load) \
Expand Down

0 comments on commit 19f5061

Please sign in to comment.