Skip to content

Commit

Permalink
docs: add development
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Mar 1, 2024
1 parent 674949d commit 91c702b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Development

## Setup

You need incus installed

Following nixos config is recommended:

```nix
{
virtualisation.incus.enable = true;
networking.nftables.enable = true;
networking.firewall.trustedInterfaces = [ "incusbr0" "incusbr1" ];
users.users.YOU.extraGroups = [ "incus-admin" ];
}
```

Then you can init incus: `sudo incus admin init --minimal`

## Testing

- `bash test/incus-test-setup.sh`: Create containers for testing
- `bash test/test-deployment.sh`: Deploy example.nix on all containers

## Automated tests

If you want to run the full testsuite first run `EXPORT_IMAGE=1 bash test/incus-test-setup.sh` to create images from instances then `bash test/test-all.sh` to run the testsuite

0 comments on commit 91c702b

Please sign in to comment.