Skip to content

Latest commit

 

History

History
62 lines (37 loc) · 1.39 KB

File metadata and controls

62 lines (37 loc) · 1.39 KB

stakater-nordmart-inventory

Overview

A maven wildfly inventory application that exposes product's inventory status on REST API endpoints.

Dependencies

It requires following things to be installed:

  • Java: ^8.0
  • Maven

Deployment strategy

Local deployment

To run the application locally use the command given below:

mvn clean wildfly-swarm:run

Docker

To deploy app inside a docker container

  • Create a network if it doesn't already exist by executing

    docker network create --driver bridge nordmart-apps
  • Build jar file of the app by executing

    mvn clean package wildfly-swarm:package
  • Next build the image using

    docker build -t inventory .
  • Finally run the image by executing

    docker run -d --name inventory --network nordmart-apps -p 8081:8080 inventory

Helm Charts

Pre-requisites

Helm operator needs to to be running inside the cluster. Helm operator is deployed by Stakater Global Stack, deployment guidelines are provided in this link

Helm chart deployment

To create helm release of this application using the command given below:

kubectl apply -f helm-release.yaml -n