forked from cerc-io/stack-orchestrator
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3f34fd2e5 | ||
|
|
0116903d10 |
@@ -6,6 +6,8 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '!**'
|
- '!**'
|
||||||
- '.gitea/workflows/triggers/fixturenet-eth-test'
|
- '.gitea/workflows/triggers/fixturenet-eth-test'
|
||||||
|
pull_request:
|
||||||
|
branches: '*'
|
||||||
|
|
||||||
# Needed until we can incorporate docker startup into the executor container
|
# Needed until we can incorporate docker startup into the executor container
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
Change this file to trigger running the fixturenet-eth-test CI job
|
Change this file to trigger running the fixturenet-eth-test CI job
|
||||||
|
Trigger
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
Change this file to trigger running the external-stack CI job
|
Change this file to trigger running the external-stack CI job
|
||||||
trigger
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
hostname: fixturenet-eth-bootnode-geth
|
hostname: fixturenet-eth-bootnode-geth
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
environment:
|
environment:
|
||||||
RUN_BOOTNODE: "true"
|
RUN_BOOTNODE: "true"
|
||||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||||
@@ -24,9 +24,8 @@ services:
|
|||||||
CERC_RUN_STATEDIFF: ${CERC_RUN_STATEDIFF:-detect}
|
CERC_RUN_STATEDIFF: ${CERC_RUN_STATEDIFF:-detect}
|
||||||
CERC_STATEDIFF_DB_NODE_ID: 1
|
CERC_STATEDIFF_DB_NODE_ID: 1
|
||||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||||
CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS:-false}
|
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
image: cerc/fixturenet-plugeth-plugeth:local
|
image: cerc/fixturenet-plugeth-plugeth:local
|
||||||
volumes:
|
volumes:
|
||||||
- fixturenet_plugeth_geth_1_data:/root/ethdata
|
- fixturenet_plugeth_geth_1_data:/root/ethdata
|
||||||
@@ -56,7 +55,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
CERC_KEEP_RUNNING_AFTER_GETH_EXIT: "true"
|
CERC_KEEP_RUNNING_AFTER_GETH_EXIT: "true"
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
image: cerc/fixturenet-plugeth-plugeth:local
|
image: cerc/fixturenet-plugeth-plugeth:local
|
||||||
depends_on:
|
depends_on:
|
||||||
- fixturenet-eth-bootnode-geth
|
- fixturenet-eth-bootnode-geth
|
||||||
@@ -83,7 +82,7 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
environment:
|
environment:
|
||||||
NODE_NUMBER: "1"
|
NODE_NUMBER: "1"
|
||||||
ETH1_ENDPOINT: "http://fixturenet-eth-geth-1:8545"
|
ETH1_ENDPOINT: "http://fixturenet-eth-geth-1:8545"
|
||||||
@@ -109,7 +108,7 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
environment:
|
environment:
|
||||||
NODE_NUMBER: "2"
|
NODE_NUMBER: "2"
|
||||||
ETH1_ENDPOINT: "http://fixturenet-eth-geth-2:8545"
|
ETH1_ENDPOINT: "http://fixturenet-eth-geth-2:8545"
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
# The password used to access test accounts (eg, via personal_unlockAccount). The password is the same for all accounts.
|
|
||||||
ACCOUNT_PASSWORD=secret1212
|
|
||||||
|
|
||||||
# ENODE of the geth bootnode.
|
|
||||||
BOOTNODE_KEY="b0ac22adcad37213c7c565810a50f1772291e7b0ce53fb73e7ec2a3c75bc13b5"
|
|
||||||
ENODE="enode://af22c29c316ad069cf48a09a4ad5cf04a251b411e45098888d114c6dd7f489a13786620d5953738762afa13711d4ffb3b19aa5de772d8af72f851f7e9c5b164a@fixturenet-eth-bootnode-geth:30303"
|
|
||||||
|
|
||||||
# JWT shared by geth and lighthouse for authentication.
|
|
||||||
JWT="0x6cdcac3501046a08e186730dd8bd136cfaf0fdc1fc955f6e15ad3068c0ff2af0"
|
|
||||||
|
|
||||||
# URL to download the ENR of the lighthouse bootnode (generated at first start).
|
|
||||||
ENR_URL="http://fixturenet-eth-bootnode-lighthouse:3000/bootnode/enr.dat"
|
|
||||||
|
|
||||||
# DB connection settings for statediffing (see docker-compose-db.yml)
|
|
||||||
CERC_STATEDIFF_DB_HOST="ipld-eth-db"
|
|
||||||
CERC_STATEDIFF_DB_PORT=5432
|
|
||||||
CERC_STATEDIFF_DB_NAME="cerc_testing"
|
|
||||||
CERC_STATEDIFF_DB_USER="vdbm"
|
|
||||||
CERC_STATEDIFF_DB_PASSWORD="password"
|
|
||||||
CERC_STATEDIFF_DB_GOOSE_MIN_VER=${CERC_STATEDIFF_DB_GOOSE_MIN_VER:-18}
|
|
||||||
CERC_STATEDIFF_DB_LOG_STATEMENTS="${CERC_STATEDIFF_DB_LOG_STATEMENTS:-false}"
|
|
||||||
CERC_STATEDIFF_WORKERS=2
|
|
||||||
|
|
||||||
CERC_GETH_VMODULE="statediff/*=5,rpc/*=5"
|
|
||||||
CERC_GETH_VERBOSITY=${CERC_GETH_VERBOSITY:-3}
|
|
||||||
|
|
||||||
# Used by Lighthouse
|
|
||||||
SECONDS_PER_ETH1_BLOCK=${SECONDS_PER_ETH1_BLOCK:-3}
|
|
||||||
@@ -109,10 +109,6 @@ else
|
|||||||
OTHER_OPTS="--miner.threads=1"
|
OTHER_OPTS="--miner.threads=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CERC_ALLOW_UNPROTECTED_TXS" == "true" ]; then
|
|
||||||
OTHER_OPTS+=" --rpc.allow-unprotected-txs"
|
|
||||||
fi
|
|
||||||
|
|
||||||
$START_CMD \
|
$START_CMD \
|
||||||
--datadir="${CERC_ETH_DATADIR}" \
|
--datadir="${CERC_ETH_DATADIR}" \
|
||||||
--bootnodes="${ENODE}" \
|
--bootnodes="${ENODE}" \
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
# fixturenet-plugeth
|
|
||||||
|
|
||||||
A variation of `fixturenet-eth` that uses `plugeth` instead of `go-ethereum`.
|
|
||||||
|
|
||||||
See `stacks/fixturenet-eth/README.md` for more information.
|
|
||||||
|
|
||||||
## Containers
|
|
||||||
|
|
||||||
* cerc/lighthouse
|
|
||||||
* cerc/fixturenet-eth-plugeth
|
|
||||||
* cerc/fixturenet-eth-lighthouse
|
|
||||||
|
|
||||||
## Deploy the stack
|
|
||||||
|
|
||||||
```bash
|
|
||||||
laconic-so --stack fixturenet-plugeth setup-repositories
|
|
||||||
laconic-so --stack fixturenet-plugeth build-containers
|
|
||||||
laconic-so --stack fixturenet-plugeth deploy up
|
|
||||||
```
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
version: "1.0"
|
|
||||||
name: fixturenet-plugeth
|
|
||||||
description: "Plugeth Ethereum Fixturenet"
|
|
||||||
repos:
|
|
||||||
- git.vdb.to/cerc-io/plugeth@statediff
|
|
||||||
- git.vdb.to/cerc-io/plugeth-statediff
|
|
||||||
- git.vdb.to/cerc-io/lighthouse
|
|
||||||
containers:
|
|
||||||
- cerc/plugeth-statediff
|
|
||||||
- cerc/plugeth
|
|
||||||
- cerc/fixturenet-eth-genesis
|
|
||||||
- cerc/fixturenet-plugeth-plugeth
|
|
||||||
- cerc/lighthouse
|
|
||||||
- cerc/lighthouse-cli
|
|
||||||
- cerc/fixturenet-eth-lighthouse
|
|
||||||
pods:
|
|
||||||
- fixturenet-plugeth
|
|
||||||
@@ -31,7 +31,7 @@ rm -rf $CERC_REPO_BASE_DIR
|
|||||||
mkdir -p $CERC_REPO_BASE_DIR
|
mkdir -p $CERC_REPO_BASE_DIR
|
||||||
# Clone the external test stack
|
# Clone the external test stack
|
||||||
$TEST_TARGET_SO fetch-stack git.vdb.to/cerc-io/test-external-stack
|
$TEST_TARGET_SO fetch-stack git.vdb.to/cerc-io/test-external-stack
|
||||||
stack_name="$CERC_REPO_BASE_DIR/test-external-stack/stack-orchestrator/stacks/test-external-stack"
|
stack_name="$CERC_REPO_BASE_DIR/test-external-stack/stacks/test-external-stack"
|
||||||
TEST_TARGET_SO_STACK="$TEST_TARGET_SO --stack ${stack_name}"
|
TEST_TARGET_SO_STACK="$TEST_TARGET_SO --stack ${stack_name}"
|
||||||
# Test bringing the test container up and down
|
# Test bringing the test container up and down
|
||||||
# with and without volume removal
|
# with and without volume removal
|
||||||
|
|||||||
Reference in New Issue
Block a user