Sign inSign up

clearmatics/services-testnet-agc

By clearmatics

Updated over 5 years ago

Autonity Go Client for https://bakerloo.autonity.network

Image
0

825

clearmatics/services-testnet-agc repository overview

services-testnet-agc

Autonity Go Client for Autonity nodes, packaged in a Docker Container configured for the Bakerloo testnet.

Workflow:

  • add Dockerfile in root directory
  • Make any changes
  • commit it to GitHub Repo (for example, merge to master
  • add release git tag like:

git tag v0.7.1-bakerloo01

git push --tags

Docker images with this release tag will be built automatically by GitHub Actions.

You can use any tags like dev-****** for non-stable releases. Image with tag latest will build from master branch automatically for every new commit to master.

Use the docker image:

This container uses a shared folder for the Autontiy data, so the node database and identity store will be persistent. If you want to start a fresh node with a new identity, make sure you delete the local Autonity folder first. From v0.7.1-bakerloo05, this image has been updated so it is compatible with docker compose, with a new script that delays launching autonity until other dependencies have fully launched. These changes do not affect running autonity as a bare docker container.

To run with mining and full sync disabled:

docker run -d -ti --net=host \
--name services-testnet-agc \
--user $(id -u):$(id -g) \
-v $(pwd):/autonity \
ghcr.io/clearmatics/services-testnet-agc:v0.7.1-bakerloo05 \
--datadir=/autonity \
--nat extip:<IP_ADDRESS>

To run with block creation and full sync enabled (so can become a validator node):

docker run -d --net=host \
--name services-testnet-agc \
--user $(id -u):$(id -g) \
-v $(pwd):/autonity \
ghcr.io/clearmatics/services-testnet-afnc:v0.7.1-bakerloo05 \
--datadir=/autonity \
--nat extip:<IP_ADDRESS> \
--mine --minerthreads 1 --syncmode full

[Optional] Test your setup:

# Install curl
apt install curl

# Send a request to your running node
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' 127.0.0.1:8545

Running on a cloud VM

This image has been successfully tested on a GCP VM running Debian, as well as on an AWS VM running Amazon Linux. If you want to connect to the node from outside the VM, make sure to configure the firewall to allow incoming connections to the following ports:

TCP 8545, 8546, 30303, 6060

Make sure that the VM you are using has at least a 100Gb boot disk to store the blockchain. When initially syncing up with the network (which can take most of a day), it is recommended to use a VM with two virtual CPUs instead of one, so it does not become overloaded. You should downgrade to one once the node had caught up with the rest of the network.

To add the new node as a participant then as a validator once it has caught up with the network, use system operator.

Tag summary

Content type

Image

Digest

Size

24.5 MB

Last updated

over 5 years ago

docker pull clearmatics/services-testnet-agc