-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |