X

Developer Partner Community

Spring-Boot and Oracle Application Container Cloud by Carsten Wiesbaum

Juergen Kress
PaaS & Middleware Partner Adoption

image

Microservices as an architectural style as well as scalable and manageable cloud infrastructure are the foundation for modern and flexible business applications. Therefore, Oracle invested heavily in maturing its Cloud portfolio and providing services to support development and operations of such applications. One Oracle cloud service aimed at these kind of applications is “Oracle Application Container Cloud Service” (ACC). It provides a simple Docker based environment in which your Microservices can be deployed. In order to reduce the operations overhead, developers only have to provide their applications (NodeJS, Java SE or PHP) in a certain format and Oracle’s cloud infrastructure takes over.

Within this blog article required design considerations for developing and running a Spring-Boot application on Oracle’s ACC Service are described.

ACC Design Considerations and Spring-Boot

Oracle prescribes three basic design considerations when planning to run applications within Oracle ACC Service. First of all, ACC is dynamically creating Docker containers. As result hostname and port can only be determined during runtime. Therefore, applications deployed within ACC containers must be able to listen on specific ports. Secondly, in order to use the dynamically created container port and hostname an application has to be configurable during runtime. The ACC infrastructure provides its hostname and port within two environment variables, HOSTNAME and PORT. An application running in ACC must be able to access these variables and use them for application configuration. Finally, an application should include all of its dependencies.

When looking at these design principles Spring-Boot is a perfect choice in order to develop a Microservice and run it on Oracle ACC. Although Spring-Boot applications follow the principle convention over configuration and need just a minimum of configuration to run, they are indeed highly configurable at runtime. In order to run in ACC only two properties need to be configured within a Spring-Boot application: Furthermore, Spring-Boot applications can be packages as single executable JAR file containing all dependencies. Therefore, it should be possible to run Spring-Boot Microservices on Oracle ACC. But which steps are required in order to get it up into the cloud and running?

Preparing the Spring-Boot Application

In order to prepare a Spring-Boot application to run on Oracle ACC, application metadata and a deployment ready archive have to be prepared. When using Oracle ACC the application’s metadata is described within a manifest.json file. Within this file information such as runtime versions, launch commands, startup time and shutdown time thresholds are defined. For a full definition see Oracle’s documentation (links below). For this example the manifest.json file looks as follows:

Microservices as an architectural style as well as scalable and manageable cloud infrastructure are the foundation for modern and flexible business applications. Therefore, Oracle invested heavily in maturing its Cloud portfolio and providing services to support development and operations of such applications. One Oracle cloud service aimed at these kind of applications is “Oracle Application Container Cloud Service” (ACC). It provides a simple Docker based environment in which your Microservices can be deployed. In order to reduce the operations overhead, developers only have to provide their applications (NodeJS, Java SE or PHP) in a certain format and Oracle’s cloud infrastructure takes over.

Within this blog article required design considerations for developing and running a Spring-Boot application on Oracle’s ACC Service are described. : Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic,WebLogic Community,Oracle,OPN,Jürgen Kress

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha