-
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 #14 from mavotronik/dev
Added RU readme version; Docker instruction link fix
- Loading branch information
Showing
2 changed files
with
65 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
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Node | ||
* [Switch to English](https://github.com/AploCoin/Node/blob/dev/README.md) | ||
## Installation | ||
Есть 2 способа установки: | ||
- В Docker (Протестировано на: Ubuntu 22.04) | ||
- Из исходного кода (Протестировано на: Ubuntu 18.04, Debian 12, Termux 0.118.0) | ||
|
||
### Docker | ||
1. Обновите список пакетов и установите некоторые необходимые пакеты | ||
``` | ||
sudo apt update | ||
sudo apt install -y nano mc git curl | ||
``` | ||
2. Установите Докер | ||
|
||
Актуальные инструкции [по установке](https://docs.docker.com/engine/install/ubuntu/) Docker | ||
|
||
3. Клонируйте этот репозиторий | ||
|
||
``` | ||
git clone https://github.com/AploCoin/Node -b dev node | ||
``` | ||
4. Отредактируйте файл .env Замените IP адрес в поле ANNOUNCE_ADDRESS на ваш | ||
``` | ||
ANNOUNCE_ADDRESS="yourIP:5050" | ||
``` | ||
5. Соберите контейнер Docker | ||
``` | ||
docker build -t aplo_node:latest . | ||
``` | ||
6. Запустите контейнер | ||
``` | ||
mkdir logs | ||
docker run --network host --name aplo_node -v logs:/Node/logs aplo_node | ||
``` | ||
|
||
### Из исходного кода | ||
1. Обновите список пакетов и установите некоторые необходимые пакеты | ||
``` | ||
sudo apt update | ||
sudo apt install -y curl git nano build-essential binutils | ||
``` | ||
2. Установите Rust | ||
``` | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
``` | ||
3. Клонируйте этот репозиторий | ||
|
||
``` | ||
git clone https://github.com/AploCoin/Node -b dev node | ||
``` | ||
4. Отредактируйте файл .env Замените IP адрес в поле ANNOUNCE_ADDRESS на ваш | ||
``` | ||
ANNOUNCE_ADDRESS="yourIP:5050" | ||
``` | ||
5. Соберите ноду | ||
``` | ||
cargo build --release | ||
``` | ||
6. Запустите ноду | ||
``` | ||
cargo run --release | ||
``` |