Skip to content

Commit

Permalink
update dockerfile test
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasRidhuan committed Mar 6, 2024
1 parent c15491d commit d8c94d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions build_manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ yarn-project:
- noir-packages
- l1-contracts
- noir-projects
- barretenberg-x86_64-linux-clang
multiarch: host

# A runnable container, sets entrypoint to be the aztec infrastructure entrypoint.
Expand Down
4 changes: 1 addition & 3 deletions yarn-project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ COPY --from=noir-packages /usr/src/noir/packages /usr/src/noir/packages
COPY --from=contracts /usr/src/l1-contracts /usr/src/l1-contracts
COPY --from=noir-projects /usr/src/noir-projects /usr/src/noir-projects
COPY --from=barretenberg /usr/src/barretenberg/cpp/build/bin/bb /usr/src/barretenberg/cpp/build/bin/bb
COPY --from=barretenberg /usr/src/barretenberg/cpp/srs_db/download_ignition.sh /usr/src/barretenberg/cpp/srs_db/download_ignition.sh

WORKDIR /usr/src/barretenberg/cpp/srs_db
COPY ../barretenberg/cpp/srs_db/download_ignition.sh ./download_ignition.sh
RUN ./download_ignition.sh 0
COPY . .


WORKDIR /usr/src/yarn-project
COPY . .
Expand Down
8 changes: 7 additions & 1 deletion yarn-project/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM --platform=linux/amd64 aztecprotocol/bb.js as bb.js
FROM --platform=linux/amd64 aztecprotocol/noir-packages as noir-packages
FROM --platform=linux/amd64 aztecprotocol/l1-contracts as contracts
FROM --platform=linux/amd64 aztecprotocol/noir-projects as noir-projects
FROM --platform=linux/amd64 aztecprotocol/barretenberg-x86_64-linux-clang as barretenberg

FROM node:18.19.0 as builder
RUN apt update && apt install -y jq curl perl && rm -rf /var/lib/apt/lists/* && apt-get clean
Expand All @@ -11,6 +12,11 @@ COPY --from=bb.js /usr/src/barretenberg/ts /usr/src/barretenberg/ts
COPY --from=noir-packages /usr/src/noir/packages /usr/src/noir/packages
COPY --from=contracts /usr/src/l1-contracts /usr/src/l1-contracts
COPY --from=noir-projects /usr/src/noir-projects /usr/src/noir-projects
COPY --from=barretenberg /usr/src/barretenberg/cpp/build/bin/bb /usr/src/barretenberg/cpp/build/bin/bb

WORKDIR /usr/src/barretenberg/cpp/srs_db
COPY ../barretenberg/cpp/srs_db/download_ignition.sh ./download_ignition.sh
RUN ./download_ignition.sh 0

WORKDIR /usr/src/yarn-project
COPY . .
Expand All @@ -31,4 +37,4 @@ RUN yarn prepare:check && yarn formatting && yarn test

# Avoid pushing some huge container back to ecr.
FROM scratch
COPY --from=builder /usr/src/yarn-project/README.md /usr/src/yarn-project/README.md
COPY --from=builder /usr/src/yarn-project/README.md /usr/src/yarn-project/README.md

0 comments on commit d8c94d1

Please sign in to comment.