Skip to content

Commit

Permalink
Upgraded airapkgs; Added development cheatsheets to README
Browse files Browse the repository at this point in the history
  • Loading branch information
akru committed Jul 13, 2018
1 parent 6c7f26c commit 846c343
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 47 deletions.
86 changes: 40 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
2 changes: 1 addition & 1 deletion airapkgs
Submodule airapkgs updated 4824 files

0 comments on commit 846c343

Please sign in to comment.