Skip to content

tchoo-oracle/oci-java-micronaut-devops-example

Repository files navigation

Sample illustration of JAVA application with Micronaut and OCI Devops.


Target Audience : Intermediate/Advanced towards OCI

Objective

  • Create OCI Devops build pipeline.
  • Build a Java Micronaut simple sample application.
  • Push the artifact to OCI Container repo.
  • Use OCI Deployment pipeline and deploy to OCI OKE.

Specific instructions to download only this sample.

    $ git init oci_devops_sample
    $ cd oci_devops_sample
    $ git remote add origin <url to this git repo>
    $ git config core.sparsecheckout true
    $ echo "oci-pipeline-examples/oci-java-micronaut-devops-example/*">>.git/info/sparse-checkout
    $ git pull --depth=1 origin main

Procedure

https://docs.oracle.com/en-us/iaas/Content/devops/using/add_buildstage.htm#add_buildstage

  • Create a OCI deployment pipeline using the OKE cluster enviroment and the artifact (kubernetes manifest) created.

  • Ensure to add below deployment parameters for the deployment pipeline.

  • Connect the deployment pipeline with build pipeline by adding Invoke deployment stage to the existing OCI build pipeline.

  • Final view of our build pipeline is as below .

  • Do a test Run via Build pipeline >Manual Run.

  • Connect to the OKE and fetch the Loadbalancer IP to validate the application .

  • Launch a browser and use the URL http://< Loadbalancer IP >/hello

  • You can validate the execution via build logs too

Contributors

  • Author : Rahul M R.
  • Colloboroators : NA
  • Last release : Feb 2022

Back to examples.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors