Upload
bemyapp
View
377
Download
0
Embed Size (px)
Citation preview
Build your Cloud Native Appswith Helion Development Platform.
Etienne COINTET
HP Presales
@ecointet
Interrupt !
Poll time
A No B More or LessC Yes but I was watching TV as well…D Yes, It was great
Have you seen my first Webinar?
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
SERVER
DATABASE
NETWORK
MIDDLEWARE SE
CUR
ITY
CODE
(a lot)
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
SERVER DATABASENETWORK MIDDLEWARE
CODE
(a lot)
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
FAIL 0SUCCESS 0
ROUND
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
CODE TIME!<section id="cta" class="wrapper style3"><h2>My Application is great</h2><ul class="actions"><li><a href="#" class="button big">
<?phpecho « Container Port is: » .getenv("VCAP_APP_PORT");?>
</a></li></ul></section>
VCAP_APP_HOSTVCAP_APPLICATIONVCAP_APP_PORTVCAP_SERVICES…
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Interrupt !
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Poll time
A PHP B .NET (C# / ASP / …)C NODE.JSD Ruby / PythonE JAVAF Others
What is your favorite language?
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Platform
ConsumersNetwork
DNS / LB/ …
Services
Service(s)
WEB
Cloud-Native App
…Instance(s)
BU
ILD
PA
CK
ROUND
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
I have no information about mydatabase
I know everything about mydatabase
<?php
$link = mysql_connect(“192.168.1.120", “etienne042", “MyPassword");
echo ‘successfully connected!';
?>
<?php
$services = getenv("VCAP_SERVICES");
$services_ json = json_decode($services,true);
$db_config = $services_ json["mysql"][0]["credentials"];
mysql_connect($db_config["hostname"], $db_config["user"], $db_config["password"]);
?>
CODE TIME!
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Define dependancies(frameworks, libs)
Configuration file
Ask services needed
Build version
(release, debug…)
Release XX.YY
Port listening
Movable
Logs
Unique codeMy App
Services
N instances12factor.net
ROUND
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
DEA
Auto-detect
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
CODE TIME!
buildpack: https://github.com/cloudfoundry/php-buildpack.git
https://github.com/cloudfoundry/java-buildpackhttps://github.com/cloudfoundry/ruby-buildpackhttps://github.com/cloudfoundry/nodejs-buildpackhttps://github.com/cloudfoundry/php-buildpackhttps://github.com/cloudfoundry/go-buildpackhttps://github.com/cloudfoundry/python-buildpack
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Interrupt !
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Poll time
A Never B SometimesC OftenD Yes I’m.
Are you a Microsoft Developer?
ROUND
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
.NET Support
The OpenStack Word Mark is either a registered trademark/service mark or trademark/service mark of the OpenStack Foundation, in the United States and other countries and is used with the OpenStack Foundation’s permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. Cloud Foundry is a trademark and/or registered trademark of Pivotal Software, Inc. in the United States and/or other countries.
Windows DEA
Router
CloudController
Linux DEA
HealthManager
Services Services
ROUND
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
CODE TIME!
<connectionStrings><add name="SchoolContext"connectionString=
"Server={ContosoUniversity-db#hostname},{ContosoUniversity-db#port};Database={ContosoUniversity-db#name};User Id={ContosoUniversity-db#username};Password={ContosoUniversity-db#password};MultipleActiveResultSets=true;"
providerName="System.Data.SqlClient" /></connectionStrings>
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Overview of Cloud Foundry Windows Support
System Components
• Windows Server 2012 R2• Process and Resource Isolation• Build pack for IIS8/.NET
• Supports CLR v2 to 4.5.2• Applications: IIS, ASP.NET, WCF, Web API • Frameworks: MVC2, 3, 4, 5, …, SignalR, …
Windows DEA (CF v2)
• GO• Supported Microsoft SQL Server versions & flavors
• Microsoft SQL Server 2012 SP1 Express• Microsoft SQL Server 2014 Express
• Windows Server 2012 R2 Core or better• By default runs on Windows MSSQL node, but can run
anywhere
Cloud Foundry Microsoft SQL Server Service Broker
Developer Tools
• --stack win2012r2
Standard Helion CLI
• Programmatic access to CF• Full object v2 model coverage
• Supporting: UAA, AOK, Loggregator and Logyard
Cloud Foundry .NET SDK
• Deploy (publish), Start/Stop/Restart, Delete apps from MSBuild
Cloud Foundry MS Build Tasks
• Explore Cloud Foundry cluster and manipulate from within Visual Studio
• Deploy application from within Visual Studio
Cloud Foundry Explorer for Visual Studio
ROUND
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Interrupt !
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Poll time
A YesB No (actually I didn’t try)C No (I’m not a gamer…)D No
Can you play with the 3D app ?
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.