2022-12-26 12:17:57 +02:00
|
|
|
# [rust-peer distro](https://github.com/fluencelabs/node-distro)
|
2022-06-21 11:08:30 +03:00
|
|
|
|
2022-08-18 13:16:09 +03:00
|
|
|
The distributive and packaging of the
|
|
|
|
[rust-peer](https://github.com/fluencelabs/rust-peer).
|
2021-06-22 13:38:59 +03:00
|
|
|
|
|
|
|
Currently provides Network Dashboard as a side-car.
|
|
|
|
|
2022-07-15 22:43:07 +03:00
|
|
|
## Image tags
|
|
|
|
|
2022-12-26 12:17:57 +02:00
|
|
|
| Container flavour | IPFS daemon | services | binaries |
|
|
|
|
| ----------------- | ----------- | -------------------------------- | ------------------------------------------ |
|
|
|
|
| minimal | ❌ | aqua-ipfs, trust-graph, registry | curl, ipfs |
|
|
|
|
| ipfs | ✅ | aqua-ipfs, trust-graph, registry | curl, ipfs |
|
|
|
|
| rich | ✅ | aqua-ipfs, trust-graph, registry | curl, ipfs, ceramic, bitcoin cli, geth cli |
|
|
|
|
|
|
|
|
`latest` points to the latest version of `ipfs` flavour
|
2022-07-15 22:43:07 +03:00
|
|
|
|
|
|
|
### minimal
|
|
|
|
|
2022-08-18 13:16:09 +03:00
|
|
|
Contains rust-peer itself and some builtin services:
|
2022-07-15 22:43:07 +03:00
|
|
|
|
|
|
|
- [aqua-ipfs](https://github.com/fluencelabs/aqua-ipfs)
|
|
|
|
- [trust-graph](https://github.com/fluencelabs/trust-graph)
|
|
|
|
- [registry](https://github.com/fluencelabs/registry)
|
|
|
|
|
|
|
|
For those who want to run IPFS node separately. Serves as a base image for all
|
|
|
|
other image flavours.
|
|
|
|
|
2022-11-21 12:44:12 +02:00
|
|
|
`FLUENCE_ENV_AQUA_IPFS_*` variables must be defined and point to externally
|
|
|
|
running IPFS daemon in order for aqua-ipfs to work. If not defined aqua-ipfs
|
|
|
|
builtin will be removed.
|
2022-08-18 13:16:09 +03:00
|
|
|
|
2022-11-21 12:44:12 +02:00
|
|
|
| variable | default | description |
|
|
|
|
| ---------------------------------------------- | --------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
|
|
| `FLUENCE_ENV_AQUA_IPFS_EXTERNAL_API_MULTIADDR` | `/dns4/ipfs.fluence.dev/tcp/5001` | advertised to clients (eg frontend apps) to use in uploading files (`ipfs.put`), managing pins (`ipfs.pin`) etc |
|
|
|
|
| `FLUENCE_ENV_AQUA_IPFS_LOCAL_API_MULTIADDR` | `/dns4/ipfs.fluence.dev/tcp/5001` | used by aqua-ipfs builtin to connect to IPFS node |
|
2022-08-18 13:16:09 +03:00
|
|
|
|
2022-07-15 22:43:07 +03:00
|
|
|
### ipfs
|
|
|
|
|
2022-08-18 13:16:09 +03:00
|
|
|
rust-peer packaged with
|
2022-07-15 22:43:07 +03:00
|
|
|
[IPFS node](https://docs.ipfs.io/how-to/command-line-quick-start/#take-your-node-online)
|
|
|
|
running inside container.
|
|
|
|
|
2022-11-21 12:44:12 +02:00
|
|
|
| variable | default | description |
|
|
|
|
| ---------------------------------------------- | ---------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
|
|
| `IPFS_PATH` | `/config/ipfs` | IPFS node data directory |
|
|
|
|
| `IPFS_LOG_PATH` | `/log/ipfs` | directory where IPFS will store its logs |
|
|
|
|
| `IPFS_MIGRATE_FS` | `false` | automatically run [fs-repo-migrations](https://github.com/ipfs/fs-repo-migrations) on start |
|
2022-12-02 13:27:34 +02:00
|
|
|
| `IPFS_ADDRESSES_SWARM` | `/ip4/0.0.0.0/tcp/4001,/ip4/0.0.0.0/tcp/4001/ws` | IPFS swarm multiaddr |
|
2022-11-21 12:44:12 +02:00
|
|
|
| `IPFS_ADDRESSES_API` | `/ip4/0.0.0.0/tcp/5001` | IPFS API multiaddr |
|
|
|
|
| `IPFS_ADDRESSES_GATEWAY` | `/ip4/0.0.0.0/tcp/8080` | IPFS gateway multiaddr |
|
2022-12-02 13:27:34 +02:00
|
|
|
| `IPFS_ADDRESSES_ANNOUNCE` | `/ip4/127.0.0.1/tcp/4001,/ip4/127.0.0.1/tcp/4001/ws` | IPFS p2p multiaddr of the IPFS swarm protocol |
|
2022-11-21 12:44:12 +02:00
|
|
|
| `FLUENCE_ENV_AQUA_IPFS_EXTERNAL_API_MULTIADDR` | `/ip4/127.0.0.1/tcp/5001` | advertised to clients (eg frontend apps) to use in uploading files (`ipfs.put`), managing pins (`ipfs.pin`) etc |
|
|
|
|
| `FLUENCE_ENV_AQUA_IPFS_LOCAL_API_MULTIADDR` | `/ip4/127.0.0.1/tcp/5001` | used by aqua-ipfs builtin to connect to IPFS node |
|
2022-08-18 13:16:09 +03:00
|
|
|
|
2022-07-15 22:43:07 +03:00
|
|
|
### rich
|
|
|
|
|
2022-08-18 13:16:09 +03:00
|
|
|
rust-peer packaged with IPFS node,
|
2022-07-15 22:43:07 +03:00
|
|
|
[Ceramic](https://developers.ceramic.network/learn/welcome/) CLI and some other
|
|
|
|
binaries like bitcoin-cli or
|
|
|
|
[geth](https://geth.ethereum.org/docs/interface/command-line-options).
|
|
|
|
|
2022-11-21 12:44:12 +02:00
|
|
|
| variable | default | description |
|
|
|
|
| ---------------------------------------------- | ---------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
|
|
| `CERAMIC_HOST` | | ceramic daemon address |
|
|
|
|
| `IPFS_PATH` | `/config/ipfs` | IPFS node data directory |
|
|
|
|
| `IPFS_LOG_PATH` | `/log/ipfs` | directory where IPFS will store its logs |
|
|
|
|
| `IPFS_MIGRATE_FS` | `false` | automatically run [fs-repo-migrations](https://github.com/ipfs/fs-repo-migrations) on start |
|
2022-12-02 13:27:34 +02:00
|
|
|
| `IPFS_ADDRESSES_SWARM` | `/ip4/0.0.0.0/tcp/4001,/ip4/0.0.0.0/tcp/4001/ws` | IPFS swarm multiaddr |
|
2022-11-21 12:44:12 +02:00
|
|
|
| `IPFS_ADDRESSES_API` | `/ip4/0.0.0.0/tcp/5001` | IPFS API multiaddr |
|
|
|
|
| `IPFS_ADDRESSES_GATEWAY` | `/ip4/0.0.0.0/tcp/8080` | IPFS gateway multiaddr |
|
2022-12-02 13:27:34 +02:00
|
|
|
| `IPFS_ADDRESSES_ANNOUNCE` | `/ip4/127.0.0.1/tcp/4001,/ip4/127.0.0.1/tcp/4001/ws` | IPFS announce multiaddr |
|
2022-11-21 12:44:12 +02:00
|
|
|
| `FLUENCE_ENV_AQUA_IPFS_EXTERNAL_API_MULTIADDR` | `/ip4/127.0.0.1/tcp/5001` | advertised to clients (eg frontend apps) to use in uploading files (`ipfs.put`), managing pins (`ipfs.pin`) etc |
|
|
|
|
| `FLUENCE_ENV_AQUA_IPFS_LOCAL_API_MULTIADDR` | `/ip4/127.0.0.1/tcp/5001` | used by aqua-ipfs builtin to connect to IPFS node |
|
2022-06-21 11:08:30 +03:00
|
|
|
|
2021-06-22 13:38:59 +03:00
|
|
|
## How to run
|
2022-06-21 11:08:30 +03:00
|
|
|
|
2022-12-26 12:17:57 +02:00
|
|
|
Copy [`docker-compose.yml`](https://github.com/fluencelabs/node-distro/blob/main/docker-compose.yml) locally and run
|
2022-06-21 11:08:30 +03:00
|
|
|
|
2021-06-22 13:38:59 +03:00
|
|
|
```bash
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
2022-11-21 12:44:12 +02:00
|
|
|
That will run 2 containers: local rust-peer and Network Dashboard connected to
|
|
|
|
it.
|
2021-06-22 13:38:59 +03:00
|
|
|
|
|
|
|
## How to open dashboard
|
2022-06-21 11:08:30 +03:00
|
|
|
|
2021-06-22 13:38:59 +03:00
|
|
|
Open [http://localhost:8080](http://localhost:8080) in your browser
|