Darwino applications be seamlessly deployed to cloud or on premises infrastructures. This deck introduces the cloud deployment, and in particular IBM Bluemix and Microsoft Azure.
2. 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
3. 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
5. 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
6. 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”
8. 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
9. 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