|
1 | | -<br/> |
2 | | -<p align="center"> |
3 | | -<a href="https://goplugin.co" target="_blank"> |
4 | | -<img src="https://github.com/GoPlugin/Plugin/blob/main/docs/plugin.png" width="225" alt="Plugin logo"> |
5 | | -</a> |
6 | | -</p> |
7 | | -<br/> |
| 1 | +# pluginnode-install |
8 | 2 |
|
9 | | -This repo contains the script for automation of the [Plugin](https://goplugin.co/) Node setup which can be used by the Node operators. |
| 3 | +# Please take note that the "./install_node.sh" does not include the docker installation. If you have no Docker installed on your VPS you need to run the "./install_docker.sh" first |
10 | 4 |
|
11 | | -To follow [Mr.Blochain22](https://www.youtube.com/watch?v=GEp_OmT-WwY&t=196s) video tutorial: |
12 | | -``` |
13 | | -Steps to be followed: |
14 | | -===================== |
15 | | -1) git clone https://github.com/GoPlugin/plugin-deployment.git |
16 | | -2) cd plugin-deployment |
17 | | -3) git checkout plugin-dep-mb22 |
18 | | -``` |
| 5 | +Guide on how to deploy Contracts: https://github.com/nmzn/deployment-guide |
19 | 6 |
|
20 | | -To install latest scripts: |
21 | | -========================== |
22 | | -``` |
23 | | -Steps to be followed: |
24 | | -===================== |
25 | | -1) git clone https://github.com/GoPlugin/plugin-deployment.git |
26 | | -2) cd plugin-deployment |
27 | | -``` |
28 | | -There are 2 scripts in this repo(1_prerequisite.bash,2_nodeStartPM2.sh) & 2 files (apicredentials.txt, password.txt). |
| 7 | +The install Script hasnt a password check yet. Will include that in later updates. |
29 | 8 |
|
30 | | -1) Before executing the 1_prerequisite.bash script, please change the database password |
31 | | - to your own known password(we just given a default as 'postgres', just change 'your_password') at line number 202 of 1_prerequisite.bash. |
32 | | -This script will install all the prerequisite tools, utilities for Plugin. |
33 | | -- After successfull execution of 1_prerequisite.bash, kindly go through the instructions to be followed |
34 | | - for executing 2_nodeStartPM2.sh as mentioned below. |
35 | | -``` |
36 | | - ################################################################################ |
37 | | - # IMPORTANT MESSAGE # |
38 | | - ################################################################################ |
39 | | - # Make sure you have the below mentioned 2 files are available and populated # |
40 | | - # as given below. Then start 'pm2 start 2_nodeStartPM2.sh' script to run your# |
41 | | - # node in the background. To view your node log use 'pm2 logs 0'. # |
42 | | - # # |
43 | | - # File 1: password.txt => contains your keystore password # |
44 | | - # *** KEYSTORE PASSWORD SHOULD FOLLOW THIS CONDITIONS *** # |
45 | | - # “must be longer than 12 characters”, # |
46 | | - # “must contain at least 3 lowercase characters”, # |
47 | | - # “must contain at least 3 uppercase characters”, # |
48 | | - # “must contain at least 3 numbers”, # |
49 | | - # “must contain at least 3 symbols”, # |
50 | | - # “must not contain more than 3 identical consecutive # |
51 | | - # characters”. # |
52 | | - # File 2: apicredentials.txt => first line of the file contians email id for UI# |
53 | | - # second line of the file contains password for UI# |
54 | | - # (This passwrod should be strong, but need not # |
55 | | - # follow keystore password condition). # |
56 | | - # # |
57 | | - # NOTE: This 2 files have default contents, please change the mail & passwords # |
58 | | - # before starting 'pm2 start 2_nodeStartPM2.sh'. # |
59 | | - ################################################################################ |
60 | | - ################################################################################ |
61 | | -``` |
62 | | -2) Now execute 2_nodeStartPM2.sh through pm2 'pm2 start 2_nodeStartPM2.sh'. |
63 | | -3) You can view the status(pm2 status 0) && logs(pm2 logs 0) of your running node |
| 9 | +Contents: |
64 | 10 |
|
| 11 | + ##install_docker.sh |
65 | 12 |
|
66 | | -Please follow the link [Node setup Guide](https://medium.com/@GoPlugin/setup-a-plugin-node-automated-way-using-shell-script-fbdec48a0dea) on medium for detailed process steps. |
67 | | - |
68 | | -To withdraw your XDC/PLI from your node please refer to this article (https://medium.com/@GoPlugin/how-to-withdraw-xdc-pli-from-plugin-node-oracle-address-a9ebe6ff2dd7). |
| 13 | + This is a small Script that installs docker for you. |
| 14 | + |
| 15 | + ##install_node.sh |
| 16 | + |
| 17 | + This is the main Install Script that will install the plugin Node including the external initiator. |
| 18 | + |
| 19 | + |
| 20 | + Step 1: |
| 21 | + |
| 22 | + |
| 23 | + sudo git clone https://github.com/nmzn/pluginnode-install.git && cd pluginnode-install && sudo chmod +x install_docker.sh && sudo chmod +x install_node.sh |
| 24 | + |
| 25 | + |
| 26 | + Step 2 (optional if needed): |
| 27 | + |
| 28 | + ./install_docker.sh |
| 29 | + |
| 30 | + Step 3: |
| 31 | + |
| 32 | + ./install_node.sh |
| 33 | + |
| 34 | + |
| 35 | + #This does not include any changings to your Firewall you may need to apply in order for the node to run correctly. |
| 36 | + |
| 37 | + #Important |
| 38 | + |
| 39 | + Keep in mind that you still have to do the Oracle Contract deployment part wich you find here: https://docs.goplugin.co |
| 40 | + |
0 commit comments