Skip to content

Commit 8b62b67

Browse files
committed
update coordinator image
1 parent 5667d0b commit 8b62b67

File tree

8 files changed

+3
-223
lines changed

8 files changed

+3
-223
lines changed

.github/workflows/docker.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -352,48 +352,6 @@ jobs:
352352
REPOSITORY: coordinator-api
353353
run: |
354354
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }}
355-
- name: Setup SSH for repositories and clone them
356-
run: |
357-
mkdir -p ~/.ssh
358-
chmod 700 ~/.ssh
359-
360-
# Setup for plonky3-gpu
361-
echo "${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}" > ~/.ssh/plonky3_gpu_key
362-
chmod 600 ~/.ssh/plonky3_gpu_key
363-
eval "$(ssh-agent -s)" > /dev/null
364-
ssh-add ~/.ssh/plonky3_gpu_key 2>/dev/null
365-
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts 2>/dev/null
366-
echo "Loaded plonky3-gpu key"
367-
368-
# Clone plonky3-gpu repository
369-
./build/dockerfiles/coordinator-api/clone_plonky3_gpu.sh
370-
371-
# Setup for openvm-stark-gpu
372-
echo "${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}" > ~/.ssh/openvm_stark_gpu_key
373-
chmod 600 ~/.ssh/openvm_stark_gpu_key
374-
eval "$(ssh-agent -s)" > /dev/null
375-
ssh-add ~/.ssh/openvm_stark_gpu_key 2>/dev/null
376-
echo "Loaded openvm-stark-gpu key"
377-
378-
# Clone openvm-stark-gpu repository
379-
./build/dockerfiles/coordinator-api/clone_openvm_stark_gpu.sh
380-
381-
# Setup for openvm-gpu
382-
echo "${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}" > ~/.ssh/openvm_gpu_key
383-
chmod 600 ~/.ssh/openvm_gpu_key
384-
eval "$(ssh-agent -s)" > /dev/null
385-
ssh-add ~/.ssh/openvm_gpu_key 2>/dev/null
386-
echo "Loaded openvm-gpu key"
387-
388-
# Clone openvm-gpu repository
389-
./build/dockerfiles/coordinator-api/clone_openvm_gpu.sh
390-
391-
# Show number of loaded keys
392-
echo "Number of loaded keys: $(ssh-add -l | wc -l)"
393-
394-
- name: Checkout specific commits
395-
run: |
396-
./build/dockerfiles/coordinator-api/checkout_all.sh
397355
- name: Build and push
398356
uses: docker/build-push-action@v3
399357
env:

build/dockerfiles/coordinator-api.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build libzkp dependency
2-
FROM scrolltech/cuda-go-rust-builder:cuda-11.7.1-go-1.22.12-rust-nightly-2025-02-14 as chef
2+
FROM scrolltech/go-1.22.12-rust-nightly-2025-02-14 as chef
33
WORKDIR app
44

55
FROM chef as planner
@@ -19,7 +19,7 @@ RUN cargo build --release -p libzkp-c
1919

2020

2121
# Download Go dependencies
22-
FROM scrolltech/cuda-go-rust-builder:cuda-11.7.1-go-1.22.12-rust-nightly-2025-02-14 as base
22+
FROM scrolltech/go-1.22.12-rust-nightly-2025-02-14 as base
2323
WORKDIR /src
2424
COPY go.work* ./
2525
COPY ./rollup/go.* ./rollup/
@@ -39,7 +39,7 @@ RUN cd ./coordinator && CGO_LDFLAGS="-Wl,--no-as-needed -ldl" make coordinator_a
3939
RUN mv coordinator/internal/logic/libzkp/lib /bin/
4040

4141
# Pull coordinator into a second stage deploy ubuntu container
42-
FROM nvidia/cuda:11.7.1-runtime-ubuntu22.04
42+
FROM ubuntu:20.04
4343
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/src/coordinator/internal/logic/verifier/lib
4444
ENV CGO_LDFLAGS="-Wl,--no-as-needed -ldl"
4545
# ENV CHAIN_ID=534353

build/dockerfiles/coordinator-api/checkout_all.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

build/dockerfiles/coordinator-api/clone_openvm_gpu.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

build/dockerfiles/coordinator-api/clone_openvm_stark_gpu.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

build/dockerfiles/coordinator-api/clone_plonky3_gpu.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

build/dockerfiles/coordinator-api/config.toml

Lines changed: 0 additions & 129 deletions
This file was deleted.

build/dockerfiles/coordinator-api/gitconfig

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)