Skip to content

Commit

Permalink
Merge branch 'v0.21-rh' into syedriko_log_2734
Browse files Browse the repository at this point in the history
  • Loading branch information
syedriko committed Jul 8, 2022
2 parents aca782d + 77ecb7f commit b092682
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile.unit
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM registry.redhat.io/ubi8:8.6-754 as builder
FROM registry.redhat.io/ubi8:6-754 as builder

RUN INSTALL_PKGS=" \
rust-toolset \
cmake \
libarchive \
make \
git \
openssl-devel \
Expand All @@ -17,10 +17,17 @@ RUN INSTALL_PKGS=" \
rpm -V $INSTALL_PKGS && \
yum clean all

ENV HOME=/root
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.58.1 -y
ENV CARGO_HOME=$HOME/.cargo
ENV PATH=$CARGO_HOME/bin:$PATH

RUN mkdir -p /src

WORKDIR /src
COPY . /src

RUN chmod -R 777 /src $CARGO_HOME
RUN mkdir -p ~/.cargo/bin && \
for plugin in nextest deny; do \
ln -s /src/thirdparty/cargo-${plugin}/cargo-${plugin}-linux-$(arch) ~/.cargo/bin/cargo-${plugin}; \
Expand Down

0 comments on commit b092682

Please sign in to comment.