Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add verified-sources-fetcher image under CI process #1950

Merged
merged 10 commits into from
May 16, 2024
3 changes: 3 additions & 0 deletions .github/workflows/build-contract-verifier-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
matrix:
components:
- contract-verifier
- verified-sources-fetcher
platforms:
- linux/amd64

Expand Down Expand Up @@ -154,6 +155,8 @@ jobs:
component:
- name: contract-verifier
platform: linux/amd64
- name: verified-sources-fetcher
platform: linux/amd64
env:
IMAGE_TAG_SUFFIX: ${{ inputs.image_tag_suffix }}
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-core-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ jobs:
platform: linux/amd64,linux/arm64
- name: snapshots-creator
platform: linux/amd64

env:
IMAGE_TAG_SUFFIX: ${{ inputs.image_tag_suffix }}${{ (inputs.en_alpha_release && matrix.component.name == 'external-node') && '-alpha' || '' }}
steps:
Expand Down
19 changes: 19 additions & 0 deletions docker/verified-sources-fetcher/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM matterlabs/zksync-build-base:latest as builder

ARG DEBIAN_FRONTEND=noninteractive

WORKDIR /usr/src/zksync
COPY . .

RUN cargo build --release --bin verified_sources_fetcher

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates gnupg curl git && rm -rf /var/lib/apt/lists/*
otani88 marked this conversation as resolved.
Show resolved Hide resolved

RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN apt-get update && apt-get install -y google-cloud-cli && rm -rf /var/lib/apt/lists/*

otani88 marked this conversation as resolved.
Show resolved Hide resolved
COPY --from=builder /usr/src/zksync/target/release/verified_sources_fetcher /usr/bin/

ENTRYPOINT ["verified_sources_fetcher"]
3 changes: 2 additions & 1 deletion infrastructure/zk/src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const IMAGES = [
'witness-vector-generator',
'prover-fri-gateway',
'proof-fri-compressor',
'snapshots-creator'
'snapshots-creator',
'verified-sources-fetcher'
];

const DOCKER_REGISTRIES = ['us-docker.pkg.dev/matterlabs-infra/matterlabs-docker', 'matterlabs'];
Expand Down
Loading