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

Initial version of sp1-prover component for testing #12

Open
wants to merge 4 commits into
base: es
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[net]
git-fetch-with-cli = true

[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@ build: ## Builds the binary locally into ./dist

.PHONY: build-docker
build-docker: ## Builds a docker image with the node binary
docker build -t zkevm-node -f ./Dockerfile .
docker build -t zkevm-node -f ./docker/zkevm-node/Dockerfile .

.PHONY: builder-docker-sp1
builder-docker-sp1: ## Builds docker images with the node and sp1 binary

.PHONY: build-docker-nc
build-docker-nc: ## Builds a docker image with the node binary - but without build cache
docker build --no-cache=true -t zkevm-node -f ./Dockerfile .
docker build --no-cache=true -t zkevm-node -f ./docker/zkevm-node/Dockerfile .

.PHONY: run-rpc
run-rpc: ## Runs all the services needed to run a local zkEVM RPC node
Expand Down
20 changes: 20 additions & 0 deletions docker/sp1-prover/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:jammy

ARG TARGETARCH

RUN apt-get update \
&& apt-get install -y curl libcurl4 wait-for-it tini \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["tini", "--"]

# copy the binaries
# COPY sp1-prover/target/$TARGETARCH/release/prover /usr/local/bin/prover
COPY sp1-prover/target/x86_64-unknown-linux-musl/release/prover /usr/local/bin/prover
RUN chmod +x /usr/local/bin/prover

# When running as a Docker service, we always want a healthcheck endpoint, so set a default for the
# port that the HTTP server will run on. This can be overridden in any given deployment environment.
#ENV PROVER_PORT=80
HEALTHCHECK --interval=1s --timeout=1s --retries=100 CMD curl --fail http://localhost:80/healthcheck || exit 1

CMD ["/usr/local/bin/prover"]
File renamed without changes.
File renamed without changes.
Loading
Loading