Windows Install - Core and Packages API Installation
From VersaVision Support
OVERVIEW
- VersaVision is an On-Premise Web Based Application. Each part of the application is a Package that runs independently.
- To Load and Run Packages, Docker must be configured correctly and the Core application must be installed.
REQUIREMENTS
- Log In: Installer/User must have a Windows Log In with Administrator permissions. This Account must remain active after the installation.
- Access: When using a VM, Installer/User must have Remote PC Access to the Windows instance.
- Internet Access: Server must have full internet access. Access can be removed after the installation is complete.
- Pre-Requisites I: User must have downloaded the Core & Packages API files and copied them to the C:\VersaVision\Packages folder.
- Pre-Requisites II: Docker must be installed before attempting to install the Core Application and Packages API.
- NOTE: The instructions below will work for Windows Server 2022, Windows Pro 10 & Windows Pro 11.
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.
- 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.
INSTRUCTIONS
- Copy the Code/Text from the cell below.
- wsl --list --verbose
- Copy the Code/Text from the cell below.
- wsl
- Copy the Code/Text from the cell below.
- sudo docker run --rm hello-world
- Copy the Code/Text from the cell below.
- sudo docker swarm init
- Copy the Code/Text from the cell below.
- cd /mnt/c/VersaVision/Packages
- Copy the Code/Text from the cell below.
- sudo docker image load -i 'packages-api!1.1.2.tar'
- 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
- Copy the Code/Text from the cell below.
- curl -F 'file=@core-package!1.1.2.1.package' http://localhost:9998/api/packages/upload
- Once the Core Package has been loaded, copy the Code/Text from the cell below.
- sudo docker container rm -f initial-packages-api
- Return to the Software Install Main page and continue with the next Guide/Step.