mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-14 17:42:24 +01:00
Change in Dev Guide to add Maven and Tools Chapter
This commit is contained in:
parent
be6acc719a
commit
6507055ba1
@ -24,14 +24,14 @@
|
|||||||
|
|
||||||
<book>
|
<book>
|
||||||
<bookinfo id="cloudstack_developers">
|
<bookinfo id="cloudstack_developers">
|
||||||
<title>&PRODUCT; API Developer's Guide</title>
|
<title>&PRODUCT; Developer's Guide</title>
|
||||||
<productname>Apache CloudStack</productname>
|
<productname>Apache CloudStack</productname>
|
||||||
<productnumber>4.0.0-incubating</productnumber>
|
<productnumber>4.0.0-incubating</productnumber>
|
||||||
<edition></edition>
|
<edition></edition>
|
||||||
<pubsnumber></pubsnumber>
|
<pubsnumber></pubsnumber>
|
||||||
<abstract>
|
<abstract>
|
||||||
<para>
|
<para>
|
||||||
How to integrate with &PRODUCT; using the &PRODUCT; API.
|
This guide shows how to develop &PRODUCT;, use the API for operation and integration, access the usage data and use &PRODUCT; specific tools to ease development, testing and integration.
|
||||||
</para>
|
</para>
|
||||||
</abstract>
|
</abstract>
|
||||||
<corpauthor>
|
<corpauthor>
|
||||||
@ -45,10 +45,12 @@
|
|||||||
<xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
</bookinfo>
|
</bookinfo>
|
||||||
<xi:include href="concepts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="concepts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
<xi:include href="building-with-maven.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="developer-introduction.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="developer-introduction.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="whats-new.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="whats-new.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="api-calls.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="api-calls.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="working-with-usage-data.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="working-with-usage-data.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
<xi:include href="tools.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="event-types.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="event-types.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="alerts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="alerts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="time-zones.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="time-zones.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
32
docs/en-US/building-devcloud.xml
Normal file
32
docs/en-US/building-devcloud.xml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section id="building-devcloud">
|
||||||
|
<title>Building DevCloud</title>
|
||||||
|
<para>The DevCloud appliance can be downloaded from the wiki at <ulink url="https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud"></ulink>. It can also be built from scratch. Code is being developed to provide this alternative build. It is based on <emphasis>veewee</emphasis>, <emphasis>Vagrant</emphasis> and <emphasis>Puppet</emphasis>.</para>
|
||||||
|
<para>The goal is to automate the DevCloud build and make this automation capability available to all within the source release of &PRODUCT;</para>
|
||||||
|
<warning><para>This is under heavy development. The code is located in the source tree under <emphasis>tools/devcloud</emphasis> </para>
|
||||||
|
<para>A preliminary wiki page describes the build at <ulink url="https://cwiki.apache.org/CLOUDSTACK/building-devcloud.html">https://cwiki.pache.org/CLOUDSTACK/building-devcloud.html</ulink></para>
|
||||||
|
</warning>
|
||||||
|
</section>
|
||||||
66
docs/en-US/building-prerequisites.xml
Normal file
66
docs/en-US/building-prerequisites.xml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<section id="build-prerequisites">
|
||||||
|
<title>Build Procedure Prerequisites</title>
|
||||||
|
<para>In this section we will assume that you are using the Ubuntu Linux distribution with the Advanced Packaging Tool (APT). If you are using a different distribution or OS and a different packaging tool, adapt the following instructions to your environment. To build &PRODUCT; you will need:</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>git, <ulink url="http://git-scm.com">http://git-scm.com</ulink></para>
|
||||||
|
<para><programlisting>sudo apt-get install git-core</programlisting></para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>maven, <ulink url="http://maven.apache.org">http://maven.apache.org</ulink></para>
|
||||||
|
<para><programlisting>sudo apt-get install maven</programlisting></para>
|
||||||
|
<para>Make sure that you installed maven 3</para>
|
||||||
|
<para><programlisting>$ mvn --version
|
||||||
|
Apache Maven 3.0.4
|
||||||
|
Maven home: /usr/share/maven
|
||||||
|
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
|
||||||
|
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
|
||||||
|
Default locale: en_US, platform encoding: UTF-8
|
||||||
|
OS name: "linux", version: "3.2.0-33-generic", arch: "amd64", family: "unix"</programlisting></para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>java</para>
|
||||||
|
<para>set the JAVA_HOME environment variable</para>
|
||||||
|
<para><programlisting>$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk</programlisting></para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
<para>In addition, to deploy and run &PRODUCT; in a development environment you will need:</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>Mysql</para>
|
||||||
|
<para><programlisting>sudo apt-get install mysql-server-5.5</programlisting></para>
|
||||||
|
<para>Start the mysqld service and create a cloud user with cloud as a password</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>Tomcat 6</para>
|
||||||
|
<para><programlisting>sudo apt-get install tomcat6</programlisting></para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
</section>
|
||||||
39
docs/en-US/building-with-maven-deploy.xml
Normal file
39
docs/en-US/building-with-maven-deploy.xml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section id="building-with-maven-deploy">
|
||||||
|
<title>Deployment and Testing Steps</title>
|
||||||
|
<para>Deploying the &PRODUCT; code that you compiled is a two step process:</para>
|
||||||
|
<orderedlist>
|
||||||
|
<listitem><para>If you have not configured the database or modified its properties do:</para>
|
||||||
|
<para><programlisting>mvn -P developer -pl developer -Ddeploydb</programlisting></para>
|
||||||
|
</listitem>
|
||||||
|
<listitem><para>Then you need to run the &PRODUCT; management server. To attach a debugger to it, do:</para>
|
||||||
|
<para><programlisting>export MAVEN_OPTS="-Xmx1024 -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"</programlisting></para>
|
||||||
|
<para><programlisting>mvn -pl :cloud-client-ui jetty:run</programlisting></para>
|
||||||
|
</listitem>
|
||||||
|
</orderedlist>
|
||||||
|
<warning><para>When dealing with the database, remember that you may wipe it entirely and lose any data center configuration that you may have set previously.</para></warning>
|
||||||
|
</section>
|
||||||
|
|
||||||
33
docs/en-US/building-with-maven-steps.xml
Normal file
33
docs/en-US/building-with-maven-steps.xml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section id="building-with-maven-steps">
|
||||||
|
<title>Building Steps</title>
|
||||||
|
<para>&PRODUCT; uses git for source version control, first make sure you have the source code by pulling it:</para>
|
||||||
|
<programlisting>git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git</programlisting>
|
||||||
|
<para>Several Project Object Models (POM) are defined to deal with the various build targets of &PRODUCT;. Certain features require some packages that are not compatible with the Apache license and therefore need to be downloaded on your own. Check the wiki for additional information <ulink url="https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html">https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html</ulink>. In order to build all the open source targets of &PRODUCT; do:</para>
|
||||||
|
<para><programlisting>mvn clean install</programlisting></para>
|
||||||
|
<para>The resulting jar files will be in the target directory of the subdirectory of the compiled module.</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
32
docs/en-US/building-with-maven.xml
Normal file
32
docs/en-US/building-with-maven.xml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<chapter id="building-with-maven">
|
||||||
|
<title>Using Maven to Build &PRODUCT;</title>
|
||||||
|
<xi:include href="source-build.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
<xi:include href="building-prerequisites.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
<xi:include href="building-with-maven-steps.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
<xi:include href="building-with-maven-deploy.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
</chapter>
|
||||||
|
|
||||||
60
docs/en-US/devcloud-usage-mode.xml
Normal file
60
docs/en-US/devcloud-usage-mode.xml
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section id="devcloud-usage-mode">
|
||||||
|
<title>DevCloud Usage Mode</title>
|
||||||
|
<para>DevCloud can be used in several different ways:</para>
|
||||||
|
<orderedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>Full sandbox. Where &PRODUCT; is run within the DevCloud instance started in Virtual Box.</para>
|
||||||
|
<para>In this mode, the &PRODUCT; management server runs within the instance and nested virtualization allows instantiation of tiny VMs within DevCloud itself. &PRODUCT; code modifications are done within DevCloud.</para>
|
||||||
|
<para>The following diagram shows the architecture of the SandBox mode.</para>
|
||||||
|
<mediaobject>
|
||||||
|
<imageobject>
|
||||||
|
<imagedata fileref="./images/DevCloud.png" />
|
||||||
|
</imageobject>
|
||||||
|
<textobject>
|
||||||
|
<phrase>DevCloud.png: Schematic of the DevCloud SandBox architecture</phrase>
|
||||||
|
</textobject>
|
||||||
|
</mediaobject>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>A deployment environment. Where &PRODUCT; code is developed in the localhost of the developer and the resulting build is deployed within DevCloud</para>
|
||||||
|
<para>This mode was used in the testing procedure of &PRODUCT; 4.0.0 incubating release. See the following screencast to see how: <ulink url="http://vimeo.com/54621457">http://vimeo.com/54621457</ulink></para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>A host-only mode. Where DevCloud is used only as a host. &PRODUCT; management server is run in the localhost of the developer</para>
|
||||||
|
<para>This mode makes use of a host-only interface defined in the Virtual Box preferences. Check the following screencast to see how: <ulink url="http://vimeo.com/54610161">http://vimeo.com/54610161</ulink></para>
|
||||||
|
<para>The following schematic shows the architecture of the Host-Only mode.</para>
|
||||||
|
<mediaobject>
|
||||||
|
<imageobject>
|
||||||
|
<imagedata fileref="./images/DevCloud-hostonly.png" />
|
||||||
|
</imageobject>
|
||||||
|
<textobject>
|
||||||
|
<phrase>DevCloud-hostonly.png: Schematic of the DevCloud host-only architecture </phrase>
|
||||||
|
</textobject>
|
||||||
|
</mediaobject>
|
||||||
|
</listitem>
|
||||||
|
</orderedlist>
|
||||||
|
</section>
|
||||||
38
docs/en-US/devcloud.xml
Normal file
38
docs/en-US/devcloud.xml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section id="devcloud">
|
||||||
|
<title>DevCloud</title>
|
||||||
|
<para>DevCloud is the &PRODUCT; sandbox. It is provided as a Virtual Box appliance. It is meant to be used as a development environment to easily test new &PRODUCT; development. It has also been used for training and &PRODUCT; demos since it provides a <emphasis>Cloud in a box</emphasis>.</para>
|
||||||
|
<note>
|
||||||
|
<para>DevCloud is provided as a convenience by community members. It is not an official &PRODUCT; release artifact.</para>
|
||||||
|
<para>The &PRODUCT; source code however, contains tools to build your own DevCloud.</para>
|
||||||
|
</note>
|
||||||
|
<warning>
|
||||||
|
<para>DevCloud is under development and should be considered a Work In Progress (WIP), the wiki is the most up to date documentation:</para>
|
||||||
|
<para><ulink url="https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud"></ulink></para>
|
||||||
|
</warning>
|
||||||
|
<xi:include href="devcloud-usage-mode.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
<xi:include href="building-devcloud.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
</section>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="developer-introduction">
|
<chapter id="developer-introduction">
|
||||||
<title>Introduction for Developers</title>
|
<title>Introduction to the &PRODUCT; API</title>
|
||||||
<xi:include href="roles.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="roles.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="api-reference.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="api-reference.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
<xi:include href="developer-getting-started.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
<xi:include href="developer-getting-started.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
|||||||
BIN
docs/en-US/images/DevCloud-hostonly.png
Normal file
BIN
docs/en-US/images/DevCloud-hostonly.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
BIN
docs/en-US/images/DevCloud.png
Normal file
BIN
docs/en-US/images/DevCloud.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
32
docs/en-US/marvin.xml
Normal file
32
docs/en-US/marvin.xml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section id="marvin">
|
||||||
|
<title>Marvin</title>
|
||||||
|
<para>Marvin is the &PRODUCT; automation framework. It originated as a tool for integration testing but is now also used to build DevCloud as well as to provide a Python &PRODUCT; API binding.</para>
|
||||||
|
<note>
|
||||||
|
<para>Marvin's complete documenation is on the wiki at <ulink url="https://cwiki.apache.org/CLOUDSTACK/testing-with-python.html">https://cwiki.apache.org/CLOUDSTACK/testing-with-python.html</ulink></para>
|
||||||
|
<para>The source code is located at <emphasis>tools/marvin</emphasis></para>
|
||||||
|
</note>
|
||||||
|
</section>
|
||||||
49
docs/en-US/source-build.xml
Normal file
49
docs/en-US/source-build.xml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<section id="source-build">
|
||||||
|
<title>Building &PRODUCT; from Source</title>
|
||||||
|
<note>
|
||||||
|
<para>Prior to the 4.0.0 incubating release, Ant was used to build &PRODUCT;. Starting with 4.0.0 a migration to Maven is underway.</para>
|
||||||
|
<para>The website and the wiki contain up to date information on the build procedure at:</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para><ulink url="https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html">https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html</ulink></para></listitem>
|
||||||
|
<listitem><para><ulink url="http://incubator.apache.org/cloudstack/develop/environment.html">http://incubator.apache.org/cloudstack/develop/environment.html</ulink></para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</note>
|
||||||
|
<para>The overarching steps to build &PRODUCT; are:.</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>Install the prerequisites and setup your environment</para></listitem>
|
||||||
|
<listitem><para>Understand that various Maven profiles and build targets</para></listitem>
|
||||||
|
<listitem><para>Deploy and test your build </para></listitem>
|
||||||
|
<listitem><para>If needed, learn how to build binaries</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>Learning Maven is outside the scope of this documentation.</para>
|
||||||
|
<para>Go to the Maven website at <ulink url="http://maven.apache.org/guides/getting-started/index.html">http://maven.apache.org/guides/getting-started/index.html</ulink></para>
|
||||||
|
</note>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
29
docs/en-US/tools.xml
Normal file
29
docs/en-US/tools.xml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
||||||
|
%BOOK_ENTITIES;
|
||||||
|
]>
|
||||||
|
|
||||||
|
<!-- 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<chapter id="tools">
|
||||||
|
<title>Tools</title>
|
||||||
|
<xi:include href="devcloud.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
<xi:include href="marvin.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
|
||||||
|
</chapter>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
xml_lang: en-US
|
xml_lang: en-US
|
||||||
type: Book
|
type: Book
|
||||||
docname: API_Developers_Guide
|
docname: Developers_Guide
|
||||||
brand: cloudstack
|
brand: cloudstack
|
||||||
chunk_first: 1
|
chunk_first: 1
|
||||||
chunk_section_depth: 1
|
chunk_section_depth: 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user