tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 1 | # Environmental defaults for ONOS build, package and test |
| 2 | |
| 3 | # Root of the ONOS source tree |
Thomas Vachuska | 045c01d | 2014-12-04 00:18:06 -0800 | [diff] [blame] | 4 | export ONOS_ROOT=${ONOS_ROOT:-~/onos} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 5 | |
| 6 | # M2 repository and Karaf gold bits |
| 7 | export M2_REPO=${M2_REPO:-~/.m2/repository} |
Jon Hall | b84df5d | 2017-01-31 11:19:48 -0800 | [diff] [blame] | 8 | export KARAF_VERSION=${KARAF_VERSION:-3.0.8} |
Thomas Vachuska | b105fd4 | 2014-10-20 09:02:27 -0700 | [diff] [blame] | 9 | export KARAF_ZIP=${KARAF_ZIP:-~/Downloads/apache-karaf-$KARAF_VERSION.zip} |
| 10 | export KARAF_TAR=${KARAF_TAR:-~/Downloads/apache-karaf-$KARAF_VERSION.tar.gz} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 11 | export KARAF_DIST=$(basename $KARAF_ZIP .zip) |
| 12 | |
Pavlin Radoslavov | aa90bb5 | 2014-10-15 16:28:32 -0700 | [diff] [blame] | 13 | # Add ONOS-specific directories to the exectable PATH |
Thomas Vachuska | 4702a26 | 2016-03-02 15:31:52 -0800 | [diff] [blame] | 14 | export PATH="$ONOS_ROOT/tools/dev/bin:$ONOS_ROOT/tools/test/bin:$PATH" |
| 15 | export PATH="$ONOS_ROOT/tools/build:$PATH" |
Pavlin Radoslavov | aa90bb5 | 2014-10-15 16:28:32 -0700 | [diff] [blame] | 16 | |
Thomas Vachuska | 6066dff | 2016-10-26 13:57:36 -0700 | [diff] [blame] | 17 | # Fallback build number us derived from from the user name |
| 18 | export BUILD_NUMBER=${BUILD_NUMBER:-$(id -un)} |
tom | 61e317d | 2014-10-08 11:18:02 -0700 | [diff] [blame] | 19 | |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 20 | # ONOS Version and onos.tar.gz staging environment |
Ray Milkey | bca9049 | 2018-04-13 12:47:31 -0700 | [diff] [blame^] | 21 | export ONOS_POM_VERSION="1.14.0-SNAPSHOT" |
| 22 | export ONOS_VERSION=${ONOS_VERSION:-1.14.0.$BUILD_NUMBER} |
Thomas Vachuska | 734b749 | 2015-03-11 20:42:07 -0700 | [diff] [blame] | 23 | |
Luca Prete | f2049d1 | 2015-08-01 14:48:01 -0700 | [diff] [blame] | 24 | # ONOS production bits (onos.tar.gz, onos.zip, onos.deb, onos.rpm) staging environment |
tom | 61e317d | 2014-10-08 11:18:02 -0700 | [diff] [blame] | 25 | export ONOS_BITS=onos-${ONOS_VERSION%~*} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 26 | export ONOS_STAGE_ROOT=${ONOS_STAGE_ROOT:-/tmp} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 27 | export ONOS_STAGE=$ONOS_STAGE_ROOT/$ONOS_BITS |
Luca Prete | e618375 | 2015-07-29 01:55:50 -0700 | [diff] [blame] | 28 | export ONOS_DEB_ROOT=$ONOS_STAGE_ROOT/deb |
| 29 | export ONOS_DEB=$ONOS_STAGE.deb |
Luca Prete | f2049d1 | 2015-08-01 14:48:01 -0700 | [diff] [blame] | 30 | export ONOS_RPM_ROOT=$ONOS_STAGE_ROOT/rpm |
| 31 | export ONOS_RPM=$ONOS_STAGE.rpm |
| 32 | export ONOS_RPM_VERSION=${ONOS_POM_VERSION//-/.} |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 33 | export ONOS_TAR=$ONOS_STAGE.tar.gz |
Thomas Vachuska | 045c01d | 2014-12-04 00:18:06 -0800 | [diff] [blame] | 34 | export ONOS_ZIP=$ONOS_STAGE.zip |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 35 | |
Yuta HIGUCHI | 5b4d47d | 2016-12-07 20:25:03 -0800 | [diff] [blame] | 36 | # If the BUCK-built bits are newer than the Maven-built bits, use the former. |
| 37 | BUCK_TAR=$ONOS_ROOT/buck-out/gen/tools/package/onos-package/onos.tar.gz |
Yuta HIGUCHI | d412ef7 | 2017-10-27 18:15:18 -0700 | [diff] [blame] | 38 | if [ -f $BUCK_TAR ] && [ $BUCK_TAR -nt $ONOS_TAR ]; then |
Yuta HIGUCHI | 5b4d47d | 2016-12-07 20:25:03 -0800 | [diff] [blame] | 39 | rm -f $ONOS_TAR >/dev/null; ln -s $BUCK_TAR $ONOS_TAR |
| 40 | fi |
| 41 | |
Thomas Vachuska | 734b749 | 2015-03-11 20:42:07 -0700 | [diff] [blame] | 42 | # ONOS test bits (onos-test.tar.gz) staging environment |
| 43 | export ONOS_TEST_BITS=onos-test-${ONOS_VERSION%~*} |
Thomas Vachuska | 7f2a356 | 2018-02-28 10:02:16 -0800 | [diff] [blame] | 44 | export ONOS_TEST_TAR=$ONOS_STAGE_ROOT/$ONOS_TEST_BITS.tar.gz |
| 45 | |
| 46 | # ONOS admin bits (onos-admin.tar.gz) staging environment |
| 47 | export ONOS_ADMIN_BITS=onos-admin-${ONOS_VERSION%~*} |
| 48 | export ONOS_ADMIN_TAR=$ONOS_STAGE_ROOT/$ONOS_ADMIN_BITS.tar.gz |
Thomas Vachuska | 734b749 | 2015-03-11 20:42:07 -0700 | [diff] [blame] | 49 | |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 50 | export ONOS_INSTALL_DIR="/opt/onos" # Installation directory on remote |
Thomas Vachuska | 7f2a356 | 2018-02-28 10:02:16 -0800 | [diff] [blame] | 51 | export OCI="${OCI:-localhost}" # ONOS Controller Instance |
Jonathan Hart | 716cb21 | 2014-11-12 00:33:25 -0800 | [diff] [blame] | 52 | export ONOS_USER="${ONOS_USER:-sdn}" # ONOS user on remote system |
Charles M.C. Chan | dfbc6d8 | 2014-12-18 23:11:36 +0800 | [diff] [blame] | 53 | export ONOS_GROUP="${ONOS_GROUP:-sdn}" # ONOS group on remote system |
tom | 5c25570 | 2014-09-18 06:57:39 -0700 | [diff] [blame] | 54 | export ONOS_PWD="rocks" # ONOS user password on remote system |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 55 | export ONOS_SCENARIOS=$ONOS_ROOT/tools/test/scenarios |
Brian O'Connor | 740e98c | 2017-06-29 17:07:17 -0700 | [diff] [blame] | 56 | |
| 57 | export ONOS_CLUSTER_KEY_FILE="/tmp/onos.jks" |
Ray Milkey | 7e28519 | 2017-07-20 15:45:28 -0700 | [diff] [blame] | 58 | export ONOS_CLUSTER_KEY_PASSWORD="changeit" |