forked from diem/diem
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incremental docker build for validator image
This diff changes build time from 40 to few minutes for incremental change, which is incredibly valuable during triage
- Loading branch information
Andrey Chursin
committed
Oct 11, 2019
1 parent
8ac093d
commit 243f535
Showing
3 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM debian:stretch | ||
|
||
# To use http/https proxy while building, use: | ||
# docker build --build-arg https_proxy=http://fwdproxy:8080 --build-arg http_proxy=http://fwdproxy:8080 | ||
|
||
RUN echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/backports.list \ | ||
&& apt-get update && apt-get install -y protobuf-compiler/stretch-backports cmake curl clang | ||
# && apt-get clean && rm -r /var/lib/apt/lists/* | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none | ||
ENV PATH "$PATH:/root/.cargo/bin" | ||
|
||
WORKDIR /libra | ||
COPY rust-toolchain /libra/rust-toolchain | ||
RUN rustup install $(cat rust-toolchain) |