13 deploying cloud applications

10
Deploying Cloud Applications IBM Bluemix, Microsoft Azure

Upload: darwinodb

Post on 12-Jan-2017

25 views

Category:

Software


3 download

TRANSCRIPT

Page 1: 13   deploying cloud applications

Deploying Cloud Applications

IBM Bluemix, Microsoft Azure

Page 2: 13   deploying cloud applications

Cloud Deployment

• Leverages the web app server and the database from the cloud provider• Automatically detects the runtime environment and adapts to it

– The Darwino runtime looks for specific properties and beans files in WEB-INF– It loads the different files in order, based on the runtime platform

– It also loads global files – depends on the environment

Page 3: 13   deploying cloud applications

IBM Bluemix

• Runs within the WAS Liberty server• Use the database provided by Compose, like Postgresql

– The standard DB2, SQLDB, service is deprecated by IBM• Read the VCAP_SERVICES variable and makes it available

– Was used by the SQLDB connection• Loads the config files from

– “server.config.dir”– “wlp.install.dir” /etc

Page 4: 13   deploying cloud applications

IBM Bluemix Configuration

<bean type="darwino/jsondb" name="bm" class="com.darwino.config.jsonstore.JsonDbJdbc" alias="default"> <property name="db">postgresql</property> <property name="user">admin</property> <property name="password">vfdsjkdljkjlkfsjkllk</property> <property name="url">jdbc:postgresql://aws-us-east-1-portal.18.dblayer.com:11410/compose</property> <property name="cp">hikaricp</property> </bean>

Page 5: 13   deploying cloud applications

IBM Bluemix – Development Environment

• Install the IBM Eclipse Bluemix plugin and WAS liberty• Bluemix is a DevOps environment, not a development one

– Run your app in a local server, which is much more convenient– Then deploy the server to Bluemix

Page 6: 13   deploying cloud applications

Microsoft Azure

• Runs within a deployed version of TOMCAT– Currently supports TOMCAT 8 by detecting AZURE_TOMCAT8_HOME– Other versions of TOMCAT or Jetty can be supported if needed

• Use the SQL Server cloud (2016) database• Loads the config files from

– HOME (from the Windows OS)– Tomcat WEB Application server

• “catalina.base” /conf• “catalina.home”

Page 7: 13   deploying cloud applications

MS Azure Configuration

<beans> <bean type="darwino/jsondb" name="azure" class="com.darwino.config.jsonstore.JsonDbJdbc" alias="demo,default"> <property name="db">sqlserver</property> <property name="url">jdbc:sqlserver://darwino.database.windows.net:1433;database=dwodemo;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30;</property> <property name="user">priand</property> <property name="password">${sqlserver.password}</property> </bean></beans>

Page 8: 13   deploying cloud applications

MS Azure

• There is a Microsoft Eclipse plug-in to manage the server deployment– Used to have a bug, but this is apparently fixed

• Else, Azure is exposing the server directory through FTP– Develop using a local TOMCAT– Generate and copy the WAR file to site/wwwroot/webapps

Page 9: 13   deploying cloud applications

Connecting to Directories

• Simple development directory– Use a set of static users defined in managed-beans.xml

• Use an online LDAP Server• Use WebGate user’s database• IBM Bluemix

– Use IBM Connections Cloud as the directory• MS Azure

– Use Azure AD as the directory

Page 10: 13   deploying cloud applications

Thank you for your attention!