Add a plugeth-based version of the fixturenet #411

Merged
telackey merged 4 commits from telackey/plugeth into main 2023-05-25 16:21:08 +00:00
4 changed files with 23 additions and 23 deletions
Showing only changes of commit 64f9e2d262 - Show all commits

View File

@ -1,5 +1,3 @@
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
version: '3.7'
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
services:
fixturenet-eth-bootnode-geth:
restart: always
@ -10,7 +8,8 @@ services:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
RUN_BOOTNODE: "true"
image: cerc/fixturenet-eth-plugeth:local
volumes:
- fixturenet_eth_bootnode_geth_data:/root/ethdata
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- fixturenet_plugeth_bootnode_geth_data:/root/ethdata
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- ../config/fixturenet-plugeth/plugins:/root/ethdata/plugins
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
ports:
- "9898"
- "30303"
@ -29,9 +28,10 @@ services:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- ../config/fixturenet-eth/fixturenet-eth.env
image: cerc/fixturenet-eth-plugeth:local
volumes:
- fixturenet_eth_geth_1_data:/root/ethdata
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- fixturenet_plugeth_geth_1_data:/root/ethdata
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- ../config/fixturenet-plugeth/plugins:/root/ethdata/plugins
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "8545"]
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
test: ["CMD", "wget", "--tries=1", "--connect-timeout=1", "--quiet", "-O", "-", "http://localhost:8545/"]
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
interval: 30s
timeout: 10s
retries: 10
@ -47,7 +47,7 @@ services:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
restart: always
hostname: fixturenet-eth-geth-2
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "8545"]
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
test: ["CMD", "wget", "--tries=1", "--connect-timeout=1", "--quiet", "-O", "-", "http://localhost:8545/"]
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
interval: 30s
timeout: 10s
retries: 10
@ -60,7 +60,8 @@ services:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
depends_on:
- fixturenet-eth-bootnode-geth
volumes:
- fixturenet_eth_geth_2_data:/root/ethdata
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- fixturenet_plugeth_geth_2_data:/root/ethdata
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- ../config/fixturenet-plugeth/plugins:/root/ethdata/plugins
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet-eth-bootnode-lighthouse:
restart: always
@ -86,7 +87,7 @@ services:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
EXECUTION_ENDPOINT: "http://fixturenet-eth-geth-1:8551"
image: cerc/fixturenet-eth-lighthouse:local
volumes:
- fixturenet_eth_lighthouse_1_data:/opt/testnet/build/cl
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- fixturenet_plugeth_lighthouse_1_data:/opt/testnet/build/cl
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
depends_on:
fixturenet-eth-bootnode-lighthouse:
condition: service_started
@ -113,7 +114,7 @@ services:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
LIGHTHOUSE_GENESIS_STATE_URL: "http://fixturenet-eth-lighthouse-1:8001/eth/v2/debug/beacon/states/0"
image: cerc/fixturenet-eth-lighthouse:local
volumes:
- fixturenet_eth_lighthouse_2_data:/opt/testnet/build/cl
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
- fixturenet_plugeth_lighthouse_2_data:/opt/testnet/build/cl
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
depends_on:
fixturenet-eth-bootnode-lighthouse:
condition: service_started
@ -121,8 +122,8 @@ services:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
condition: service_healthy
volumes:
fixturenet_eth_bootnode_geth_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_eth_geth_1_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_eth_geth_2_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_eth_lighthouse_1_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_eth_lighthouse_2_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_plugeth_bootnode_geth_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_plugeth_geth_1_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_plugeth_geth_2_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_plugeth_lighthouse_1_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
fixturenet_plugeth_lighthouse_2_data:
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.

Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.
Review

Apparently version is no longer required or used in compose files.

Apparently version is no longer required or used in compose files.

View File

@ -0,0 +1 @@
See: https://docs.plugeth.org/

View File

@ -1,19 +1,20 @@
FROM skylenet/ethereum-genesis-generator@sha256:210353ce7c898686bc5092f16c61220a76d357f51eff9c451e9ad1b9ad03d4d3 AS ethgen
# Using the same golang image as used to build geth: https://github.com/cerc-io/go-ethereum/blob/HEAD/Dockerfile
FROM golang:1.18-alpine as delve
FROM golang:1.19.4-bullseye AS delve
RUN go install github.com/go-delve/delve/cmd/dlv@latest
FROM cerc/plugeth:local as geth
FROM alpine:3.17
RUN apk add --no-cache python3 python3-dev py3-pip curl wget jq build-base gettext libintl openssl bash bind-tools postgresql-client
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 python3-dev python3-pip curl wget jq gettext gettext-base openssl bash dnsutils postgresql-client make iproute2 netcat && \
rm -rf /var/lib/apt/lists/*
COPY --from=delve /go/bin/dlv /usr/local/bin/
COPY --from=ethgen /usr/local/bin/eth2-testnet-genesis /usr/local/bin/
COPY --from=ethgen /usr/local/bin/eth2-val-tools /usr/local/bin/
COPY --from=ethgen /apps /apps
RUN wget -O /usr/local/bin/geth https://github.com/openrelayxyz/plugeth/releases/download/v1.11.6.1.0/geth-linux-amd64-v1.1.0-v1.11.6.1.0 && chmod a+x /usr/local/bin/geth
RUN cd /apps/el-gen && pip3 install -r requirements.txt
COPY genesis /opt/testnet
@ -21,7 +22,6 @@ COPY run-el.sh /opt/testnet/run.sh
RUN cd /opt/testnet && make genesis-el
COPY --from=geth /usr/local/bin/geth /usr/local/bin/
RUN geth --datadir ~/ethdata init /opt/testnet/build/el/geth.json && rm -f ~/ethdata/geth/nodekey
ENTRYPOINT ["/opt/testnet/run.sh"]

View File

@ -2,10 +2,8 @@ version: "1.2"
name: fixturenet-plugeth-tx
decription: "plugeth Ethereum Fixturenet w/ tx-spammer"
repos:
- github.com/openrelayxyz/plugeth
- github.com/cerc-io/tx-spammer
containers:
- cerc/plugeth
- cerc/lighthouse
- cerc/fixturenet-eth-plugeth
- cerc/fixturenet-eth-lighthouse