From de984367f1d64f968c950803a074bb54ff157ced Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Wed, 17 Mar 2010 08:12:44 +0000 Subject: Minor fixes to the INSTALL instructions. Added two more automated install scripts to help deploy build+test images. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@924189 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/ubuntu/ubuntu-bin-image | 70 +++++++++++++++ sca-cpp/trunk/ubuntu/ubuntu-install | 144 +++++++++++++++++++++++++++++++ sca-cpp/trunk/ubuntu/ubuntu-source-image | 37 ++++++++ 3 files changed, 251 insertions(+) create mode 100755 sca-cpp/trunk/ubuntu/ubuntu-bin-image create mode 100755 sca-cpp/trunk/ubuntu/ubuntu-install create mode 100755 sca-cpp/trunk/ubuntu/ubuntu-source-image (limited to 'sca-cpp/trunk/ubuntu') diff --git a/sca-cpp/trunk/ubuntu/ubuntu-bin-image b/sca-cpp/trunk/ubuntu/ubuntu-bin-image new file mode 100755 index 0000000000..3e8546a275 --- /dev/null +++ b/sca-cpp/trunk/ubuntu/ubuntu-bin-image @@ -0,0 +1,70 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# 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 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 + +# Install system tools and libraries +sudo apt-get -y install git-core autoconf automake g++ libtool +if [ "$?" != "0" ]; then + exit $? +fi +sudo apt-get -y install curl memcached privbind +if [ "$?" != "0" ]; then + exit $? +fi +sudo apt-get -y install libssl-dev +if [ "$?" != "0" ]; then + exit $? +fi +sudo apt-get -y install pkg-config libxml2-dev +if [ "$?" != "0" ]; then + exit $? +fi +sudo apt-get -y install libboost-dev libboost-program-options-dev libboost-filesystem-dev uuid-dev +if [ "$?" != "0" ]; then + exit $? +fi +sudo apt-get -y install check +if [ "$?" != "0" ]; then + exit $? +fi +sudo apt-get -y install openjdk-6-jdk +if [ "$?" != "0" ]; then + exit $? +fi +sudo apt-get -y install libcurl4-openssl-dev xulrunner-dev +if [ "$?" != "0" ]; then + exit $? +fi + +# Download and install the runtime +curl -o tuscany-sca-cpp-1.0.0-SNAPSHOT.tar.gz http://people.apache.org/~jsdelfino/tuscany/test/tuscany-sca-cpp-1.0.0-SNAPSHOT.tar.gz +tar xzf tuscany-sca-cpp-1.0.0-SNAPSHOT.tar.gz + diff --git a/sca-cpp/trunk/ubuntu/ubuntu-install b/sca-cpp/trunk/ubuntu/ubuntu-install new file mode 100755 index 0000000000..93069f3e94 --- /dev/null +++ b/sca-cpp/trunk/ubuntu/ubuntu-install @@ -0,0 +1,144 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# 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 system. + +# Display commands as they are executed +set -x + +# Build and install in the current directory +build=`pwd` + +# Install GIT and core dev tools +sudo apt-get -y install git-core autoconf automake g++ libtool +if [ "$?" != "0" ]; then + exit $? +fi + +# Install the required binaries +sudo apt-get -y install curl memcached privbind +if [ "$?" != "0" ]; then + exit $? +fi + +# Build Apache HTTP server +sudo apt-get -y install libssl-dev +if [ "$?" != "0" ]; then + exit $? +fi +curl -o httpd-2.2.15.tar.gz http://www.apache.org/dist/httpd/httpd-2.2.15.tar.gz +tar xzf httpd-2.2.15.tar.gz +cd httpd-2.2.15 +./configure --enable-ssl --enable-proxy --enable-rewrite --with-included-apr --with-mpm=prefork --prefix=$build/httpd-2.2.15-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Apache Axis2/C +sudo apt-get -y install pkg-config libxml2-dev +if [ "$?" != "0" ]; then + exit $? +fi +curl -o axis2c-src-1.6.0.tar.gz http://www.apache.org/dist/ws/axis2-c/1_6_0/axis2c-src-1.6.0.tar.gz +tar xzf axis2c-src-1.6.0.tar.gz +cd axis2c-src-1.6.0 +./configure --enable-libxml2 --enable-openssl --with-apache2=$build/httpd-2.2.15-bin/include --prefix=$build/axis2c-1.6.0-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +export AXIS2C_HOME=$build/axis2c-1.6.0-bin +cd samples +./configure --prefix=$build/axis2c-1.6.0-bin --with-axis2=$build/axis2c-1.6.0-bin/include/axis2-1.6.0 +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Apache Qpid/C++ +sudo apt-get -y install libboost-dev libboost-program-options-dev libboost-filesystem-dev uuid-dev +if [ "$?" != "0" ]; then + exit $? +fi +sudo -s ln -s /usr/lib/libboost_program_options-mt.so /usr/lib/libboost_program_options.so +sudo -s ln -s /usr/lib/libboost_filesystem-mt.so /usr/lib/libboost_filesystem.so +curl -o qpid-cpp-0.6.tar.gz http://qpid.apache.org/dist/qpid-0.6rc7/qpid-cpp-0.6rc7.tar.gz +tar xzf qpid-cpp-0.6.tar.gz +cd qpidc-0.6 +./configure --prefix=$build/qpidc-0.6-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Libstrophe +sudo apt-get -y install check +if [ "$?" != "0" ]; then + exit $? +fi +git clone git://code.stanziq.com/libstrophe +cd libstrophe +git submodule init +git submodule update +aclocal +automake --add-missing --foreign --copy +autoconf +./configure --prefix=$build/libstrophe-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Install Apache Vysper +sudo apt-get -y install openjdk-6-jdk +if [ "$?" != "0" ]; then + exit $? +fi +curl -o vysper-1.0.0-bin.tar.gz 'http://hudson.zones.apache.org/hudson/view/Vysper/job/vysper-trunk-jdk1.6-ubuntu/org.apache.vysper$vysper/lastSuccessfulBuild/artifact/org.apache.vysper/vysper/1.0.0-SNAPSHOT/vysper-1.0.0-SNAPSHOT-bin.tar.gz' +tar xzf vysper-1.0.0-bin.tar.gz +if [ "$?" != "0" ]; then + exit $? +fi + +# Build Tuscany SCA +sudo apt-get -y install libcurl4-openssl-dev xulrunner-dev +if [ "$?" != "0" ]; then + exit $? +fi +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-apr=$build/httpd-2.2.15-bin --with-httpd=$build/httpd-2.2.15-bin --enable-threads --enable-python --enable-java --with-java=/usr/lib/jvm/java-6-openjdk --enable-webservice --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-1.0.0 +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + diff --git a/sca-cpp/trunk/ubuntu/ubuntu-source-image b/sca-cpp/trunk/ubuntu/ubuntu-source-image new file mode 100755 index 0000000000..2d24d9ad30 --- /dev/null +++ b/sca-cpp/trunk/ubuntu/ubuntu-source-image @@ -0,0 +1,37 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# 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 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 +wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install +chmod +x ./ubuntu-install +./ubuntu-install + -- cgit v1.2.3