Skip to content

Commit

Permalink
fix(ci): fix cargo installation for using in ci (#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored Apr 18, 2024
1 parent 7b3f02b commit 77e7b8e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/ci/docker/zombienet_injected.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@ LABEL io.parity.image.authors="[email protected]" \
io.parity.image.created="${BUILD_DATE}"

RUN apt-get update && \
apt-get install -y curl gnupg lsb-release jq tini vim procps && \
apt-get install -y curl gnupg lsb-release jq tini vim procps build-essential && \
apt-get autoremove -y && \
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
Expand Down Expand Up @@ -62,6 +58,13 @@ RUN chown -R nonroot. /etc/zombie-net

# Use the non-root user to run our application
USER nonroot

# install rust
ENV RUST_VERSION=1.75.0
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y

ENV PATH $PATH:/home/nonroot/.cargo/bin

# Tini allows us to avoid several Docker edge cases, see https://github.com/krallin/tini.
ENTRYPOINT ["tini", "--", "bash"]

0 comments on commit 77e7b8e

Please sign in to comment.