PIARA Lite Deploy 18.x
Prerequisites
Debian 64-bit (amd64) latest (LTS) release.
To install Debian on your personal computer for local development or testing, a guide using VirtualBox is provided in the Installation in VirtualBox section.
Hardware Requirements:
CPU: 4 cores
Memory: 8 GB RAM
Disk Space: 40 GB
PIARA Lite License Key: Obtain a free license key from our website: piarainc.com
Steps
Connect to your Debian server via SSH
Open your terminal and replace
<SERVER_IP_ADDRESS>
with the actual IP address of your Debian server.
ssh root@<SERVER_IP_ADDRESS>
E.g., for a local Debian server installed using Installation in VirtualBox
ssh root@localhost -p 2224
This assumes you have configured port forwarding in VirtualBox, mapping the guest SSH port (22) to host port 2224
Set up Docker's
apt
repositoryapt-get update apt-get install ca-certificates curl install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc chmod a+r /etc/apt/keyrings/docker.asc echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ tee /etc/apt/sources.list.d/docker.list > /dev/null apt-get update
Install the latest version of Docker
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Initialize a Docker Swarm
docker swarm init --advertise-addr 127.0.0.1
Install
git
apt install git
Download deployment scripts and configs
git clone https://github.com/piara-lite/piara-lite-deploy.git piara
Run the PIARA installation script
The
piara.sh
script automates the installation process.cd piara/ chmod ug+x piara.sh ./piara.sh install
Follow the installation wizard
You will be prompted to enter the following information:
Your license key
Webapp domain name (Press Enter to keep default: piaralite.piaratestsandbox.net)
Identity Name (Enter any suitable text)
Marking Definition Statement (Enter any suitable text)
Copy the output information
The installation script will output the following information:
Webapp URL
Admin Username
Admin Password
Important: Store this information in a secure location
After the installation scripts complete, verify the service status by running the following commands
If the "REPLICAS" column shows "1/1" for each service, all services have successfully started.
docker stack services piara-back
and
docker stack services piara-front
Note: It may take up to 10 minutes for all services to start
Create
identity
andmarking-definition
objectsThis script configures the identity and marking definitions for your environment
back/add-identity.sh
Open your web browser to log in. Log in using the admin username and password displayed during the installation wizard
Scenario 1: Local Virtual Machine with Default Domain
If you installed PIARA Lite on a virtual machine on your local computer and used the default Webapp domain name during installation, open https://piaralite.piaratestsandbox.net in your web browser
Scenario 2: Local Virtual Machine with Custom Domain
If you installed PIARA Lite on a virtual machine on your local computer and entered a custom Webapp domain name, you need to add an entry to your local computer's
/etc/hosts
file.Add the following line to your
/etc/hosts
file, replacing<SERVER_IP_ADDRESS>
with the IP address of your virtual machine:
<SERVER_IP_ADDRESS> yourcustomdomain.com
Then, open your custom domain (e.g.,
http://yourcustomdomain.com
) in your web browser.
Scenario 3: Cloud Virtual Machine with Default Domain
If you installed PIARA Lite on a virtual machine in the cloud and used the default Webapp domain name during installation, you need to add an entry to your local computer's
/etc/hosts
fileAdd the following line to your
/etc/hosts
file, replacing<SERVER_IP_ADDRESS>
with the public IP address of your cloud virtual machine:
<SERVER_IP_ADDRESS> piaralite.piaratestsandbox.net
Then, open https://piaralite.piaratestsandbox.net in your web browser.
Important: You may need to configure your cloud provider's firewall to allow access to the server
Scenario 4: Cloud Virtual Machine with Custom Domain
If you installed PIARA Lite on a virtual machine in the cloud and entered a custom Webapp domain name, you need to add an entry to your local computer's
/etc/hosts
file.Add the following line to your
/etc/hosts
file, replacing<SERVER_IP_ADDRESS>
with the public IP address of your cloud virtual machine:
<SERVER_IP_ADDRESS> yourcustomdomain.com
Then, open your custom domain (e.g.,
http://yourcustomdomain.com
) in your web browser.Important: You may need to configure your cloud provider's firewall to allow access to the server.
Installation in VirtualBox
Your computer must have enough resources to allocate the following to a guest Virtual Machine:
4 CPU, 8 RAM, 40GB disk space.
Note. Remember, the host still needs resources. It should have at least double that amount.
Download and install latest VirtualBox for Windows: https://www.virtualbox.org/wiki/Downloads
Download latest stable (LTS) Debian image (amd64): https://www.debian.org/CD/http-ftp/#stable
Create new VM in VirtualBox:
Chose a “Name” for the new virtual machine
Keep “Folder” unchanged(unless you want a different location)
Find the Debian ISO image that you just downloaded in step #2.
Do NOT “Skip Unattended Install”
Pick “Username” and “Password”. (default username is “vboxuser”, password is “changeme”)
Set “Hostname” to:
piaralite
Set “Domain Name” to:
piaratestsandbox.net
Minimum system requirements:
Processors: 4 CPU
Base Memory: 8 GB RAM (same as 8192 MB)
Virtual Hard disk: 40 GB
After Debian is installed, login to the guest Debian VM with the credentials from the step 4
Open command line terminal:
Switch to
root
. Password for theroot
is the same as in step 4.su -
Setup SSH server(you must be root after the step 7):
install openssh-server
apt install openssh-server
Check status to make sure that the server is “active”
systemctl --no-pager status ssh
Allow root to connect by adjusting sshd config:
sed -i "/PermitRootLogin/c\PermitRootLogin yes" /etc/ssh/sshd_config
It will replace
#PermitRootLogin prohibit-password
withPermitRootLogin yes
Disable GUI (you must be root):
Execute to disable GUI:
systemctl set-default multi-user.target
Optional. If you need to enable GUI later, you can do this with a command
systemctl set-default graphical.target
Shutdown the guest Debian VM:
shutdown now
In VirtualBox, enable port forwarding for the Debian VM for SSH access from your host machine, plus PIARA.
First, choose the Debian VM, then open “Settings” >> “Network” >> “Advanced” section. This will show additional network adapter options. Then, we click on “Port Forwarding” button.
Click on the plus '+' icon and add the following:
NameProtocolHost IPHost PortGuest IPGuest PortPIARA
TCP
443
443
SSH
TCP
2224
22
Start the guest Debian VM.
To connect to the guest Debian via SSH use:
Username: root
Password: the user’s password you picked in step 3.e
IP: localhost
Port: 2224
Example command for the terminal on your host machine:
ssh root@localhost -p 2224
After that you may follow normal setup steps, and then access PIARA Lite in your host machine browser:
Last updated