Some bugfixes in simple_deploy.sh 65/27365/1
authorNikolas Hermanns <nikolas.hermanns@ericsson.com>
Mon, 23 Jan 2017 10:07:22 +0000 (05:07 -0500)
committerNikolas Hermanns <nikolas.hermanns@ericsson.com>
Mon, 23 Jan 2017 10:07:22 +0000 (05:07 -0500)
Change-Id: I553beedc6195dd4714ba6cb388036da2bd7a355d
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
contrib/simple_deploy.sh

index f4b082a..6ad727d 100644 (file)
@@ -1,19 +1,19 @@
 #!/bin/bash
 set -e
-apex_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+apex_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../
 export CONFIG=$apex_home/build
 export LIB=$apex_home/lib
 export RESOURCES=$apex_home/.build/images/
 export PYTHONPATH=$PYTHONPATH:$apex_home/lib/python
-$apex_home/ci/dev_dep_check.sh
+$apex_home/ci/dev_dep_check.sh || true
+$apex_home/ci/clean.sh
 pushd $apex_home/build
 make clean
 make undercloud
 make overcloud-opendaylight
+popd
 pushd $apex_home/ci
-./clean.sh
-./dev_dep_check.sh
-out=/tmp/opnfv-deploy.out
-echo "All further output will be piped to $out"
-(nohup ./deploy.sh -v -n $apex_home/config/network/network_settings.yaml -d $apex_home/config/deploy/os-odl_l3-nofeature-noha.yaml &> $out &)
+echo "All further output will be piped to $PWD/nohup.out"
+(nohup ./deploy.sh -v -n $apex_home/config/network/network_settings.yaml -d $apex_home/config/deploy/os-odl_l3-nofeature-noha.yaml &)
+tail -f nohup.out
 popd