-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from mavotronik/dev
Add instructions to run node
- Loading branch information
Showing
1 changed file
with
61 additions
and
1 deletion.
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 |
---|---|---|
@@ -1 +1,61 @@ | ||
# Node | ||
# Node | ||
## Installation | ||
There is 2 methods of installation: | ||
- Docker (tested on Ubuntu 22.04) | ||
- From source (tested on Ubuntu 18.04, Debian 12, Termux 0.118.0) | ||
|
||
### Docker | ||
1. Update list of packages and install some need packages | ||
``` | ||
sudo apt update | ||
sudo apt install -y nano mc git curl | ||
``` | ||
2. Install Docker | ||
|
||
Actual instructions to [install](https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script) Docker | ||
|
||
3. Clone this repo | ||
|
||
``` | ||
git clone https://github.com/AploCoin/Node -b dev node | ||
``` | ||
4. Edit .env file. Replace IP address in the ANNOUNCE_ADDRESS field to your | ||
``` | ||
ANNOUNCE_ADDRESS="yourIP:5050" | ||
``` | ||
5. Build the docker container | ||
``` | ||
docker build -t aplo_node:latest . | ||
``` | ||
6. Run container | ||
``` | ||
docker run --network host --name aplo_node aplo_node | ||
``` | ||
|
||
### From source | ||
1. Update list of packages and install some need packages | ||
``` | ||
sudo apt update | ||
sudo apt install -y curl git nano build-essential binutils | ||
``` | ||
2. Install Rust | ||
``` | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
``` | ||
3. Clone this repo | ||
|
||
``` | ||
git clone https://github.com/AploCoin/Node -b dev node | ||
``` | ||
4. Edit .env file. Replace IP address in the ANNOUNCE_ADDRESS field to your | ||
``` | ||
ANNOUNCE_ADDRESS="yourIP:5050" | ||
``` | ||
5. Build node | ||
``` | ||
cargo build --release | ||
``` | ||
6. Run node | ||
``` | ||
cargo run --release | ||
``` |