Skip to content

nemani/golem-provider-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golem Provider Multiple Nodes + Monitoring Terraform Setup

Project submited to the Hack New Golem bounties.

🔗 Links

▶️ Usage

You can clone this repository or use the provided docker-compose.yml as a base template for your own setup.

A Makefile is included for convenience but make is not required to run the node.

Use make or make help to list the available shortcuts.

1. First Start

Use make golem-setup to run the node for the first time.

The CLI will ask you a few questions: refer to the Provider Node Documentation > Initial Setup for more details.

The node settings will be kept on your host in a ./data-node repository.

2. Run the Node

Use make up to start the node and prometheus services in a detached mode.

You can access the logs for all at any time by running make logs.

You can access the logs for golem at any time by running make golem-logs.

Use make golem-status to get your node address and health.

3. Running Only Prometheus

Use make prometheus to start the prometheus services in a detached mode.

You can access the logs at any time by running make logs

4. Running using terraform + hetzner

Create API token by signing up and registering on https://console.hetzner.cloud/projects

Add SSH key to the project with the name "golem-provider-terraform"

Modify and update terraform/vars.auto.tfvars with the desired values

cd terraform

run terraform apply

example ouput:

    Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

    Outputs:

    node_ip_address = [
    "95.216.189.*",
    ]
    prom_ip_address = "95.216.212.*"

you can now ssh into the server using the key you added above

you can run catlog and taillog to see the status of the startup script

you can access prometheus at prom_ip_address:9090

Donation 🍺

If you find this template useful you may consider the option of offering me a beer through a donation. Support is very appreciated 🙂

ETH / ERC20 Token: nemani.eth

You should also consider donating to the creator of the docker-image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published