https://github.com/dmanjunath/audius-one-click
Setup a Audius nodes on DigitalOcean using Pulumi to provision and manage infrastructure
https://github.com/dmanjunath/audius-one-click
Last synced: 9 months ago
JSON representation
Setup a Audius nodes on DigitalOcean using Pulumi to provision and manage infrastructure
- Host: GitHub
- URL: https://github.com/dmanjunath/audius-one-click
- Owner: dmanjunath
- License: mit
- Created: 2023-02-06T02:34:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T02:55:04.000Z (over 3 years ago)
- Last Synced: 2025-02-02T13:34:33.038Z (over 1 year ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
```sh
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