+ All Categories
Home > Software > Stackato Presentation Techzone 2013

Stackato Presentation Techzone 2013

Date post: 27-Jun-2015
Category:
Upload: martin-kenneth-michalsky
View: 74 times
Download: 2 times
Share this document with a friend
Description:
Stackato architecture, micro cloud, cluster configuration and app deployment presentation at TechZone 2013
Popular Tags:
13
Stackato Overview Martin Kenneth Michalsky Senior QE
Transcript
Page 1: Stackato Presentation Techzone 2013

Stackato Overview

Martin Kenneth MichalskySenior QE

Page 2: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Introduction

2

Page 3: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.3

Stackato Architecture

Page 4: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

General Configuration

4

Page 5: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Configure Micro Cloud

Unzip and configure network− A microcloud contains all cluster roles in a single vm

Xip.io service provide wildcard dns an name resolution using ip info only

Confirm stackato roles status − kato status

Open web console using client− stackato open api

5

Page 6: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Cluster Setup

Workshop API address is:

172.20.105.100kato node attach -e dea 172.20.105.100

Add extra roles and/or remove dea role

kato role remove dea After everybody completes the attach steps we will have a single

cluster with many nodes as vms

6

Page 7: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Deploying Apps

7

Page 8: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Deploying apps using Stackato client

Download stackato client and add it to your path Download and unzip a sample app from

https://github.com/kassanmoor/testlink

− This app is already modified, ready to run in stackato after push it.

8

Page 9: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Adapting apps to run in stackato

Apps languages are detected automatically most of times− On java apps Maven or ant are needed

Provisioned service info is set put on a environment variable inside the container− The name of the variable is: $DATABASE_URL− Returns the database data in the following format:− protocol://username:password@host:port/database_nam

9

Page 10: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Adapting apps to run in stackato

On php you can parse the database url using:<?php

$url_parts = parse_url($_SERVER['DATABASE_URL']);

$db_name = substr( $url_parts['path'], 1 );

$db_connection_string = $url_parts['host'] . ':' . $url_parts['port'];

// ** MySQL settings from resource descriptor ** //

echo $db_name;

echo $url_parts['user'];

echo $url_parts['pass'];

echo $url_parts['host'];

echo $url_parts['port'];

?>

10

Page 11: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.

Deploying apps from Appstore

Several open source apps included in the default store− Ready to use and you can check the source code modifications

needed to run it at:https://github.com/Stackato-Apps/

You can add your own apps using a reachable git repository and yml file− Naming logic is already built in on store and each parameter of

app/store are fully customizable

11

Page 12: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.12

Q&A

Page 13: Stackato Presentation Techzone 2013

© 2013 TechZone. All rights reserved.13


Recommended