diff options
author | blsaws <bs3131@att.com> | 2016-02-19 16:56:33 -0800 |
---|---|---|
committer | blsaws <bs3131@att.com> | 2016-02-19 16:56:33 -0800 |
commit | 4db35382301e5c78cf9cd527c882e5888b99eb56 (patch) | |
tree | a8145a7af061066a5972e11314f606bfe9f0c553 /components/congress/test-webapp/setup/install_congress_testserver_2.sh | |
parent | 25e123906677f766828c823e3594648b821f3120 (diff) |
Various improvements supporting automated testserver install.
JIRA: COPPER-4
Change-Id: Ib0ef2ef57d536b34791bec3551baa7f91e8d7b3d
Signed-off-by: blsaws <bs3131@att.com>
Diffstat (limited to 'components/congress/test-webapp/setup/install_congress_testserver_2.sh')
-rw-r--r-- | components/congress/test-webapp/setup/install_congress_testserver_2.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/components/congress/test-webapp/setup/install_congress_testserver_2.sh b/components/congress/test-webapp/setup/install_congress_testserver_2.sh index 01c9ce1..bf01b74 100644 --- a/components/congress/test-webapp/setup/install_congress_testserver_2.sh +++ b/components/congress/test-webapp/setup/install_congress_testserver_2.sh @@ -18,32 +18,30 @@ # # Prequisite: OPFNV install per https://wiki.opnfv.org/copper/academy/joid # On jumphost: -# - Congress installed through install_congress_1/2/3/4.sh -# - ~/env.sh created as part of Congress install (install_congress_3.sh) +# - Congress installed through install_congress_1/2.sh # How to use: # Install OPNFV per https://wiki.opnfv.org/copper/academy/joid # $ source ~/git/copper/tests/setup/install_congress_testserver_1.sh -# === Configure the test server === -# <code> +# Setup OpenStack environment variables per your OPNFV install +source ~/env.sh +source ~/admin-openrc.sh <<EOF +openstack +EOF +# Update the base server +set -x sudo apt-get update -sudo apt-get upgrade -y +sudo apt-get -y upgrade # Install pip -sudo apt-get install python-pip -y +sudo apt-get install -y python-pip # Install java -sudo apt-get install default-jre -y +sudo apt-get install -y default-jre # Install other dependencies -sudo apt-get install git gcc python-dev libxml2 libxslt1-dev libzip-dev php5-curl -y - -# Setup OpenStack environment variables per your OPNFV install -source ~/env.sh -source ~/admin-openrc.sh <<EOF -openstack -EOF +sudo apt-get install -y git gcc python-dev libxml2 libxslt1-dev libzip-dev php5-curl # Install and test OpenStack client mkdir ~/coppertest @@ -132,4 +130,6 @@ chmod 777 ~/coppertest/logs # Restart Apache sudo service apache2 restart -# </code> + +set +x + |