dmanjunath / audius-one-click

Setup a Audius nodes on DigitalOcean using Pulumi to provision and manage infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audius One Click

Setup an Audius nodes on DigitalOcean using Pulumi to provision and manage infrastructure

Requirements

  1. DigitalOcean API Token. This can be generated here https://docs.digitalocean.com/products/spaces/how-to/manage-access/#access-keys and set locally by running export DIGITALOCEAN_TOKEN=...
  2. SSH Key on DigitalOcean. The script currently selects the first SSH Key. In the future this might be configurable or it could create an SSH key on the fly

Instructions

cd audius-one-click/

# create a stack
pulumi stack init discovery-node-1

# set the required environment variables
export DIGITALOCEAN_TOKEN=...

# set the pulumi configs
pulumi config set serviceType discovery-node
pulumi config set serviceID 1
pulumi config set sshKeyPath /Users/dmanjunath/.ssh/digitalocean

# stand up the stack
pulumi up

This automatically establishes an SSH connection to the VM and mounts the external disk. To setup the Audius node follow instructions here https://github.com/AudiusProject/audius-docker-compose.

Manual Fixes during setup

mkdir -p /etc/docker
touch /etc/docker/daemon.json

# upgrade kernel version

About

Setup a Audius nodes on DigitalOcean using Pulumi to provision and manage infrastructure

License:MIT License


Languages

Language:TypeScript 100.0%