Actions

Linux Install - Docker and Core

From VersaVision Support

Revision as of 13:43, 3 April 2024 by VVSupportAdmin (talk | contribs) (Created page with "<BR> <span style="box-shadow:2px 2px 15px #90A4AE; border-radius:5px; padding:20px">250px|link=Linux Install - Docker and Core</span> <div style="text-align: center;"><span style="color:#0054a6; font-size:150%;"><u>'''OVERVIEW'''</u></span></div> <BR> <div style="box-shadow:2px 2px 15px #90A4AE; border-radius:5px; padding:10px"> : :Before installing Docker and VersaVision Core on the Linux (Ubuntu) Computer/Server/VM, there are some file...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Linux-Dock-Core-Main.png

OVERVIEW


Before installing Docker and VersaVision Core on the Linux (Ubuntu) Computer/Server/VM, there are some files that need to be uploaded.
The user will need to get 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 uploading the files via an SSH Client, feel free to use a different SSH Client or upload the files using the Terminal if you have physical access.


REQUIREMENTS


Computer/Server/VM must be loaded with Ubuntu Server 22.04 LTS.
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 Container, Core and Docker files must already be downloaded and uploaded to the Linux (Ubuntu) Computer/Server/VM.


TOOL TIP


There is specific Code that needs to be entered in on the steps below. The Paste function in Power Shell and WSL 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.


INSTRUCTIONS


Return or Re-Open the Terminal for the Ubuntu Computer/Server/VM.
Ubuntu-Pre6.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.
Ubuntu-Dock1.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.
Ubuntu-Dock2.png


You will be prompted for the password.
Enter the Linux (Ubuntu) password - press the Enter key.
The password you type in will not show in the Terminal.
Ubuntu-Dock3.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.
Ubuntu-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.
Ubuntu-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.
Ubuntu-Dock6.png


Copy the Code/Text from the cell below.
sudo dpkg -i containerd.io_1.6.24-1_amd64.deb


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


Copy the Code/Text from the cell below.
sudo dpkg -i docker-ce-cli_24.0.6-1~ubuntu.22.04~jammy_amd64.deb


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


Copy the Code/Text from the cell below.
sudo dpkg -i docker-ce_24.0.6-1~ubuntu.22.04~jammy_amd64.deb


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


Copy the Code/Text from the cell below.
sudo usermod -aG docker $USER


Paste the Code/Text into the Terminal.
Press the Enter key on your keyboard after the Code/Text is pasted in.
Ubuntu-Dock10.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.
Ubuntu-Dock11.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.
Ubuntu-Dock12.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.
Ubuntu-Dock13.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.
Ubuntu-Dock14.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.
Ubuntu-Dock15.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.


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.
Ubuntu-Dock16.png


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

VC Footer.png
Follow Us On LinkedIn View our Blog