Skip to content

Instantly share code, notes, and snippets.

@bradennapier
Last active April 3, 2019 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradennapier/85fc792ffa442686f3313e02096ec583 to your computer and use it in GitHub Desktop.
Save bradennapier/85fc792ffa442686f3313e02096ec583 to your computer and use it in GitHub Desktop.
AuraD on Amazon Linux 2

Install the Essentials

# Install Docker and start the daemon
sudo amazon-linux-extras install docker
sudo service docker start

# Allow running docker without sudo
sudo usermod -a -G docker ec2-user

# Make Docker auto start
sudo chkconfig docker on

# Install git because... everything needs git!
sudo yum install -y git

# Install tools for compilation
sudo yum groupinstall -y "Development Tools"

# Reboot to confirm all is good
sudo reboot

Give the instance some time to reboot then log back in.

Confirm Docker is running on reboot

# Confirm Docker is running
sudo systemctl status docker

Look for the following in the result Active: active (running) since ...

Install Further Dependencies

# Install docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

# Allow docker-compose to execute
sudo chmod +x /usr/local/bin/docker-compose

# Verify it works
docker-compose version

# Install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

# Install Yarn
curl -o- -L https://yarnpkg.com/install.sh | bash

# Source the bashrc to get nvm control
. ~/.bashrc

# Install Node v10
nvm install v10

# Globally install the aurad cli
yarn global add @auroradao/aurad-cli

# Reboot for good measure
sudo reboot

Now once we log back in we should be able to run the aura commands in the shell!

SSH Into Instance

aura config

We can use infura if we'd rather use that over the built in parity node:

aura start --rpc https://mainnet.infura.io/v3/<your_infura_id>

Or just run it using the built-in method:

aura start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment