You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2010/04/11 01:01:33 UTC
svn commit: r932801 - in /tuscany/sca-cpp/trunk: ./ components/chat/
modules/http/ ubuntu/
Author: jsdelfino
Date: Sat Apr 10 23:01:32 2010
New Revision: 932801
URL: http://svn.apache.org/viewvc?rev=932801&view=rev
Log:
Minor build cleanup and fixes. Add a few scripts to help run automated builds on EC2 Ubuntu 9.10 images.
Added:
tuscany/sca-cpp/trunk/ubuntu/ubuntu-dev-image
- copied, changed from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
tuscany/sca-cpp/trunk/ubuntu/uec2-bin-image
- copied, changed from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
tuscany/sca-cpp/trunk/ubuntu/uec2-conf
- copied, changed from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
tuscany/sca-cpp/trunk/ubuntu/uec2-setenv
- copied, changed from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
tuscany/sca-cpp/trunk/ubuntu/uec2-start
- copied, changed from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
tuscany/sca-cpp/trunk/ubuntu/uec2-status
- copied, changed from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
tuscany/sca-cpp/trunk/ubuntu/uec2-stop
- copied, changed from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
Removed:
tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image
Modified:
tuscany/sca-cpp/trunk/INSTALL
tuscany/sca-cpp/trunk/components/chat/Makefile.am
tuscany/sca-cpp/trunk/configure.ac
tuscany/sca-cpp/trunk/modules/http/httpd-ssl-conf
tuscany/sca-cpp/trunk/ubuntu/ubuntu-bin-image
tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
Modified: tuscany/sca-cpp/trunk/INSTALL
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/INSTALL?rev=932801&r1=932800&r2=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/INSTALL (original)
+++ tuscany/sca-cpp/trunk/INSTALL Sat Apr 10 23:01:32 2010
@@ -43,7 +43,6 @@ doxygen-1.6.1
Install the following binaries:
curl-7-19-5
-privbind-1.1 (http://manpages.ubuntu.com/manpages/karmic/man1/privbind.1.html)
Then install the following development dependencies:
@@ -155,7 +154,7 @@ dependencies installed under $HOME:
--enable-webservice --with-axis2c=$HOME/axis2c-1.6.0-bin \
--with-libxml2=$HOME/libxml2-2.7.7-bin \
--enable-queue --with-qpidc=$HOME/qpidc-0.6-bin \
---enable-chat --with-libstrophe=$HOME/libstrophe \
+--enable-chat --with-libstrophe=$HOME/libstrophe-bin \
--with-vysper=$HOME/vysper-0.5 \
--enable-sqldb --with-pgsql=$HOME/postgresql-9.0-bin \
--enable-maintainer-mode
@@ -268,6 +267,10 @@ autoconf
./configure --prefix=$HOME/libstrophe-bin
make
make install
+cd ..
+mkdir -p libstrophe-bin/include
+cp libstrophe/*.h libstrophe-bin/include
+cp libstrophe/src/*.h libstrophe-bin/include
PostgreSQL:
wget http://wwwmaster.postgresql.org/download/mirrors-ftp/source/9.0alpha5/postgresql-9.0alpha5.tar.gz
Modified: tuscany/sca-cpp/trunk/components/chat/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/components/chat/Makefile.am?rev=932801&r1=932800&r2=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/components/chat/Makefile.am (original)
+++ tuscany/sca-cpp/trunk/components/chat/Makefile.am Sat Apr 10 23:01:32 2010
@@ -19,7 +19,7 @@ JAVAROOT = $(top_builddir)/components/ch
if WANT_CHAT
-INCLUDES = -I${LIBSTROPHE_INCLUDE} -I${LIBSTROPHE_INCLUDE}/src
+INCLUDES = -I${LIBSTROPHE_INCLUDE}
comp_SCRIPTS = vysper-start vysper-stop vysper-classpath
compdir=$(prefix)/components/chat
Modified: tuscany/sca-cpp/trunk/configure.ac
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/configure.ac?rev=932801&r1=932800&r2=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/configure.ac (original)
+++ tuscany/sca-cpp/trunk/configure.ac Sat Apr 10 23:01:32 2010
@@ -576,14 +576,14 @@ fi
# Configure path to Libstrophe includes and lib.
AC_MSG_CHECKING([for libstrophe])
-AC_ARG_WITH([libstrophe], [AC_HELP_STRING([--with-libstrophe=PATH], [path to libstrophe source [default=${HOME}/libstrophe]])], [
- LIBSTROPHE_INCLUDE="${withval}"
- LIBSTROPHE_LIB="${withval}"
+AC_ARG_WITH([libstrophe], [AC_HELP_STRING([--with-libstrophe=PATH], [path to libstrophe [default=${HOME}/libstrophe-bin]])], [
+ LIBSTROPHE_INCLUDE="${withval}/include"
+ LIBSTROPHE_LIB="${withval}/lib"
AC_MSG_RESULT("${withval}")
], [
- LIBSTROPHE_INCLUDE="${HOME}/libstrophe"
- LIBSTROPHE_LIB="${HOME}/libstrophe"
- AC_MSG_RESULT(${HOME}/libstrophe)
+ LIBSTROPHE_INCLUDE="${HOME}/libstrophe-bin/include"
+ LIBSTROPHE_LIB="${HOME}/libstrophe-bin/lib"
+ AC_MSG_RESULT(${HOME}/libstrophe-bin)
])
AC_SUBST(LIBSTROPHE_INCLUDE)
AC_SUBST(LIBSTROPHE_LIB)
Modified: tuscany/sca-cpp/trunk/modules/http/httpd-ssl-conf
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/http/httpd-ssl-conf?rev=932801&r1=932800&r2=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/http/httpd-ssl-conf (original)
+++ tuscany/sca-cpp/trunk/modules/http/httpd-ssl-conf Sat Apr 10 23:01:32 2010
@@ -23,6 +23,7 @@ root=`readlink -f $1`
host=$2
sslport=$3
htdocs=`readlink -f $4`
+httpd_prefix=`cat $here/httpd.prefix`
# Extract organization name from our CA certificate
org=`openssl x509 -noout -subject -nameopt multiline -in $root/conf/ca.crt | grep organizationName | awk -F "= " '{ print $2 }'`
@@ -87,7 +88,7 @@ Require valid-user
EOF
# Create test users for HTTP basic authentication
-htpasswd -bc $root/conf/httpd.passwd test test 2>/dev/null
-htpasswd -b $root/conf/httpd.passwd foo foo 2>/dev/null
-htpasswd -b $root/conf/httpd.passwd bar bar 2>/dev/null
+$httpd_prefix/bin/htpasswd -bc $root/conf/httpd.passwd test test 2>/dev/null
+$httpd_prefix/bin/htpasswd -b $root/conf/httpd.passwd foo foo 2>/dev/null
+$httpd_prefix/bin/htpasswd -b $root/conf/httpd.passwd bar bar 2>/dev/null
Modified: tuscany/sca-cpp/trunk/ubuntu/ubuntu-bin-image
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/ubuntu-bin-image?rev=932801&r1=932800&r2=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-bin-image (original)
+++ tuscany/sca-cpp/trunk/ubuntu/ubuntu-bin-image Sat Apr 10 23:01:32 2010
@@ -35,11 +35,11 @@ sudo apt-get -y install wget git-core au
if [ "$?" != "0" ]; then
exit $?
fi
-sudo apt-get -y install privbind
+sudo apt-get -y install libssl-dev
if [ "$?" != "0" ]; then
exit $?
fi
-sudo apt-get -y install libssl-dev
+sudo apt-get -y install libevent-dev
if [ "$?" != "0" ]; then
exit $?
fi
Copied: tuscany/sca-cpp/trunk/ubuntu/ubuntu-dev-image (from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/ubuntu-dev-image?p2=tuscany/sca-cpp/trunk/ubuntu/ubuntu-dev-image&p1=tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image&r1=932266&r2=932801&rev=932801&view=diff
==============================================================================
(empty)
Modified: tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install?rev=932801&r1=932800&r2=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-install (original)
+++ tuscany/sca-cpp/trunk/ubuntu/ubuntu-install Sat Apr 10 23:01:32 2010
@@ -30,12 +30,6 @@ if [ "$?" != "0" ]; then
exit $?
fi
-# Install the required binaries
-sudo apt-get -y install privbind
-if [ "$?" != "0" ]; then
- exit $?
-fi
-
# Build Apache HTTP server
sudo apt-get -y install libssl-dev
if [ "$?" != "0" ]; then
@@ -68,7 +62,7 @@ if [ "$?" != "0" ]; then
fi
cd $build
-# Build tinycdb
+# Build Tinycdb
wget http://www.corpit.ru/mjt/tinycdb/tinycdb_0.77.tar.gz
tar xzf tinycdb_0.77.tar.gz
cd tinycdb-0.77
@@ -181,6 +175,9 @@ if [ "$?" != "0" ]; then
exit $?
fi
cd $build
+mkdir -p $build/libstrophe-bin/include
+cp $build/libstrophe/*.h $build/libstrophe-bin/include
+cp $build/libstrophe/src/*.h $build/libstrophe-bin/include
# Install Apache Vysper
sudo apt-get -y install openjdk-6-jdk
@@ -210,12 +207,11 @@ fi
cd $build
# Build Tuscany SCA
-#git clone git://git.apache.org/tuscany-sca-cpp
-git clone ssh://delfinoj@10.1.1.58/home/delfinoj/SCAZone/Source/tuscany-sca-cpp/.git
+git clone git://git.apache.org/tuscany-sca-cpp
cd tuscany-sca-cpp
cp etc/git-exclude .git/info/exclude
./bootstrap
-./configure --prefix=$build/tuscany-sca-cpp-bin --with-curl=$build/curl-7.19.5-bin --with-apr=$build/httpd-2.2.15-bin --with-httpd=$build/httpd-2.2.15-bin --with-memcached=$build/memcached-1.4.4-bin --with-tinycdb=$build/tinycdb-0.77-bin --with-js-include=$build/tracemonkey-bin/include/js --with-js-lib=$build/tracemonkey-bin/lib --enable-threads --enable-python --enable-java --with-java=/usr/lib/jvm/java-6-openjdk --enable-webservice --with-libxml2=$build/libxml2-2.7.7-bin --with-axis2c=$build/axis2c-1.6.0-bin --enable-queue --with-qpidc=$build/qpidc-0.6-bin --enable-chat --with-libstrophe=$build/libstrophe --with-vysper=$build/vysper-0.5 --enable-sqldb --with-pgsql=$build/postgresql-9.0-bin
+./configure --prefix=$build/tuscany-sca-cpp-bin --with-curl=$build/curl-7.19.5-bin --with-apr=$build/httpd-2.2.15-bin --with-httpd=$build/httpd-2.2.15-bin --with-memcached=$build/memcached-1.4.4-bin --with-tinycdb=$build/tinycdb-0.77-bin --with-js-include=$build/tracemonkey-bin/include/js --with-js-lib=$build/tracemonkey-bin/lib --enable-threads --enable-python --enable-java --with-java=/usr/lib/jvm/java-6-openjdk --enable-webservice --with-libxml2=$build/libxml2-2.7.7-bin --with-axis2c=$build/axis2c-1.6.0-bin --enable-queue --with-qpidc=$build/qpidc-0.6-bin --enable-chat --with-libstrophe=$build/libstrophe-bin --with-vysper=$build/vysper-0.5 --enable-sqldb --with-pgsql=$build/postgresql-9.0-bin
make
make install
if [ "$?" != "0" ]; then
Copied: tuscany/sca-cpp/trunk/ubuntu/uec2-bin-image (from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/uec2-bin-image?p2=tuscany/sca-cpp/trunk/ubuntu/uec2-bin-image&p1=tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image&r1=932266&r2=932801&rev=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image (original)
+++ tuscany/sca-cpp/trunk/ubuntu/uec2-bin-image Sat Apr 10 23:01:32 2010
@@ -15,24 +15,9 @@
# specific language governing permissions and limitations
# under the License.
-# Install the required system tools and libraries, the runtime dependencies and
-# the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 image.
+# Install a Tuscany image on an EC2 instance
+host=$1
-# Display commands as they are executed
-set -x
-
-# First update the system
-sudo apt-get update
-
-# Create install directory
-sudo mkdir -p /mnt/tuscany
-sudo chown ubuntu /mnt/tuscany
-sudo chgrp ubuntu /mnt/tuscany
-cd /mnt/tuscany
-
-# Download and run install script
-sudo apt-get -y install wget
-wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
-chmod +x ./ubuntu-install
-./ubuntu-install
+# Download and execute Tuscany SCA install script
+ssh -i $HOME/.ec2/ec2-tuscany-keypair.pem ubuntu@$host "wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-bin-image; chmod 700 ./ubuntu-bin-image; ./ubuntu-bin-image"
Copied: tuscany/sca-cpp/trunk/ubuntu/uec2-conf (from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/uec2-conf?p2=tuscany/sca-cpp/trunk/ubuntu/uec2-conf&p1=tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image&r1=932266&r2=932801&rev=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image (original)
+++ tuscany/sca-cpp/trunk/ubuntu/uec2-conf Sat Apr 10 23:01:32 2010
@@ -15,24 +15,25 @@
# specific language governing permissions and limitations
# under the License.
-# Install the required system tools and libraries, the runtime dependencies and
-# the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 image.
+# Configure EC2 for use with Tuscany SCA
+here=`readlink -f $0`; here=`dirname $here`
+$here/uec2-setenv
# Display commands as they are executed
set -x
-# First update the system
-sudo apt-get update
-
-# Create install directory
-sudo mkdir -p /mnt/tuscany
-sudo chown ubuntu /mnt/tuscany
-sudo chgrp ubuntu /mnt/tuscany
-cd /mnt/tuscany
-
-# Download and run install script
-sudo apt-get -y install wget
-wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
-chmod +x ./ubuntu-install
-./ubuntu-install
+# Install EC2 tools
+# See https://help.ubuntu.com/community/EC2StartersGuide for more info
+sudo apt-get install ec2-api-tools
+
+# Create an EC2 SSH keypair if necessary
+if [ ! -f $HOME/.ec2/ec2-tuscany-keypair.pem ]; then
+ ec2-add-keypair ec2-tuscany-keypair --region us-west-1 > $HOME/.ec2/ec2-tuscany-keypair.pem
+ chmod 600 $HOME/.ec2/ec2-tuscany-keypair.pem
+fi
+
+# Authorize SSH, HTTP and HTTPS access to EC2 instances
+ec2-authorize default -p 22 --region us-west-1
+ec2-authorize default -p 80 --region us-west-1
+ec2-authorize default -p 443 --region us-west-1
Copied: tuscany/sca-cpp/trunk/ubuntu/uec2-setenv (from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/uec2-setenv?p2=tuscany/sca-cpp/trunk/ubuntu/uec2-setenv&p1=tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image&r1=932266&r2=932801&rev=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image (original)
+++ tuscany/sca-cpp/trunk/ubuntu/uec2-setenv Sat Apr 10 23:01:32 2010
@@ -15,24 +15,20 @@
# specific language governing permissions and limitations
# under the License.
-# Install the required system tools and libraries, the runtime dependencies and
-# the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 image.
+# Configure EC2 environment variables
+export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
-# Display commands as they are executed
-set -x
-
-# First update the system
-sudo apt-get update
-
-# Create install directory
-sudo mkdir -p /mnt/tuscany
-sudo chown ubuntu /mnt/tuscany
-sudo chgrp ubuntu /mnt/tuscany
-cd /mnt/tuscany
-
-# Download and run install script
-sudo apt-get -y install wget
-wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
-chmod +x ./ubuntu-install
-./ubuntu-install
+# Expect to find your EC2 private key and X.509 certificate in $HOME/.ec2
+key=`ls $HOME/.ec2/pk-*.pem`
+if [ "$key" = "" ]; then
+ echo "Couldn't find EC2 private key $HOME/.ec2/pk-*.pem"
+ exit 1
+fi
+cert=`ls $HOME/.ec2/cert-*.pem`
+if [ "$cert" = "" ]; then
+ echo "Couldn't find EC2 X.509 certificate $HOME/.ec2/pk-*.pem"
+ exit 1
+fi
+export EC2_PRIVATE_KEY=$key
+export EC2_CERT=$cert
Copied: tuscany/sca-cpp/trunk/ubuntu/uec2-start (from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/uec2-start?p2=tuscany/sca-cpp/trunk/ubuntu/uec2-start&p1=tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image&r1=932266&r2=932801&rev=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image (original)
+++ tuscany/sca-cpp/trunk/ubuntu/uec2-start Sat Apr 10 23:01:32 2010
@@ -15,24 +15,15 @@
# specific language governing permissions and limitations
# under the License.
-# Install the required system tools and libraries, the runtime dependencies and
-# the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 image.
+# Start an Ubuntu 9.10 EC2 instance for use with Tuscany
-# Display commands as they are executed
-set -x
+here=`readlink -f $0`; here=`dirname $here`
+$here/uec2-setenv
-# First update the system
-sudo apt-get update
+# Here are the AMIs you can use in the different EC2 regions:
+# US east 1 - ami-bb709dd2
+# US west 1 - ami-c32e7f86
+# EU west 1 - ami-2fc2e95b
-# Create install directory
-sudo mkdir -p /mnt/tuscany
-sudo chown ubuntu /mnt/tuscany
-sudo chgrp ubuntu /mnt/tuscany
-cd /mnt/tuscany
-
-# Download and run install script
-sudo apt-get -y install wget
-wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
-chmod +x ./ubuntu-install
-./ubuntu-install
+ec2-run-instances "ami-c32e7f86" -k ec2-tuscany-keypair --region us-west-1
Copied: tuscany/sca-cpp/trunk/ubuntu/uec2-status (from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/uec2-status?p2=tuscany/sca-cpp/trunk/ubuntu/uec2-status&p1=tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image&r1=932266&r2=932801&rev=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image (original)
+++ tuscany/sca-cpp/trunk/ubuntu/uec2-status Sat Apr 10 23:01:32 2010
@@ -15,24 +15,9 @@
# specific language governing permissions and limitations
# under the License.
-# Install the required system tools and libraries, the runtime dependencies and
-# the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 image.
+# Display the status of EC2 instances
+here=`readlink -f $0`; here=`dirname $here`
+$here/uec2-setenv
-# Display commands as they are executed
-set -x
-
-# First update the system
-sudo apt-get update
-
-# Create install directory
-sudo mkdir -p /mnt/tuscany
-sudo chown ubuntu /mnt/tuscany
-sudo chgrp ubuntu /mnt/tuscany
-cd /mnt/tuscany
-
-# Download and run install script
-sudo apt-get -y install wget
-wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
-chmod +x ./ubuntu-install
-./ubuntu-install
+ec2-describe-instances --region us-west-1
Copied: tuscany/sca-cpp/trunk/ubuntu/uec2-stop (from r932266, tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image)
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/ubuntu/uec2-stop?p2=tuscany/sca-cpp/trunk/ubuntu/uec2-stop&p1=tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image&r1=932266&r2=932801&rev=932801&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/ubuntu/ubuntu-source-image (original)
+++ tuscany/sca-cpp/trunk/ubuntu/uec2-stop Sat Apr 10 23:01:32 2010
@@ -15,24 +15,10 @@
# specific language governing permissions and limitations
# under the License.
-# Install the required system tools and libraries, the runtime dependencies and
-# the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 image.
+# Terminate an EC2 instance
+instance=$1
+here=`readlink -f $0`; here=`dirname $here`
+$here/uec2-setenv
-# Display commands as they are executed
-set -x
-
-# First update the system
-sudo apt-get update
-
-# Create install directory
-sudo mkdir -p /mnt/tuscany
-sudo chown ubuntu /mnt/tuscany
-sudo chgrp ubuntu /mnt/tuscany
-cd /mnt/tuscany
-
-# Download and run install script
-sudo apt-get -y install wget
-wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install
-chmod +x ./ubuntu-install
-./ubuntu-install
+ec2-terminate-instances $instance --region us-west-1