Skip to content

Commit

Permalink
fix(build): Fetch with cli while updating the registry index (#1570)
Browse files Browse the repository at this point in the history
It looks like docker build was killed because it used too much memory
while updating the registry index, when forcing cargo to use cli, I
could pass the step when the index is updated and successfully build the
image.

Fixes #1559 
It seems related to rust-lang/cargo#9167
  • Loading branch information
olksdr authored Nov 9, 2022
1 parent 054a8a8 commit e4d11ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ ENV RELAY_FEATURES=${RELAY_FEATURES}
COPY . .

# Build with the modern compiler toolchain enabled
RUN scl enable devtoolset-10 llvm-toolset-7.0 -- \
RUN echo -e "[net]\ngit-fetch-with-cli = true" > $CARGO_HOME/config \
&& scl enable devtoolset-10 llvm-toolset-7.0 -- \
make build-linux-release \
TARGET=${BUILD_TARGET} \
RELAY_FEATURES=${RELAY_FEATURES}
Expand Down

0 comments on commit e4d11ee

Please sign in to comment.