Skip to content

Commit

Permalink
feat: add setup-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelyzaveta Dymchenko committed Dec 16, 2024
1 parent 44a2904 commit cb63636
Show file tree
Hide file tree
Showing 6 changed files with 7,199 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ COPY /src /operator/src
COPY /Cargo.toml /operator/Cargo.toml
COPY /Cargo.lock /operator/Cargo.lock

WORKDIR /setup-operator
COPY /setup-operator /setup-operator

WORKDIR /operator
RUN git config --global url."https://github.com/".insteadOf [email protected]:
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --release --features bls_signing

WORKDIR /setup-operator
RUN cargo build --release --bin setup-operator

FROM debian:bookworm
RUN apt-get update && apt-get install -y --no-install-recommends libssl3 ca-certificates curl netcat-traditional
COPY --from=builder /operator/target/release/cartesi-coprocessor-operator /operator/cartesi-coprocessor-operator
COPY --from=builder /setup-operator/target/release/setup-operator /operator/setup-operator

ARG TARGETARCH
RUN curl -LO https://github.com/ipfs/kubo/releases/download/v0.30.0/kubo_v0.30.0_linux-$TARGETARCH.tar.gz
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ while true; do
sleep 0.5
done
echo "IPFS up"

IPFS_URL=http://127.0.0.1:5001
if [ -z "$IPFS_WRITE_URL" ]; then
IPFS_WRITE_URL=$IPFS_URL
Expand Down
Loading

0 comments on commit cb63636

Please sign in to comment.