fix test persistentContainerExample
This test requires `electrs` to be enabled. Also, by using `electrs` instead of `clightning` we avoid the bug where clightning hangs at startup when internet access is unavailable. Due to technical limititations, internet access is available in NixOS containers only after the container has started.
This commit is contained in:
parent
b36867c845
commit
b8f6343ee4
2 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@
|
|||
# Enable some services.
|
||||
# See ../configuration.nix for all available features.
|
||||
services.bitcoind.enable = true;
|
||||
services.clightning.enable = true;
|
||||
services.electrs.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ nix run . -- create --start
|
|||
# Run command in container
|
||||
extra-container run mynode -- hostname
|
||||
extra-container run mynode -- systemctl status bitcoind
|
||||
extra-container run mynode -- lightning-cli getinfo
|
||||
extra-container run mynode -- bash -c 'bitcoin-cli -getinfo && lightning-cli getinfo'
|
||||
extra-container run mynode -- bitcoin-cli -getinfo
|
||||
extra-container run mynode -- bash -c 'bitcoin-cli -getinfo && systemctl status electrs'
|
||||
|
||||
# Start shell in container
|
||||
extra-container root-login mynode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue