Skip to content

Commit

Permalink
feat: Add prover-job-monitor Dockerfile and build rules (#2719)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorik authored Aug 23, 2024
1 parent 8d0eee7 commit 9080428
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-prover-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- prover-gpu-fri
- witness-vector-generator
- prover-fri-gateway
- prover-job-monitor
- proof-fri-gpu-compressor
outputs:
protocol_version: ${{ steps.protocolversion.outputs.protocol_version }}
Expand Down Expand Up @@ -163,7 +164,7 @@ jobs:
run: |
ci_run sccache --show-stats || true
ci_run cat /tmp/sccache_log.txt || true
copy-images:
name: Copy images between docker registries
needs: build-images
Expand Down Expand Up @@ -197,4 +198,3 @@ jobs:
docker buildx imagetools create \
--tag europe-docker.pkg.dev/matterlabs-infra/matterlabs-docker/${{ matrix.component }}:2.0-${{ needs.build-images.outputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/${{ matrix.component }}:2.0-${{ needs.build-images.outputs.protocol_version }}-${{ inputs.image_tag_suffix }}
15 changes: 15 additions & 0 deletions docker/prover-job-monitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM matterlabs/zksync-build-base:latest as builder

ARG DEBIAN_FRONTEND=noninteractive

WORKDIR /usr/src/zksync
COPY . .

RUN cd prover && cargo build --release --bin zksync_prover_job_monitor

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y curl libpq5 ca-certificates && rm -rf /var/lib/apt/lists/*

COPY --from=builder /usr/src/zksync/prover/target/release/zksync_prover_job_monitor /usr/bin/

ENTRYPOINT ["/usr/bin/zksync_prover_job_monitor"]
2 changes: 2 additions & 0 deletions infrastructure/zk/src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const IMAGES = [
'prover-gpu-fri',
'witness-vector-generator',
'prover-fri-gateway',
'prover-job-monitor',
'proof-fri-gpu-compressor',
'snapshots-creator',
'verified-sources-fetcher'
Expand Down Expand Up @@ -73,6 +74,7 @@ function defaultTagList(image: string, imageTagSha: string, imageTagShaTS: strin
'external-node',
'contract-verifier',
'prover-fri-gateway',
'prover-job-monitor',
'snapshots-creator'
].includes(image)
? ['latest', 'latest2.0', `2.0-${imageTagSha}`, `${imageTagSha}`, `2.0-${imageTagShaTS}`, `${imageTagShaTS}`]
Expand Down

0 comments on commit 9080428

Please sign in to comment.