Tuesday, August 23, 2011

Setting up Stratos locally in your home computer is just a few steps away ..

Written by Kathiravelu Pradeeban

Now you can check out the trunk code of Carbon from the repository, build, and configure WSO2 Stratos in a few steps.
Check out https://svn.wso2.org/repos/wso2/trunk/carbon

mvn clean install from carbon directory

Set up the following in ~/.bashrc (change the values accordingly for the email addresses, carbon directory, the transport sender, and the other information given below.)
# Stratos setup constants

export stratos_local_ip=""

export CARBON_DIR="/home/pradeeban/trunk/stratos/carbon"

export STRATOS_DIR=$CARBON_DIR/stratos_home


export SSO_ENABLED=true

export CREATE_DB=true

export STRATOS_MAIL_TRANSPORT=' ********.***.***25 false false cloud-noreply@wso2.com '

export NOTIFICATION_EMAIL=pradeeban@wso2.com

If you are going to use the stratos binaries, you can use the downloaded packs, usually available from the builders online (find it here, for the Stratos-1.5.1 binaries), as of the trunk or development branch version or from the wso2.org download area, for a released version.

Place the downloaded zips in to a location and also define that location in bashrc profile.

export PACKS_DIR="/home/pradeeban/Downloads"

Now you may run the set up script as above.

Running Stratos Set up script - carbon/build/stratos-setup.pl


Add the following lines to your /etc/hosts file cloud-test.wso2.com identity.cloud-test.wso2.com governance.cloud-test.wso2.com appserver.cloud-test.wso2.com bam.cloud-test.wso2.com dss.cloud-test.wso2.com bps.cloud-test.wso2.com brs.cloud-test.wso2.com cep.cloud-test.wso2.com esb.cloud-test.wso2.com gadget.cloud-test.wso2.com mb.cloud-test.wso2.com mashup.cloud-test.wso2.com

Start all the Stratos services

from $stratos_home

sh stratos.sh start all

Stop all the Stratos services

form $stratos_home

sh stratos.sh stop all

Also you can start and stop the services individually or as a chosen subset of all the available services.

Here by pointing the browser to cloud-test.wso2.com, you can access Stratos Manager. Pls note that in the configuration we have enabled SSO. You can also set up the Stratos services with SSO disabled instead, by setting export SSO_ENABLED=false, above in .bashrc profile. 

Since we have enabled SSO as above, once you have logged in to one of the services, you can just click and enter the other services without logging into each of the other services separately. Here identity.cloud-test.wso2.com is the url for WSO2 Identity Server as a Service, and governance.cloud-test.wso2.com is WSO2 Governance Registry as a Service, and the other urls as given above lists the respective services.

Await the official Stratos-1.5 release soon!

See original post

No comments:

Post a Comment


Copyright 2009 All Rights Reserved Revolution Two Church theme modified by Milinda Pathirage