Public | Automated Build

Last pushed: 3 years ago
Short Description
Container used in a docker-compose file to form a ONOS cluster
Full Description

ONOS Form Cluster Docker Image

This contains the files to construct a docker image around the onos-form-cluster utility script. The docker entry point looks for an
environment variable (CLUSTER_HOSTS) and waits for each of the ONOS instances specified to respond to their REST interface (http://host:8181/onos/v1/cluster). After all hosts have responded to their REST interface the script then pushes the appropriate cluster configuration to each ONOS instance.

This docker image is meant for usage in a docker-compose file so that the compose can form a cluster after all the ONOS instance are specified.


It is important that not only the CLUSTER_HOSTS environment variable is set, but also that each ONOS instance is also linked from this container as well (see docker-compose example below).

Docker Compose

A sample docker-compose entry for this container

  image: ciena/onos-form-cluster
  container_name: form_cluster
    CLUSTER_HOSTS: controller_1,controller_2,controller_3
    - controller_1
    - controller_2
    - controller_3
  labels: onos-form-cluster
      org.onlabs.cord.type: utility
  restart: never
Docker Pull Command
Source Repository