-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: pass on docker_fast.sh (#9615)
- Should be faster, stable cache layers & end-to-end image now available. - No longer need aws cli tool for cache download What's not done: - Make the images not huge - Most of yarn projects install could be in cache fixes: #9503 --------- Co-authored-by: Maddiaa <47148561+Maddiaa0@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
97 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Use an ARG to define the architecture, defaulting to amd64 | ||
ARG ARCH=amd64 | ||
# aztec must be built from Dockerfile.fast | ||
FROM aztecprotocol/aztec AS aztec | ||
FROM aztecprotocol/build:1.0-${ARCH} | ||
|
||
# Install additional dependencies | ||
RUN apt-get update && apt-get install -y software-properties-common \ | ||
&& add-apt-repository ppa:xtradeb/apps -y && apt-get update \ | ||
&& apt-get install -y wget gnupg \ | ||
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& echo "deb [arch=$(dpkg --print-architecture)] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ | ||
&& apt update && apt install -y curl chromium netcat-openbsd \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV CHROME_BIN="/usr/bin/chromium" | ||
ENV PATH=/opt/foundry/bin:$PATH | ||
ENV HARDWARE_CONCURRENCY="" | ||
ENV FAKE_PROOFS="" | ||
ENV PROVER_AGENT_CONCURRENCY=8 | ||
|
||
COPY --from=aztec /usr/src/ /usr/src/ | ||
WORKDIR /usr/src/yarn-project/end-to-end | ||
|
||
ENTRYPOINT ["yarn", "test"] |
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,17 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
cd "$(dirname "$0")" | ||
|
||
# Run both tasks in the background | ||
(cd cpp && ./bootstrap_cache.sh "$@") & | ||
pid_cpp=$! | ||
(cd ts && ./bootstrap_cache.sh "$@") & | ||
pid_ts=$! | ||
|
||
# Wait for both processes and capture any non-zero exit codes | ||
wait $pid_cpp || exit_code=$? | ||
wait $pid_ts || exit_code=$? | ||
|
||
# Exit with the first non-zero exit code, if any | ||
exit ${exit_code:-0} |
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