A quick and dirty guide to get the ETL Lite up and running on AWS's Ubuntu 20.04 AMI.
Once you have your instance up and running:
- Update apt
sudo apt-get update
- Install dependencies
sudo apt-get install docker.io make postresql clang -y
- Add yourself to docker group
sudo usermod -aG docker ubuntu
relog into your shell for the changes to take place - Download blockchain-node code
git clone git clone https://github.com/helium/blockchain-node.git
- Update blockchain-node config to load all json (needed for rewards data)
sed -i "/{blockchain,/{N;s/$/\n {store_json, true},/}" config/dev.config
- Build docker container
make docker-build
- Run psql
sudo -u postgres psql
- Run SQL commands to create db and user
create database helium_lite;
create user etlite with encrypted password ‘password’;
Hopefully you choose a better password.
grant all privileges on database helium_lite to etlite;
- Install Rust + Cargo
curl https://sh.rustup.rs -sSf | sh
Then follow instructions - Build ETL Lite
git clone https://github.com/dewi-alliance/helium-etl-lite.git
cd helium-etl-lite
cargo build --release
- Start blockcahin-node
cd ../blockchain-node
make docker-start
- Run migrations
cd ../helium-etl-lite
target/release/helium_etl_lite migrate
- Wait 15-30 min before starting ETL Lite
target/release/helium_etl_lite start
You should be able to see what's happening in the logs in log/etl_lite.log
TODO: service script