Skip to content

Commit 9e5efec

Browse files
committed
Rename project from docker-swarm to voi-swarm
1 parent e2f65f1 commit 9e5efec

6 files changed

+19
-21
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
./.idea/**/*
22

3-
/docker-swarm/notification.yml
3+
/docker/notification.yml

README.md

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Docker Swarm Voi Participation Node Setup
2-
3-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ea47d627de494a92b25b97eb65930e85)](https://app.codacy.com/gh/VoiNetwork/docker-swarm/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
1+
# Voi Swarm Voi Participation Node Setup
42

53
## Prerequisites
64

@@ -27,7 +25,7 @@ system guidance on installation and setup.
2725
To set up a new Voi node, run the following command:
2826

2927
```bash
30-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"
28+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/voi-swarm/main/install.sh)"
3129
```
3230

3331
## Using an Existing Account/Address with Mnemonic
@@ -37,7 +35,7 @@ environment variable to 1 and run the installation script:
3735

3836
```bash
3937
export VOINETWORK_IMPORT_ACCOUNT=1
40-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"
38+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/voi-swarm/main/install.sh)"
4139
```
4240

4341
## Installing Without Wallet Setup
@@ -47,7 +45,7 @@ and run the installation script:
4745

4846
```bash
4947
export VOINETWORK_SKIP_WALLET_SETUP=1
50-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"
48+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/voi-swarm/main/install.sh)"
5149
```
5250

5351
## Updating Your Participation Key
@@ -58,7 +56,7 @@ close to expiring. So, to keep your Voi node active, make sure your participatio
5856
expire, rerun the installation script to generate a new key.
5957

6058
```bash
61-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"
59+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/voi-swarm/main/install.sh)"
6260
```
6361

6462
## Setting up Participation Key Expiry Notifications (Recommended)
@@ -72,9 +70,9 @@ To receive a notification when the participation key is about to expire, you can
7270

7371
### Copy the Example File
7472

75-
Start by copying the example notification.yml file to the voi/docker-swarm directory:
73+
Start by copying the example notification.yml file to the voi/docker directory:
7674

77-
`cp ~/voi/docker-swarm/notification.yml.example ~/voi/docker-swarm/notification.yml`
75+
`cp ~/voi/docker/notification.yml.example ~/voi/docker/notification.yml`
7876

7977
### Update the notification.yml File
8078

@@ -102,7 +100,7 @@ The format of the schedule is following the standard [cronjob format](https://en
102100
To apply your notification configuration to the stack, rerun the installation script:
103101

104102
```bash
105-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"
103+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/voi-swarm/main/install.sh)"
106104
```
107105

108106
### Testing Your Notification Configuration
@@ -119,7 +117,7 @@ To set a custom telemetry name, set the VOINETWORK_TELEMETRY_NAME environment va
119117

120118
```bash
121119
export VOINETWORK_TELEMETRY_NAME="my_custom_telemetry_name"
122-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"
120+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/voi-swarm/main/install.sh)"
123121
```
124122

125123
Custom telemetry name can be combined with other environment variables.
@@ -128,7 +126,7 @@ Custom telemetry name can be combined with other environment variables.
128126

129127
To uninstall, execute the following commands:
130128

131-
- Leave the Docker swarm with `docker swarm leave --force`
129+
- Leave the Swarm with `docker swarm leave --force`
132130
- Remove the `voi` directory with `rm -rf /voi/`
133131
- Remove the `data` directory with `sudo rm -rf /var/lib/voi`
134132

bin/set-telemetry-name

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ set_telemetry_name() {
2929

3030
set_telemetry_name
3131

32-
bash -c "env VOINETWORK_TELEMETRY_NAME=$VOINETWORK_TELEMETRY_NAME docker stack deploy -c ${HOME}/voi/docker-swarm/compose.yml voinetwork"
32+
bash -c "env VOINETWORK_TELEMETRY_NAME=$VOINETWORK_TELEMETRY_NAME docker stack deploy -c ${HOME}/voi/docker/compose.yml voinetwork"
3333

3434
echo "Changes has been applied to the network. Please wait a minute for the changes to take effect."
File renamed without changes.
File renamed without changes.

install.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ start_docker_swarm() {
8484
}
8585

8686
start_stack() {
87-
command="env VOINETWORK_TELEMETRY_NAME=$VOINETWORK_TELEMETRY_NAME docker stack deploy -c ${voi_home}/docker-swarm/compose.yml"
87+
command="env VOINETWORK_TELEMETRY_NAME=$VOINETWORK_TELEMETRY_NAME docker stack deploy -c ${voi_home}/docker/compose.yml"
8888

89-
if [[ -f "${voi_home}/docker-swarm/notification.yml" ]]; then
90-
command+=" -c ${voi_home}/docker-swarm/notification.yml"
89+
if [[ -f "${voi_home}/docker/notification.yml" ]]; then
90+
command+=" -c ${voi_home}/docker/notification.yml"
9191
fi
9292

9393
command+=" voinetwork"
@@ -400,7 +400,7 @@ joined_network_instructions() {
400400

401401
echo ""
402402
echo "For a list of useful commands, check out:"
403-
echo " - Install README.md: https://github.com/VoiNetwork/docker-swarm/blob/main/README.md"
403+
echo " - Install README.md: https://github.com/VoiNetwork/voi-swarm/blob/main/README.md"
404404
echo " - Docker Swarm documentation: https://docs.docker.com/engine/swarm/"
405405
echo ""
406406
if [[ ${skip_account_setup} -eq 1 ]]; then
@@ -575,9 +575,9 @@ fi
575575
mkdir -p "${voi_home}"
576576

577577
display_banner "Fetching the latest Voi Network updates and scripts."
578-
curl -L https://api.github.com/repos/VoiNetwork/docker-swarm/tarball/main --output "${voi_home}"/docker-swarm.tar.gz
579-
tar -xzf "${voi_home}"/docker-swarm.tar.gz -C "${voi_home}" --strip-components=1
580-
rm "${voi_home}"/docker-swarm.tar.gz
578+
curl -L https://api.github.com/repos/VoiNetwork/voi-swarm/tarball/main --output "${voi_home}"/voi-swarm.tar.gz
579+
tar -xzf "${voi_home}"/voi-swarm.tar.gz -C "${voi_home}" --strip-components=1
580+
rm "${voi_home}"/voi-swarm.tar.gz
581581

582582
start_stack
583583

0 commit comments

Comments
 (0)