Installation

The Precognition solution has been fully packaged into a Docker container for your convenience. Follow the instructions below and you'll be up and testing in no time!

Pulling the docker image

The remainder of this chapter assumes you have Docker installed. If not, please follow the Docker get-started tutorial.

The precognition-poc image is hosted on the docker hub here and you can pull the latest version using the following command: docker pull ixje/precognition-poc

Note: if you receive a permission error that you can't pull the image from the repo then you'll have to login first using docker login. When logging in use your actual username (!) not the email address that you use for logging in on the web portal. For some reason you can't use that on the command line.

Starting the image

Use the following command:

docker run --detach --name precognition -p 20333-20336:20333-20336/tcp -p 30333-30336:30333-30336/tcp -p 40333:40333/tcp -p 8000:8000/tcp -p 8080:8080/tcp ixje/precognition-poc:latest

This runs a container name precognition and opens the necessary ports to be able to access all services if you like. If you're not interested in all services and just want to expose the web interface then use this:

docker run --detach --name precognition -p 8000:8000/tcp ixje/precognition-poc:latest

Assuming the initial command was used to start the container then the following services are exposed:

  • Main website on: http://127.0.0.1:8000/predictions/
  • Middleware api on: http://127.0.0.1:8080
  • Middleware NEO RPC server on: http://127.0.0.1:40333
  • NEO nodes 1-4 on: 127.0.0.1:20333-20336
  • NEO node RPC servers 1-4 on: 127.0.0.1:30333-30336

Docker access

If you want to login to the docker image use: docker exec -it precognition /bin/bash to get a shell

Navigate to /home/ to find all the sources.

Login

Open your browser and go to http://127.0.0.1:8000/predictions/and you should be greeted by an interface looking like the following.

results matching ""

    No results matching ""