Build and run from Dockerfile
System Recommended Requirements
To run AI Verify, these are the recommended requirements to run AI Verify on a local computer.
Recommended Requirements | |
---|---|
Operating System | Ubuntu 22.04 (64-bit) |
Disk Space | At least 10GB (excluding Docker Desktop) |
Memory | At least 4GB |
** For running the API Connector feature on Docker, we recommend using Ubuntu Virtual Machine.
Software Required
Download and Run AI Verify
Note
If you have installed AI Verify before, it is recommended to start the container in a clean state. Run the following commands to clean up existing data and files:
-
Launch Docker Desktop.
-
Download
setup-aiverify.zip
from Github Release -
Unzip
setup-aiverify.zip
. -
The folder structure should look like this.
-
Open a terminal and change the directory to the folder location.
-
Execute the following command to build AI Verify.
By default, ai-verify-portal listens on port 3000. If you have changed the port or if you set up a different hostname other than 'localhost' for the app, update the value ofALLOWED_ORIGINS
by adding the build arguments behind thedocker-build.sh
. The command below is an example of how to do it:Replacebash docker-build.sh --build-arg=ALLOWED_ORIGINS="http://localhost:3000,http://localhost:4000,http://<hostname>:<port>"
<hostname>
with your actual hostname and<port>
with your actual port number. Ensure no spaces between commas. -
Wait for the setup to finish. Do observe the logs for errors.
-
Click on the "Images" tab in Docker Desktop, you should see
ai-verify
image in the list of Docker Images:
Warning
It will take a while to build the docker image as there are many dependencies and modules required for the environment.
Run AI Verify
- Start AI Verify using our start script. There might be a possibility that you might encounter this error if you are running this for the first time. If you do, execute the command again.
Error response from daemon: failed to mkdir /var/lib/docker/volumes/aiverify-user_plugins-volume/_data/accumulated-local-effect/widgets: mkdir /var/lib/docker/volumes/aiverify-user_plugins-volume/_data/accumulated-local-effect/widgets: file exists
- You will be prompted to enter
Username
andPassword
. !!! Warning If this is the first time running AI Verify on Docker after a new installation or if you didbash docker-reset.sh
prior tobash docker-start.sh
, the Username and Password will be set in MongoDB. Please remember them as you will be prompted to enter them whenever you run AI Verify on Docker. - Type http://localhost:3000 into your browser's address bar.
Warning
Upon initial start-up of the toolkit, pages might take some time to load.