Skip to content

Commit

Permalink
Fixed cargo issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
samoht9277 committed Oct 24, 2024
1 parent faeceed commit 35b9c20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker/aggregator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ COPY core ./core
COPY metrics ./metrics
COPY contracts/bindings/ ./contracts/bindings

RUN go get github.com/ethereum/go-ethereum@latest
RUN go build -o ./aligned-layer-aggregator aggregator/cmd/main.go

FROM debian:bookworm-slim
Expand Down
3 changes: 2 additions & 1 deletion docker/aligned_base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ FROM base AS builder

ENV RELEASE_FLAG=--release
ENV TARGET_REL_PATH=release
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

COPY operator/ /aligned_layer/operator/
COPY batcher/ /aligned_layer/batcher/
Expand All @@ -93,7 +94,7 @@ COPY batcher/ /aligned_layer/batcher/
COPY --from=chef_builder /aligned_layer/operator/sp1/lib/target/ /aligned_layer/operator/sp1/lib/target/
WORKDIR /aligned_layer/operator/sp1/lib
RUN cargo build ${RELEASE_FLAG}
RUN cp /aligned_layer/operator/sp1/lib/target/${TARGET_REL_PATH}/libsp1_verifier_ffi.so /aligned_layer/operator/sp1/lib/libsp1_verifier_ffi.so
RUN cp /aligned_layer/operator/sp1/lib/target/${TARGET_REL_PATH}/libsp1_verifier_ffi.so /aligned_layer/operator/sp1/lib/libsp1_verifier.so

# build_risc_zero_linux
COPY --from=chef_builder /aligned_layer/operator/risc_zero/lib/target/ /aligned_layer/operator/risc_zero/lib/target/
Expand Down
4 changes: 2 additions & 2 deletions docker/batcher.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ WORKDIR /aligned_layer/batcher/aligned/
RUN cargo chef cook --release --recipe-path /aligned_layer/batcher/aligned/recipe.json

FROM base AS builder
COPY batcher/ /aligned_layer/batcher
COPY . /aligned_layer/

COPY --from=chef_builder /aligned_layer/batcher/aligned-batcher/target/ /aligned_layer/batcher/aligned-batcher/target/
WORKDIR /aligned_layer/batcher/aligned-batcher/
Expand Down Expand Up @@ -62,4 +62,4 @@ COPY ./config-files/anvil.batcher.ecdsa.key.json ./config-files/

RUN apt update -y && apt install -y libssl-dev ca-certificates

CMD ["aligned-batcher", "--config", "./config-files/config-batcher-docker.yaml"]
CMD ["aligned-batcher", "--config", "./config-files/config-batcher-docker.yaml"]

0 comments on commit 35b9c20

Please sign in to comment.