Skip to content
Snippets Groups Projects
Select Git revision
  • 9d0dea1ce0695159b11b0ffef36b61ec60e4052f
  • master default protected
  • 305-re-enable-sanity-tests
  • 308-add-a-runtime-api-to-simulate-max-net-tx-cost-for-the-end-user-fees-refund
  • 270-parametrage-de-la-gtest
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
41 results

setup.md

Blame
    • Hugo Trentesaux's avatar
      b145f36f
      gtest genesis parsing (!176) · b145f36f
      Hugo Trentesaux authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * fix clippy
      
      * fix after rebase
      
      * WIP example specs
      
      * fix after rebase
      
      * add reproducibility
      
      * doc add missing protobuf compiler
      
      * remove ref to genesis timestamp
      
      * fix broken next identity index genesis
      
      * our pallets are not coming from the framework
      
      * fix first_ud everywhere
      
      * remove files unwanted on main branch
      
      * also apply renaming to gdev
      
      * rename first_ud_value and add comments
      
      (to put in value the absence of first_ud_time)
      
      * use index provided in GenesisIdty
      
      * add mold to documentation
      
      * change gtest existential deposit
      
      and adapt genesis parsing to real-world data
      
      * embed raw chainspecs only when enabled
      
      * add comments
      b145f36f
      History
      gtest genesis parsing (!176)
      Hugo Trentesaux authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * fix clippy
      
      * fix after rebase
      
      * WIP example specs
      
      * fix after rebase
      
      * add reproducibility
      
      * doc add missing protobuf compiler
      
      * remove ref to genesis timestamp
      
      * fix broken next identity index genesis
      
      * our pallets are not coming from the framework
      
      * fix first_ud everywhere
      
      * remove files unwanted on main branch
      
      * also apply renaming to gdev
      
      * rename first_ud_value and add comments
      
      (to put in value the absence of first_ud_time)
      
      * use index provided in GenesisIdty
      
      * add mold to documentation
      
      * change gtest existential deposit
      
      and adapt genesis parsing to real-world data
      
      * embed raw chainspecs only when enabled
      
      * add comments
    Dockerfile 1019 B
    # FROM rustlang/rust:nightly-slim as build
    # nightly needed for -Zgit=shallow-deps build but ahash problem with stdsimd
    FROM rust:latest as build
    # # Use musl Rust image
    # FROM clux/muslrust:1.75.0-stable as build
    
    WORKDIR /app
    
    # Copy the Cargo.toml and Cargo.lock files to leverage Docker's caching mechanism
    COPY Cargo.toml Cargo.lock ./
    
    # Build the dependencies of the application separately
    RUN --mount=type=cache,target=/app/target \
        --mount=type=cache,target=/root/.cargo/registry \
        mkdir src \
        && echo "fn main() {}" > src/main.rs \
        && cargo build --release \
        && rm -r src
    
    # Copy the rest of the source code
    COPY ./res ./res
    COPY ./src ./src
    
    # Build the application
    RUN cargo build --release
    
    # Start release stage
    FROM debian as release
    
    # Set the working directory to the location of the built application
    WORKDIR /app
    
    # Copy the built application from the previous stage
    COPY --from=build /app/target/release/gcli .
    
    # Specify the entrypoint for the container
    ENTRYPOINT ["/app/gcli"]