Skip to content

Commit

Permalink
Merge pull request #16 from mavotronik/dev
Browse files Browse the repository at this point in the history
Update instruction. Added Alpine install section
  • Loading branch information
YeahNotSewerSide authored Dec 12, 2023
2 parents 58753be + 7b8cf0e commit c6565be
Showing 1 changed file with 54 additions and 26 deletions.
80 changes: 54 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# Node
* [Переключить на Русский](https://github.com/AploCoin/Node/blob/dev/README_ru.md)

## 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)
- From source (tested on Ubuntu 18.04, Debian 12, Termux 0.118.0, Alpine 3.18)

### Docker
1. Update list of packages and install some need packages
### From source

#### Debian/Ubuntu
1. Update list of packages and install some needed packages
```
sudo apt update
sudo apt install -y nano mc git curl
sudo apt install -y curl git build-essential binutils
```
2. Install Rust
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
2. Install Docker

Actual instructions to [install](https://docs.docker.com/engine/install/ubuntu/) Docker

3. Clone this repo

```
Expand All @@ -24,40 +26,66 @@ git clone https://github.com/AploCoin/Node -b dev node
```
ANNOUNCE_ADDRESS="yourIP:5050"
```
5. Build the docker container
5. Build node
```
docker build -t aplo_node:latest .
cargo build --release
```
6. Run container
6. Run node
```
mkdir logs
docker run --network host --name aplo_node -v $(pwd)/logs:/Node/logs aplo_node
cargo run --release
```

### From source
1. Update list of packages and install some need packages
#### Alpine
1. Update list of packages and install rust, cargo and git
```
sudo apt update
sudo apt install -y curl git nano build-essential binutils
apk update
apk install git rust cargo
```
2. Install Rust
2. Clone this repo
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/AploCoin/Node -b dev node
```
3. Edit .env file. Replace IP address in the ANNOUNCE_ADDRESS field to yours
```
ANNOUNCE_ADDRESS="yourIP:5050"
```
4. Build node
```
cargo build --release
```
5. Run node
```
cargo run --release
```


### Docker

#### Debian/Ubuntu
1. Update list of packages and install some needed packages
```
sudo apt update
sudo apt install -y nano git curl
```
2. Install Docker

Actual instructions to [install](https://docs.docker.com/engine/install/ubuntu/) 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
4. Edit .env file. Replace IP address in the ANNOUNCE_ADDRESS field to yours
```
ANNOUNCE_ADDRESS="yourIP:5050"
```
5. Build node
```
cargo build --release
5. Build the docker container
```
6. Run node
docker build -t aplo_node:latest .
```
cargo run --release
6. Run container
```
mkdir logs
docker run --network host --name aplo_node -v $(pwd)/logs:/Node/logs aplo_node
```

0 comments on commit c6565be

Please sign in to comment.