diff --git a/README.md b/README.md index 5f8b254..e3e2bf1 100644 --- a/README.md +++ b/README.md @@ -11,77 +11,71 @@ - Binary cache `https://hydra.aira.life` - Public key `hydra.aira.life-1:StgkxSYBh18tccd4KUVmxHQZEUF7ad8m10Iw4jNt5ak=` -## AIRA installation +## AIRA lighthouse installation AIRA project provide a NixOS based GNU/Linux distro which contains all set of Airalab and third-party software. -### Hardware/VM installation - -The first, fetch installation image: +### VirtualBox images | Type | Arch | SHA256 | Link | |------|--------|--------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------| -| VirtualBox | x86_64 | a36c9416e836dac6ab60ff771dcdd65694905298e414201404199471bd71bbac | [Download](https://github.com/airalab/aira/releases/download/0.12.1/aira-lighthouse-0.12.1-x86_64.ova) - -### Existing NixOS installation +| VirtualBox | x86_64 | 0e7c4df557097e22dda47754a5edd4fcc305b09f4c9c669efef7cb4fa2873e1e | [Download](https://github.com/airalab/aira/releases/download/0.13/aira-lighthouse-0.13-x86_64.ova) -On existing NixOS instance fortunately you can use the channels. +### NixOS installation -Append the AIRA channel: +1. git clone --recursive https://github.com/airalab/aira.git +2. add `services.lighthouse.enable = true;` to `/etc/nixos/configuration.nix` +3. nixos-rebuild switch -I nixpkgs=$(realpath aira/airapkgs) -``` bash -$ nix-channel --add https://hydra.aira.life/project/aira/channel/latest aira -$ nix-channel --update -``` +## AIRA development cheatsheet -So, if you dont want to compile the code on your local machine, you can add binary cache witch contains precompiled and tested AIRA packages. +### Status of the system -Appen the AIRA binary cache into Nix configuration: +#### Journals -```nix -{ - nix.binaryCaches = [ https://cache.nixos.org https://hydra.aira.life ]; - nix.binaryCachePublicKeys = [ "hydra.aira.life-1:StgkxSYBh18tccd4KUVmxHQZEUF7ad8m10Iw4jNt5ak=" ]; -} +``` +journalctl -u ipfs -f +journalctl -u parity -f +journalctl -u lighthouse -f ``` -## AIRA configuration - -The next is configure your AIRA instance. - -Minimal `/etc/nixos/configuration.nix` of AIRA `Game of trains` release is +#### IPFS peers -```nix -{ config, ... }: +``` +ipfs pubsub peers airalab.lighthouse.0.robonomics.eth +``` -{ - boot.loader.grub.device = "/dev/sda"; - fileSystems."/".label = "nixos"; +#### Lighthouse logs - services = { - parity.enable = true; - parity.chain = "kovan"; +``` +tail -f /var/lib/lighthouse/.ros/log/latest/lighthouse-lighthouse-6.log +``` - railway-game.enable = true; - }; +### Lighthouse development - users.extraUsers.root.initialHashedPassword = ""; -} +1. Stop the service +``` +systemctl stop lighthouse ``` -This starts AIRA railway Z21 controller and Parity Ethereum node on KOVAN blockchain. - -Configuration is will be applyed by +2. Run in ROS workspace -```bash -$ nixos-rebuild switch +``` +cd aira/airapkgs +nix-build -A robonomics_dev +source result/setup.bash ``` -Logs can be in view by - -```bash -$ journalctl -u railway-market-switch -u parity -f +``` +mkdir ~/ws/src -p && cd ~/ws/src && catkin_init_workspace +git clone https://github.com/airalab/robonomics_comm +cd .. +nix-shell -p gcc +catkin_make +exit +setup devel/setup.bash +roslaunch robonomics_lighthouse lighthouse.launch ``` #### Have fun and good luck! diff --git a/airapkgs b/airapkgs index 5e1d8a7..9d9a91b 160000 --- a/airapkgs +++ b/airapkgs @@ -1 +1 @@ -Subproject commit 5e1d8a7e0ff7e8258b057ddbb2b916e5c4f78f58 +Subproject commit 9d9a91bf706706b5407cdd043db3ae56d4c207b8