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

feat: add setup-operator #25

Merged
merged 1 commit into from
Dec 16, 2024
Merged
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
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
Loading