Application Manifest Example

Here you can see several simple examples of widgets and manifests for packaging Hello World application and separate stacks packaged with all required settings

You can use these pieces of code as a basis while preparing your own packaged application.


Hello World Application Manifest


{
    "jpsType": "install",
    "jpsVersion": "0.2",
    "application": {
        "id": "helloworld",
        "name": "Hello world!",
        "version": "1.0",
        "type": "php",
        "homepage": "http://jelastic.com/",
        "logo": "https://jelastic.com/assets/img/jelastic-logo-middle.png",
        "description": {
            "text": "Hello World"
        },
        "env": {
            "topology": {
                "engine": "php5.3",
                "nodes": [{
                        "extip": false,
                        "count": 1,
                        "cloudlets": 16,
                        "nodeType": "apache2"
                    }
                ],
                "ssl": false,
                "ha": false
            },
            "deployments": [{
                    "archive": "http://app.jelastic.com/xssu/cross/download/RDYYHFNuUQYJBFpPZQ08F0UWCRlUHxdBD0ZlTS4gcQJFFBJUDwIBQmNTTEBI",
                    "name": "Hello World",
                    "context": "ROOT"
                }
            ],
            "configs": []
        },
        "success": {
            "text": "Hello World is successfully installed",
            "email": "Hello World is successfully installed"
        }
    }
}


Simple Examples of Packaged Stack Manifests

MariaDB

MariaDB is a drop-in replacement for MySQL. MariaDB strives to be the logical choice for database professionals looking for a robust, scalable, and reliable SQL server. To accomplish this, Monty Program works to hire the best and brightest developers in the industry, work closely and cooperatively with the larger community of users and developers in the true spirit of Free and open source software, and release software in a manner that balances predictability with reliability.

{
	"jpsType": "install",
	"jpsVersion": "0.2",
	"application": {
		"id": "maria",
		"name": "MariaDB",
		"version": "10",
		"type": "php",
		"homepage": "https://mariadb.org/",
		"logo": "https://app.jelastic.com/xssu/cross/download/RDYYHARmBlMPB1gYYAwSPRTE0IWCBNVHBBKDkBtG3p3clQQEEFUDwIBQmNTTEBI/view",
		"description": {
			"text": "

MariaDB is a drop-in replacement for MySQL.

MariaDB strives to be the logical choice for database professionals looking for a robust, scalable, and reliable SQL server. To accomplish this, Monty Program works to hire the best and brightest developers in the industry, work closely and cooperatively with the larger community of users and developers in the true spirit of Free and open source software, and release software in a manner that balances predictability with reliability.

" }, "env": { "topology": { "engine": "php5.3", "nodes": [{ "extip": false, "count": 1, "cloudlets": 16, "nodeType": "mariadb10" } ], "ssl": false, "ha": false } }, "success": { "text": "Admin panel URL: ${nodes.mariadb10.url}<\/a>
Find out more information about using MariaDB in Jelastic Cloud:
Connection to MariaDB
Master-Slave Replication
Remote Access to MySQL/MariaDB
Dump import/export to MariaDB
" } } }

MongoDB

MongoDB is an open source, document-oriented database designed with both scalability and developer agility in mind. The goal of MongoDB is to bridge the gap between fast and scalable key-value stores and relational databases with rich functionality.


{
	"jpsType": "install",
	"jpsVersion": "0.2",
	"application": {
		"id": "mongo",
		"name": "MongoDB",
		"version": "2.4",
		"type": "java",
		"homepage": "http://www.mongodb.com/",
		"logo": "https://app.jelastic.com/xssu/cross/download/RDYYHAZmDFIOUw5LbQFqREVHWUMBRURKCxtpH34idw4SQxZSDwIBQmNTTEBI/view",
		"description": {
			"text": "MongoDB is an open source, document-oriented database designed with both scalability and developer agility in mind. The goal of MongoDB is to bridge the gap between fast and scalable key-value stores and relational databases with rich functionality."
		},
		"env": {
			"topology": {
				"engine": "java7",
				"nodes": [{
						"extip": false,
						"count": 1,
						"cloudlets": 16,
						"nodeType": "mongodb"
					}
				],
				"ssl": false,
				"ha": false
			}
		},
		"success": {
			"text": "Admin panel URL: ${nodes.mongodb.url}<\/a>
Find out more information about using MongoDB in Jelastic Cloud:
Connection to MongoDB
Connection to MongoDB for PHP applications
MongoDB Master Slave Replication
Remote Access to MongoDB
Dump import/export to MongoDB
" } } }

TomEE+

TomEE combines the simplicity of Tomcat with the power of Java EE. This long awaited solution helps development and operations teams solve the need to deliver high performance products to gain a competitive edge without introducing complex technology. 


{
	"jpsType": "install",
	"jpsVersion": "0.2",
	"application": {
		"id": "tomee",
		"name": "TomEE+",
		"version": "1.5",
		"type": "java",
		"homepage": "http://tomee.apache.org/",
		"logo": "https://app.jelastic.com/xssu/cross/download/RDYYHA40B1AJBltJMFA%2BQ0NHDkUCHxIRWBQ%2BS312JlVDQBVUDwIBQmNTTEBI/view",
		"description": {
			"text": "Apache TomEE, pronounced \"Tommy\", is an all-Apache Java EE 6 Web Profile certified stack where Tomcat is top dog. Apache TomEE is assembled from a vanilla Apache Tomcat zip file. We start with Tomcat, add our jars and zip up the rest. The result is Tomcat with added EE features - TomEE.
Apache TomEE Plus has all the features of TomEE with the addition of JAX-RS, JAX-WS, JMS and the Java Connector Architecture. The additional functionality is delivered via Apache CXF, Apache ActiveMQ and the Geronimo Connector library" }, "env": { "topology": { "engine": "java7", "nodes": [{ "extip": false, "count": 1, "cloudlets": 16, "nodeType": "tomee" } ], "ssl": false, "ha": false } }, "success": { "text": "Find out more information about using TomEE in Jelastic Cloud:
TomEE App Server
Tomcat/TomEE Environment Variables
Tomcat Clustering
Tomcat Security
" } } }

NGINX

NGINX® is a high performance, high concurrency web server excelling at large scale content delivery, web acceleration and protecting application containers.

{
	"jpsType": "install",
	"jpsVersion": "0.2",
	"application": {
		"id": "nginx",
		"name": "NGINX",
		"version": "1.4",
		"type": "php",
		"homepage": "http://nginx.com/",
		"logo": "https://app.jelastic.com/xssu/cross/download/RDYYHAYyVgANAF0dNwRoRRYVXhQEHBFECUZqHHkiJgZLQkRQDwIBQmNTTEBI/view",
		"description": {
			"text": "NGINX® is a high performance, high concurrency web server excelling at large scale content delivery, web acceleration and protecting application containers."
		},
		"env": {
			"topology": {
				"engine": "php5.3",
				"nodes": [{
						"extip": false,
						"count": 1,
						"cloudlets": 16,
						"nodeType": "nginxphp"
					}
				],
				"ssl": false,
				"ha": false
			}
		},
		"success": {
			"text": "Find out more information about using NGINX in Jelastic Cloud: 
NGINX App Server
Apache & NGINX Modules
NGINX Modules
Caching in NGINX App Server
" } } }