GithubHelp home page GithubHelp logo

valchanoficial / ibmcloudmicroservicestarterforjava Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 31 KB

Created for toolchain: https://console.bluemix.net/devops/toolchains/e9b0418b-1970-4d00-bee4-c36d06ff2923?env_id=ibm%3Ayp%3Aus-south

License: MIT License

Shell 19.34% Dockerfile 1.55% Java 7.64% HTML 71.48%

ibmcloudmicroservicestarterforjava's Introduction

Microservice

IBM Cloud Microservice Starter for Java - MicroProfile / Java EE

Platform

Table of Contents

Summary

The IBM Cloud Microservice Starter for Java - MicroProfile / Java EE provides a starting point for creating Java microservice applications running on WebSphere Liberty.

To deploy this application to IBM Cloud using a toolchain click the Create Toolchain button. Create Toolchain

Requirements

Configuration

The application is configured to provide JAX-RS REST capabilities, JNDI, JSON parsing and Contexts and Dependency Injection (CDI).

These capabilities are provided through dependencies in the pom.xml file and Liberty features enabled in the server config file found in src/main/liberty/config/server.xml.

Project contents

The microservice application has a health endpoint which is accessible at <host>:<port>/JavaMicroservicewithEclipseMicroProfileand/health. The context root is set in the src/main/webapp/WEB-INF/ibm-web-ext.xml file. The ports are set in the pom.xml file and exposed to the CLI in the cli-config.yml file.

The project contains IBM Cloud specific files that are used to deploy the application as part of a IBM Cloud DevOps flow. The .bluemix directory contains files used to define the IBM Cloud toolchain and pipeline for your application. The manifest.yml file specifies the name of your application in IBM Cloud, the timeout value during deployment and which services to bind to.

Credentials are either taken from the VCAP_SERVICES environment variable that IBM Cloud provides or from environment variables passed in by JNDI (see the server config file src/main/liberty/config/server.xml).

Run

To build and run the application:

  1. mvn install
  2. mvn liberty:run-server

To run the application in Docker use the Docker file called Dockerfile. If you do not want to install Maven locally you can use Dockerfile-tools to build a container with Maven installed.

Endpoints

The application exposes the following endpoints:

  • Health endpoint: <host>:<port>/<contextRoot>/health

The context root is set in the src/main/webapp/WEB-INF/ibm-web-ext.xml file. The ports are set in the pom.xml file and exposed to the CLI in the cli-config.yml file.

Notices

This project was generated using:

  • generator-ibm-java v5.14.1
  • generator-ibm-service-enablement v3.2.1
  • generator-ibm-cloud-enablement v1.7.7
  • generator-ibm-java-liberty v

ibmcloudmicroservicestarterforjava's People

Contributors

valchanoficial avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.