GithubHelp home page GithubHelp logo

Comments (2)

ctian1 avatar ctian1 commented on July 28, 2024

You need to install sp1up, which you can do by adding:

RUN curl -L https://sp1.succinct.xyz | bash && ~/.sp1/bin/sp1up

from sp1.

mw2000 avatar mw2000 commented on July 28, 2024

Adding some more context here in case anyone else runs into this, this is what my final dockerfile looked like:

# Stage 1: Build the Go project
FROM --platform=amd64 golang:1.22 AS go-builder

# Stage 2: Build the Rust project
FROM --platform=linux/amd64 ghcr.io/succinctlabs/sp1:v1.0.5-testnet AS rust-builder

# Dependencies
RUN apt update && apt install -y clang libssl-dev pkg-config build-essential curl git
# Install Go 1.22
COPY --from=go-builder /usr/local/go /usr/local/go
ENV PATH="/usr/local/go/bin:$PATH"
ENV PATH="/root/.sp1/bin:$PATH"

RUN curl -L https://sp1.succinct.xyz | bash

WORKDIR /internal

# # Copy repo
COPY . /internal
RUN ~/.sp1/bin/sp1up --version v1.0.5-testnet
RUN cargo prove --version

RUN cargo build --bin fibonacci --release && \
  cp target/release/fibonacci /fibonacci

ENTRYPOINT ["/fibonacci"]

Make sure you add ENV PATH="/root/.sp1/bin:$PATH" to the path apart from running the download and installation command for sp1up. Also make sure the installed version (here, v1.0.5-testnet) and the version in your Cargo.toml match.

Really appreciate @ctian1's help in debugging this

from sp1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.