Files
gossipsub-testground/eth_consensus/Dockerfile
Age Manning a260f69580 Gossipsub Simulations (#9)
* episub-sim

* network generation

* mainnet network generation

* no pretty print

* add small network for testing

* upgrade versions, make the thing compile

* checkpoint

* this is ridiculous

* make gen_topology reachable by testground

* add 16 instsances for testing

* add running command

* remove params

* pass new participants param

* update upstream reg

* update upstream reg

* put msg generation back in

* put publishing back in

* adding metrics

* record metrics on intervals

* add gossip max limit

* stop fghting testground. For now

* update README

* Revert "stop fghting testground. For now"

This reverts commit a976c5371b.

* use composition files to get the docker build context a layer up

* fix params and logs

* remove unused files

* cache workspace deps

* cache workspace deps _the right_ way

* updates

* some docs

* Update CI and remove root workspace

* Add duplicates, fix clippy, improve dash

* Reduce message sizes, some debugging

* Update dash and logs

* Add scripts folder

* Fix executor lockup

* fmt and clippy

* Add some docs

* Dot to mermaid

Co-authored-by: Diva M <divma@protonmail.com>
2022-11-29 16:06:53 +11:00

33 lines
809 B
Docker

# Get chef
FROM rust:1.65-bullseye as chef
WORKDIR test-plan
RUN cargo install cargo-chef
# Get chef to create a skeleton workspace
FROM chef AS planner
COPY ./plan .
RUN cargo chef prepare --recipe-path recipe.json
FROM chef as builder
# Build dependencies
RUN apt-get update && apt-get -y upgrade && apt-get install -y protobuf-compiler
COPY --from=planner /test-plan/recipe.json ./recipe.json
# Cache the deps using the fake workspace
RUN cargo chef cook --release --recipe-path recipe.json
# Get the real code
COPY ./plan .
# Enjoy
RUN cargo build --release -p simulation
FROM debian:bullseye-slim
COPY --from=builder /test-plan/target/release/simulation /usr/local/bin/eth_consensus
#ENV RUST_LOG=libp2p_gossipsub=debug,simulation=debug
ENV RUST_LOG=simulation=info
ENTRYPOINT ["eth_consensus"]