Cloud Provider Ranker
  • Introduction
  • Building from source
  • Running the Cloud Provider Ranker
  • Service Configuration
  • Ranking Algorithm
  • Service Reference Card
  • API
  • Ranking JSON request format
  • Ranking JSON response format
Powered by GitBook
On this page
  • Installation
  • Launch the server
  • Testing the server
  • Running a Docker container
  • Run container from Docker Hub

Running the Cloud Provider Ranker

PreviousBuilding from sourceNextService Configuration

Last updated 5 years ago

Installation

The Cloud Provider Ranker Service is a Spring Boot Application. It consists of a single .jar file containing a Main class which implements the main method.

Launch the server

The Cloud Provider Ranker can be executed by:

java -jar [YOUR_PREFERRED_PATH]/CloudProviderRanker.jar

The service listens on the default port 8080.

Testing the server

To test the server (which responds at the address http://<IP_WHERE_YOU_DEPLOYED_IT>:8080/rank) at the client side just use cURL:

curl -H 'Content-Type: application/json' -X POST http://<IP_WHERE_YOU_DEPLOYED_IT>:8080/rank -d@cpr-test.json

The content of the file cpr-test.json is described in the .

The repository contains sample files which can be used.

Running a Docker container

To run the container:

docker run -d --name CloudProviderRanker -p 8080:8080 <IMAGE_NAME>

Run container from Docker Hub

The pre-built container can also be pulled from the central Docker Hub:

docker run -d --name CloudProviderRanker -p 8080:8080 indigodatacloud/cloudproviderranker
Ranking JSON request format