Actions

Red Hat Install - Docker and Core Installation

From VersaVision Support


Red-Dock-Main.png

OVERVIEW


The VersaVision software runs inside of a Docker environment.
Each Application runs inside of a specific Container on Docker.
In order to get the system running, we will need to install Docker and the Core Package on the Red Hat Computer/Server/VM
The user will need the IP Address of the Computer/Server/VM.
Verify with your IT Department that the IP Address assigned is either a Static IP or DHCP Reserved Address.
The guide below will explain how to install Docker and the Core Software Package.


REQUIREMENTS


Computer/Server/VM must be loaded with Red Hat 8 or 9.
IT must assign an Administrator level user name and password for VersaCall Installation/User.
Internet Access Required for the Installation process. Access can be removed after installation.
SSH Client is required if the User/Installer does not have physical access to the server.
Server/Computer/VM must have a Static IP Address or a DHCP Reserved IP Address.
The Core and Docker files must already be downloaded and uploaded to the Red Hat Computer/Server/VM.


TOOL TIP


There is specific Code that needs to be entered in on the steps below. The Paste function in Terminal works differently from Windows.
To Copy - select the Code/Text in the cell so that it is highlighted. Press the Control Key & C Key on your keyboard at the same time. Alternatively, you can right click on the highlighted text and select Copy from the pop-up menu.
To Paste - Right Click on the Cursor next to the User Prompt. The copied text will fill in automatically.



Return to Software Installation Main Page Pre-Requisites Installation Guide Initialize VersaVision Guide Package Upload and Install Guide

INSTRUCTIONS


Return or Re-Open the Terminal for the Red Hat Computer/Server/VM.
Red-Dock1.png


Copy the Code/Text from the cell below.
cat /proc/sys/fs/inotify/max_user_instances


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock2.png


Copy the Code/Text from the cell below.
sudo sysctl fs.inotify.max_user_instances=524288


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock3.png


You maybe asked for your Red Hat password.
Type in the password on your keyboard, nothing will show on the Terminal.


Copy the Code/Text from the cell below.
sudo sysctl -p


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock4.png


Copy the Code/Text from the cell below.
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock5.png


Copy the Code/Text from the cell below.
sudo sysctl -p


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock6.png


Copy the Code/Text from the cell below.
sudo yum update


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock7.png


Depending on how the system was setup/created, there can be many updates.
In our example we are showing a system that was not previously updated.
System will get a number of updates available and ask if it is ok to continue.
Red-Dock8.png


Press the Y key on your keyboard and select the Enter key.
Red-Dock9.png


You could possibly be asked to continue a total of 3 times.
Press the Y key on your keyboard and select the Enter key for each prompt.
Red-Dock10.png
Red-Dock11.png


Copy the Code/Text from the cell below.
sudo yum install yum-utils -y


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock12.png


Copy the Code/Text from the cell below.
sudo yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock13.png


Copy the Code/Text from the cell below.
sudo yum install containerd.io -y


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock14.png


Copy the Code/Text from the cell below.
sudo yum install --allowerasing docker-ce


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock15.png


Sytem will ask if it is ok to continue.
Press the Y key on your keyboard and select the Enter key.
Red-Dock16.png


Copy the Code/Text from the cell below.
sudo systemctl start docker


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock17.png


Copy the Code/Text from the cell below.
sudo systemctl enable docker


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock18.png


Copy the Code/Text from the cell below.
sudo docker swarm init


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock19.png


Copy the Code/Text from the cell below.
sudo docker image load -i 'packages-api!1.1.2.tar'


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock20.png


Copy the Code/Text from the cell below.
sudo docker run -d --name initial-packages-api -p 9998:80 --mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock --mount type=volume,source=packages-api,destination=/var/lib/packages-api -e INITIAL_DEPLOYMENT_MODE=true packages-api:1.1.2


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock21.png


Copy the Code/Text from the cell below.
sudo curl -F 'file=@core-package!1.1.2.1.package' http://localhost:9998/api/packages/upload


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock22.png


This install will take 1 to 5 minutes to finish - do not enter any other commands until it is completed.
You will see the user prompt return to the screen once the install is done.
Red-Dock23.png


Copy the Code/Text from the cell below.
sudo docker container rm -f initial-packages-api


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Red-Dock24.png


Return to the Software Install Main page and continue with the next Guide/Step.



Return to Software Installation Main Page Pre-Requisites Installation Guide Initialize VersaVision Guide Package Upload and Install Guide

VC Footer.png
Follow Us On LinkedIn View our Blog