https://github.com/ringsnetwork/rings-sim
Simulate ring behind NAT in docker to test rings-node.
https://github.com/ringsnetwork/rings-sim
Last synced: about 1 year ago
JSON representation
Simulate ring behind NAT in docker to test rings-node.
- Host: GitHub
- URL: https://github.com/ringsnetwork/rings-sim
- Owner: RingsNetwork
- Created: 2022-04-08T05:23:27.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T03:09:37.000Z (about 4 years ago)
- Last Synced: 2025-02-09T08:41:16.200Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 158 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ring Simulation
Simulate ring behind NAT in docker to test [rings-node](https://github.com/RingsNetwork/rings-node).
## Prepare
Build test images
```shell
❯ git submodule update --init --recursive
# May take a while...
❯ python nind.py build_image
# Show the built images
❯ docker images | grep ringsnetwork
```
Prepare stun sever in docker
```shell
❯ python nind.py create_coturn
```
## Run Test
```shell
cargo test
```
## Clean up
```shell
# Remove routers and nondes
> python nind.py clean
# Also remove coturn container and global network
> python nind.py clean --all
```