Skip to content

Instantly share code, notes, and snippets.

@rhlsthrm
Last active June 7, 2020 10:42
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 rhlsthrm/34c1b1849392894eaf00ddc049d4749b to your computer and use it in GitHub Desktop.
Save rhlsthrm/34c1b1849392894eaf00ddc049d4749b to your computer and use it in GitHub Desktop.
Instructions to install Prysm on Digital Ocean Ubuntu.
# VM Specs
- Ubuntu 4GB RAM
- 20GB HD
# Prerequisites
- Docker
```sh
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
```
- Docker Compose
```sh
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
```
- Optional: zsh + Powerline
```sh
# zsh
$ sudo apt-get update
$ sudo apt-get install zsh
$ sudo usermod -s /usr/bin/zsh $(whoami)
# Powerline
$ sudo apt-get install powerline fonts-powerline
$ echo "source /usr/share/powerlevel9k/powerlevel9k.zsh-theme" >> ~/.zshrc
$ source ~/.zshrc
# oh my zsh
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```
# Prysm
## Docker Compose Setup
- Clone Repo
```sh
$ git clone https://github.com/stefa2k/prysm-docker-compose.git
```
- Set Up Validator Account
```sh
$ vi .env
# change passphrase
$ docker-compose -f create-account.yaml run validator-create-account
# go to https://prylabs.network/participate and deposit
```
- Run beacon node + validator
```sh
$ vi validator/keystore.json
# change passphrase TODO: FIX BUG HERE
$ mv compose-examples/docker-compose.beacon-validator.override.yaml docker-compose.override.yaml
$ docker-compose.override.yaml
# change docker services
$ docker-compose up -d
# logs
$ docker-compose logs --tail=100 --follow beacon
$ docker-compose logs --tail=100 --follow validator
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment