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.
E.g., for a local Debian server installed using Installation in VirtualBox
This assumes you have configured port forwarding in VirtualBox, mapping the guest SSH port (22) to host port 2224
Set up Docker's
apt
repositoryInstall the latest version of Docker
Initialize a Docker Swarm
Install
git
Download deployment scripts and configs
Run the PIARA installation script
The
piara.sh
script automates the installation process.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.
and
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
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:
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:
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:
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:
Set “Domain Name” to:
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.Setup SSH server(you must be root after the step 7):
install openssh-server
Check status to make sure that the server is “active”
Allow root to connect by adjusting sshd config:
It will replace
#PermitRootLogin prohibit-password
withPermitRootLogin yes
Disable GUI (you must be root):
Execute to disable GUI:
Optional. If you need to enable GUI later, you can do this with a command
Shutdown the guest Debian VM:
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:
After that you may follow normal setup steps, and then access PIARA Lite in your host machine browser:
Last updated