From bb4288cc60f830a94c61c717caf072dd6286b19a Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 28 Oct 2022 14:21:02 -0600 Subject: [PATCH 1/2] Fixturenet for laconicd --- .../docker-compose-fixturenet-laconicd.yml | 21 +++++++++++++++++++ compose/docker-compose-laconicd.yml | 4 ---- .../create-fixturenet.sh | 2 +- pod-list.txt | 1 + 4 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 compose/docker-compose-fixturenet-laconicd.yml rename config/{laconicd => fixturenet-laconicd}/create-fixturenet.sh (97%) diff --git a/compose/docker-compose-fixturenet-laconicd.yml b/compose/docker-compose-fixturenet-laconicd.yml new file mode 100644 index 00000000..997063db --- /dev/null +++ b/compose/docker-compose-fixturenet-laconicd.yml @@ -0,0 +1,21 @@ +version: "3.2" +services: + laconicd: + restart: unless-stopped + image: cerc/laconicd:local + command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"] + volumes: + # TODO: look at folding this script into the container + - ../config/fixturenet-laconicd/create-fixturenet.sh:/docker-entrypoint-scripts.d/create-fixturenet.sh + # TODO: determine which of the ports below is really needed + ports: + - "6060" + - "26657" + - "26656" + - "9473" + - "8545" + - "8546" + - "9090" + - "9091" + - "1317" + diff --git a/compose/docker-compose-laconicd.yml b/compose/docker-compose-laconicd.yml index 4d021ed6..753283bd 100644 --- a/compose/docker-compose-laconicd.yml +++ b/compose/docker-compose-laconicd.yml @@ -3,10 +3,6 @@ services: laconicd: restart: unless-stopped image: cerc/laconicd:local - command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"] - volumes: - # TODO: look at folding this script into the container - - ../config/laconicd/create-fixturenet.sh:/docker-entrypoint-scripts.d/create-fixturenet.sh # TODO: determine which of the ports below is really needed ports: - "6060" diff --git a/config/laconicd/create-fixturenet.sh b/config/fixturenet-laconicd/create-fixturenet.sh similarity index 97% rename from config/laconicd/create-fixturenet.sh rename to config/fixturenet-laconicd/create-fixturenet.sh index 8d5115be..1bc22cef 100644 --- a/config/laconicd/create-fixturenet.sh +++ b/config/fixturenet-laconicd/create-fixturenet.sh @@ -115,4 +115,4 @@ if [[ $1 == "pending" ]]; then fi # Start the node (remove the --pruning=nothing flag if historical queries are not needed) -laconicd start --mode validator --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable --gql-server --gql-playground +laconicd start --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable diff --git a/pod-list.txt b/pod-list.txt index 09a7baa5..614a3476 100644 --- a/pod-list.txt +++ b/pod-list.txt @@ -8,4 +8,5 @@ ipld-eth-server lighthouse prometheus-grafana laconicd +fixturenet-laconicd fixturenet-eth From 88d38c780102444174d04a0ec8acf16853fb9743 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 28 Oct 2022 16:05:20 -0600 Subject: [PATCH 2/2] Enable GraphQL --- config/fixturenet-laconicd/create-fixturenet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/fixturenet-laconicd/create-fixturenet.sh b/config/fixturenet-laconicd/create-fixturenet.sh index 1bc22cef..a4c8b73c 100644 --- a/config/fixturenet-laconicd/create-fixturenet.sh +++ b/config/fixturenet-laconicd/create-fixturenet.sh @@ -115,4 +115,4 @@ if [[ $1 == "pending" ]]; then fi # Start the node (remove the --pruning=nothing flag if historical queries are not needed) -laconicd start --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable +laconicd start --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable --gql-server --gql-playground