Skip to content

Instantly share code, notes, and snippets.

View riusricardo's full-sized avatar

Ricardo Rius riusricardo

  • 506c616e6574204561727468
View GitHub Profile
@riusricardo
riusricardo / substrate-RPi.md
Last active September 30, 2019 08:41
Steps to compile Substrate on a RPi device.
  1. Compile the code in your Desktop (better if it's Linux or Mac). A full compilation cargo build --release. We are only going to use this to get the WASM blobs.
  2. On the RPi you should install the required dependencies:
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git curl clang libclang-dev protobuf-compiler
curl https://sh.rustup.rs -sSf | sh
  1. We now need to use a environment vaiable on the RPi to indicate that we don't want to build the WASM code. export SKIP_WASM_BUILD='true'
  2. Start building on the RPi to generate the target directory structure.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##################################################
## A serverless failover solution for Web3 validator nodes
##################################################
## Author: Ricardo Rius
## Copyright: Copyright 2019, Ricardo Rius
## License: Apache-2.0
## Version: 0.1.3
##################################################
## A serverless failover solution for Web3 validator nodes
##################################################
## Author: Ricardo Rius
## Copyright: Copyright 2019, Ricardo Rius
## License: Apache-2.0
## Version: 0.1.3
##################################################
AWSTemplateFormatVersion: "2010-09-09"
Description: Basic serverless architecture to handle validator nodes outages & service interruptions.