commit | 93bf6056374dbb6156091c2df7c1e78c2697603b | [log] [tgz] |
---|---|---|
author | Masayoshi Kobayashi <masayoshi@onlab.us> | Fri Jul 12 13:06:56 2013 -0700 |
committer | Masayoshi Kobayashi <masayoshi@onlab.us> | Fri Jul 12 13:06:56 2013 -0700 |
tree | 814808925b79d5e30cca9c3dddc6c98ae0d4f8fe | |
parent | 3e69d7d9798b92e6a7e3d5c95eb5858842d773da [diff] |
fixed start-onos.sh to be able to run it from any dir
Open Networking Operating System
BELOW TO BE WRITTEN IN DETAIL
Install custom jars and dependencies (Only need to be run only once)
$ ./setup-local-maven.sh
Cleanly Build ONOS
$ mvn clean $ mvn compile
NOTE: installing maven for the first time may switch java version from 1.7 to 1.6 causing cassandra to not run
Start zookeeper
$ cd (ONOS-INSTALL-DIR)/
$ ./start-zk.sh
Start cassandra
$ cd (ONOS-INSTALL-DIR)/
$ ./start-cassandra.sh start
Confirm cassandra is running
$ ./start-cassandra.sh status
Start ONOS instance
$ cd (ONOS-INSTALL-DIR)/
$ ./start-onos.sh start
Start ONOS rest apis
$ ./start-rest.sh start
Start Zookeeper
$ cd (ONOS-INSTALL-DIR)/
$ ./zkServer.sh start
Start ONOS and Cassandra embedded
$ cd (ONOS-INSTALL_DIR)/
$ ./start-onos-embedded.sh start
Start ONOS rest apis
$ ./start-rest.sh start
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