Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Nix flake to Build, Develop, & WIP: run integration test cluster #13

Closed
wants to merge 9 commits into from

Conversation

DanGould
Copy link
Contributor

@DanGould DanGould commented Aug 17, 2022

The easiest way to do this seems to be to get all the binaries sorted from nix in a nix-shell instead of flake and have the shellHooks set up the binaries. I think it's possible to do with flake and nix shell and eventually with the VM but not quite yet.

This change sets up a default package that runs the server with nix build and nix run. It also sets up a dev environment for mac or linux with nix develop

The docker package is intended to run integration tests on a containerized lightning cluster. I think it makes sense to run integration tests out of a docker container because NixOS VMs don't run on MacOS yeta

@DanGould
Copy link
Contributor Author

For integration testing we just want nix shell to create an environment with bitcoind and lnd(s).

My initial draft was wrong in that nix build and nix run are tools for deployment, which is beyond the scope of this pr.

	l1-cli, l1-log, l1-follow, l1-followf, lncli-1, lnd-1-logs
	l2-cli, l2-log, l2-follow, l2-followf, lncli-2, lnd-2-logs
�]7;file://Electric-Unicycle-Control.local/Users/dan/f/chaincase/loin�
Include 2x LND and bitcoind from nixpkgs since they work on MacOS
Borow from PeerSwap. TODO remove lightning-cli remnants from CLN
@DanGould
Copy link
Contributor Author

DanGould commented Oct 4, 2022

nix vms don't work on mac yet. We can just use docker-compose and a rust test for now

@DanGould DanGould closed this Oct 4, 2022
@DanGould DanGould mentioned this pull request Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant