From 45f72c02f8cc3260f12a079e97ad08c1035fa669 Mon Sep 17 00:00:00 2001 From: Hamid Emamian Date: Wed, 17 Apr 2024 15:20:49 +0330 Subject: [PATCH] added rust installation and PATH manipulation --- scripts/ci/docker/zombienet_injected.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ci/docker/zombienet_injected.Dockerfile b/scripts/ci/docker/zombienet_injected.Dockerfile index fa591bde4..ae586c250 100644 --- a/scripts/ci/docker/zombienet_injected.Dockerfile +++ b/scripts/ci/docker/zombienet_injected.Dockerfile @@ -14,11 +14,15 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* +# install rust +ENV RUST_VERSION=1.75.0 +RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y + # install gcloud and kubectl WORKDIR /home/nonroot/ ENV CLOUDSDK_INSTALL_DIR /usr/local/gcloud RUN curl -sSL https://sdk.cloud.google.com | bash -ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin +ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin:/root/.cargo/bin RUN gcloud components install kubectl # Non-root user for security purposes.