Download dependency when setup-local-maven.sh is run.
Let user specify maven option through env variable MVN
7 files changed
tree: 84c67023fb953d135f82ddcaecb7c59c2833f2f4
  1. .gitignore
  2. Authors
  3. Documentation/
  4. README.md
  5. cassandra.titan
  6. cassandra.titan.nothrift
  7. cluster-mgmt/
  8. conf/
  9. demo-scripts/
  10. onos-embedded.sh
  11. pom.xml
  12. scripts/
  13. setup-eclipse.sh
  14. setup-local-maven.sh
  15. src/
  16. start-cassandra.sh
  17. start-onos-embedded.sh
  18. start-onos.sh
  19. start-rest.sh
  20. test-network/
  21. testbed-ctrl-add-ext.sh
  22. testbed-ctrl-none.sh
  23. titan/
  24. web/
README.md

ONOS

Open Networking Operating System

BELOW TO BE WRITTEN IN DETAIL

Building ONOS

  1. Install custom jars and dependencies (Only need to be run only once)

    $ ./setup-local-maven.sh

  2. Cleanly Build ONOS

    $ mvn clean $ mvn compile

Dependencies

  1. Zookeeper Download and install apache-zookeeper-3.4.5: http://zookeeper.apache.org/releases.html
  2. Cassandra Download and install apache-cassandra-1.2.2: http://cassandra.apache.org/download/

Running ONOS

  1. Start zookeeper

    $ cd (ZOOKEEPER-INSTALL-DIR)/bin

    $ ./zkServer.sh start

  2. Start cassandra

    $ ./start-cassandra.sh start

  3. Confirm cassandra is running

    $ ./start-cassandra.sh status

  4. Start ONOS instance

    $ cd (ONOS-INSTALL-DIR)/

    $ ./start-onos.sh start

  5. Start ONOS rest apis

    $ ./start-rest.sh start

Running ONOS with Cassandra embedded (Optional)

  1. Start Zookeeper

    $ cd (ZOOKEEPER-INSTALL-DIR)/bin

    $ ./zkServer.sh start

  2. Start ONOS and Cassandra embedded

    $ cd (ONOS-INSTAL_DIR)/

    $ ./start-onos-embedded.sh start

  3. Start ONOS rest apis

    $ ./start-rest.sh start

Running in offline mode (Optional)

Maven is used to build and run ONOS. By default, maven tries to reach the repositories. To suppress this behavior '-o' option should be given to mvn command.

To give additional option to mvn commands used in ONOS, use the MVN environment variable.

  • Example: Running in offline mode

    $ env MVN="mvn -o" ./start-onos.sh start