The Mock IaaS feature in Stratos simulates the basic features that Stratos requires from an IaaS. Thereby, providing a cost effective way of trying out Stratos. For information on Mock IaaS, see Apache Stratos Mock IaaS.
In Stratos, the Mock IaaS is enabled by default. If you wish to disable the Mock IaaS, navigate to the <apache-stratos-<VERSION>-SNAPSHOT>/
repository/conf/mock-iaas.xml
file and change the following to false:<mock-iaas enabled=
"true"
>
MAVEN_OPTS='-Xms2048m -Xmx4096m -XX:MaxPermSize=1024m'
to avoid the maven OutOfMemoryError.
export MAVEN_OPTS='-Xms2048m -Xmx4096m -XX:MaxPermSize=1024m'
Follow the steps below to start Stratos on a Mock IaaS:
Ensure that the above mentioned prerequisites have been met prior to the Apache Stratos installation.
Obtain the apache-stratos-<VERSION>-SNAPSHOT.zip
binary file. This can be done using any of the following methods:
Download the Stratos binary distribution from Apache Download Mirrors.
Build the Stratos source using the following instructions:
Checkout the source from Apache Stratos remote repository to a folder of your choice.
git clone https://git-wip-us.apache.org/repos/asf/stratos.git <local-folder-name>
For example:
git clone https://git-wip-us.apache.org/repos/asf/stratos.git myLocalRepo
Make sure that you have setup Git properly. For more information, go to http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup
Build Stratos using Maven.
stratos/
directory, which is within the directory that you checked out the source.cd <local-folder-name>/stratos/
cd myLocalRepo/stratos/
Use Maven to build the source.
mvn clean install
You can use one of the following commands instead of the above Maven build command
Command | Description |
---|---|
mvn clean install -Dmaven.test.skip=true | To build source distribution, without running any of the unit tests. This will reduce the time taken to build the source distribution. |
mvn clean install -Dmaven.test.skip=true -o | To build source distribution, without running any of the unit tests, in offline mode. This can be done only if you've already built the source at least once. |
Unzip the Stratos binary distribution (apache-stratos-<VERSION>-SNAPSHOT.zip
). If you built Stratos from source, the binary distribution can be found in the <STRATOS_HOME>/products/stratos/modules/distribution/target/
directory.
For easy access, move the Stratos binary distribution to a location of your choice.
Unzip the ActiveMQ distribution.
Navigate to the <ACTIVEMQ-HOME>/bin/
directory, which is in the unzipped ActiveMQ distribution, and run the following command to start ActiveMQ.
./activemq start
Navigate to the <apache-stratos-<VERSION>-SNAPSHOT>/bin/
directory, which is in the unzipped Stratos distribution, and run the following command to start Stratos.
./stratos.sh
Once the installation is complete, the Carbon management console URL will appear.
For example:
Thereafter, you can access the Apache Stratos Console using the following URL:
https://<STRATOS-DOMAIN>:9443/console
The default username and password is as follows: admin
If you run any commands before Stratos has started successfully, errors will occur.
Follow the instructions below to stop Stratos and ActiveMQ:
<ACTIVEMQ-HOME>/bin/
directory, which is in the unzipped ActiveMQ distribution, and run the following command to stop ActiveMQ../activemq stop