Please ensure, you have git & curl command installed already. If not, use the following command
sudo apt install git
sudo apt install curl
Step 1 - Download the Plugin Installation Script
NOTE: If you are having root access, please don't install from /root folder, better start from /home
git clone -b docker_branch_v1 https://github.com/GoPlugin/plugin-deployment.git && cd plugin-deployment
Step 2 - Postgres Setup
To set up custom password for PostgreSQL database execute the below mentioned command in plugin-deployment directory. The user needs to change the word ‘password’ to their own password for the database.
Install PostgreSQL & Config PostgreSQL: (Just copy and paste each line) and make sure there is no error before you move on to the next line of commands
sudo docker pull goplugin/pluginode:v1
For latest docker image(in which Pli balance will be reflecting in Keys), please
use the v2 version of docker image:
sudo docker pull goplugin/pluginode:v2
Step 5 - Copy down the image ID using below command
sudo docker images
Step 6 - Change your credentials
It is important to change the credentials in these two files, inside the plugin-deployment directory.
These files are hidden files and you can edit using below command
.env.password
This is the password that helps generate and secure the Keystore wallet. Basically, your Plugin node will generate a wallet and this password is key to the same.
It follows certain standards and password conditions which you can get it from here
# *** KEYSTORE PASSWORD SHOULD FOLLOW THIS CONDITIONS *** #
# “must be longer than 12 characters”,
# “must contain at least 3 lowercase characters”,
# “must contain at least 3 uppercase characters”,
# “must contain at least 3 numbers”,
# “must contain at least 3 symbols”,
# “must not contain more than 3 identical consecutive #characters”.
For example -
.env.apicred
This file has credentials that allows you to log in to PLUGIN GUI
You can use your email ID & password of your choice
Once the above files are updated, then you can proceed to the next!
Step 7 - Override the Image ID in the below command and run the docker container
sudo docker run --env-file plugin.env -it -d -p 6688:6688 -p 8080:8080 -v <Absolute path of your plugin-deployment directory>:/pluginAdm --add-host=host:192.168.0.1 <IMAGE_ID>
For example, after you change the image ID, the command should be-