-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simulators/portal/history/rpc-compat: add portal network history rpc-…
…compat simulator
- Loading branch information
Showing
4 changed files
with
672 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "rpc-compat" | ||
version = "0.1.0" | ||
authors = ["Ognyan Genev <[email protected]>", "Kolby ML (Moroz Liebl) <[email protected]>"] | ||
edition = "2021" | ||
|
||
[dependencies] | ||
ethportal-api = { git = "https://github.com/ethereum/trin", rev = "2a32224e3c2b0b80bc37c1b692c33016371f197a" } | ||
hivesim = { git = "https://github.com/ethereum/portal-hive", rev = "8ff1e3d3c941dd00d56dacd777a5dfb71edf402f" } | ||
futures = "0.3.25" | ||
serde_json = "1.0.87" | ||
tracing = "0.1.37" | ||
tracing-subscriber = "0.3.16" | ||
tokio = { version = "1", features = ["full"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM rust:1.71.1 AS builder | ||
|
||
# create a new empty shell project | ||
RUN USER=root cargo new --bin rpc-compat | ||
WORKDIR /rpc-compat | ||
|
||
# copy over manifests and source to build image | ||
COPY Cargo.toml ./Cargo.toml | ||
COPY src ./src | ||
|
||
# build for release | ||
RUN cargo build --release | ||
|
||
# final base | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt update && apt install wget -y | ||
|
||
# copy build artifacts from build stage | ||
COPY --from=builder /rpc-compat/target/release/rpc-compat . | ||
|
||
ENV RUST_LOG=debug | ||
|
||
ENTRYPOINT ["./rpc-compat"] |
Oops, something went wrong.