Changes between Version 13 and Version 14 of deploy-am

Show
Ignore:
Timestamp:
05/03/11 11:55:46 (8 years ago)
Author:
anirban (IP: 152.54.6.213)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • deploy-am

    v13 v14  
    99 
    1010=== Setup Eucalyptus with NEuca === 
    11 Follow instructions for setting up Eucalyptus with NEuca patches at [wiki:Eucalyptus-2.0-Setup Eucalyptus 2.x setup with NEuca]. Follow instructions at [wiki:NEuca-in-orca] to use NEuca with ORCA. For an overview of NEuca functionality, read [wiki:NEuca-overview NEuca overview] 
     11Follow instructions for setting up Eucalyptus with NEuca patches at [wiki:Eucalyptus-2.0-Setup Eucalyptus 2.x setup with NEuca]. Follow instructions at [wiki:NEuca-in-orca] to use NEuca with ORCA. For an overview of NEuca functionality, read [wiki:NEuca-overview NEuca overview]. 
    1212 
    1313=== Prepare ORCA_HOME === 
    1414 
    15 Set $ORCA_HOME. Change ownership of this directory to the user on whose behalf the euca site authority is going to run. 
    16 {{{ $ export ORCA_HOME=/opt/orca }}} 
     15Set $ORCA_HOME. Use 'sudo' when needed. Change ownership of this directory to the user on whose behalf the euca site authority is going to run. 'geni-orca' is the user and 'nonrenci' is the group in this example. 
     16{{{ 
     17$ mkdir /opt/orca  
     18$ export ORCA_HOME=/opt/orca  
     19$ cd $ORCA_HOME 
     20$ chown -R geni-orca:nonrenci . 
     21}}} 
    1722 
    18 Make directories for storing Eucalyptus credentials, ORCA configuration files, Euca site resource description files. 
    19 {{{  
     23Make directories for storing Eucalyptus credentials, ORCA actors' runtime credentials, ORCA configuration files and Euca site resource description files. 
     24{{{ 
     25$ mkdir $ORCA_HOME/ec2  
    2026$ mkdir $ORCA_HOME/runtime 
    2127$ mkdir $ORCA_HOME/config 
     
    2329}}} 
    2430 
     31=== Eucalyptus credentials === 
     32Unzip euca credentials zip file into $ORCA_HOME/ec2 . Assume that the downloaded euca credentials zip file is in the home directory. 
     33{{{ 
     34$ cd $ORCA_HOME/ec2 
     35$ cp $HOME/euca2-orca-x509.zip . 
     36$ unzip euca2-orca-x509.zip  
     37}}} 
     38Comment out the first line in $ORCA_HOME/ec2/eucarc. 
     39{{{ 
     40#EUCA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE})) 
     41}}} 
     42 
    2543=== Set up tomcat === 
     44{{{ 
     45$ cd $ORCA_HOME 
     46$ wget https://geni-orca.renci.org/svn/software/tomcat.tar.gz 
     47$ tar zxvf tomcat.tar.gz 
     48$ cd $ORCA_HOME/tomcat 
     49}}} 
     50Edit start.sh and stop.sh to point to correct paths for ORCA_HOME and CATALINA_HOME. Example start.sh 
     51{{{ 
     52#!/bin/bash 
    2653 
    27 wget tomcat.tar.gz 
    28 edit start.sh and stop.sh 
     54# customize this to your setup 
     55export ORCA_HOME=/opt/orca 
     56 
     57# if you are using non-standard java, uncomment and change this 
     58# export JAVA_HOME=/opt/java/jdk-1.6.20 
     59export JAVA_HOME=/opt/java/jdk1.6.0_23 
     60export PATH=$JAVA_HOME/bin:$PATH 
     61 
     62export LD_LIBRARY_PATH=/usr/local/lib 
     63 
     64# assuming tomcat is under $ORCA_HOME 
     65export CATALINA_HOME=$ORCA_HOME/tomcat 
     66 
     67# if you want to enable debugging, uncomment this line and comment out the following one. Default debug port is 11000 
     68#declare -x CATALINA_OPTS="-ea -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=11000 -Xmx1024m" 
     69declare -x CATALINA_OPTS="-Xmx1024m" 
     70 
     71export ANT_HOME= 
     72rm $CATALINA_HOME/logs/* 
     73$CATALINA_HOME/bin/catalina.sh start 
     74}}} 
     75 
     76Example of stop.sh. 
     77{{{ 
     78#!/bin/bash 
     79 
     80# customize this to your install 
     81export ORCA_HOME=/opt/orca 
     82 
     83# uncomment and customize this if you are using non-standard Java install 
     84export JAVA_HOME=/opt/java/jdk1.6.0_23 
     85export PATH=$JAVA_HOME/bin:$PATH 
     86 
     87# assuming tomcat lives under $ORCA_HOME 
     88export CATALINA_HOME=$ORCA_HOME/tomcat 
     89 
     90$CATALINA_HOME/bin/shutdown.sh 
     91for x in `ps -ef | grep "org.apache.catalina.startup.Bootstrap" | awk '{print $2}'`; do kill -9 $x; done 
     92}}} 
    2993 
    3094=== Generate Resource Representation for the Eucalyptus Site ===