Giter VIP home page Giter VIP logo

lamp-app's Introduction

lamp service

This repository contains the scaffolding for a Dropwizard-based Java-Service. The goal of this repository is to provide a minimal running version that can be used with the infrastructure in the lamp-infrastructure Repository.

Building

Using maven

  1. Run mvn clean package to build your application

Using Docker

Ensure Docker is installed. https://docs.docker.com/get-docker/

  1. Run ./build.sh to build your application

Start the application

Run java -jar target/dropwizard-example-1.0-SNAPSHOT.jar server config.yml

Calling the service

Once the service is up you can call the root endpoint at port 8080: curl localhost:8080

Configuration

The servers http port can be set via the env var APP_PORT.

You can for example start the application exposing port 9090 like this: APP_PORT=9090 java -jar target/dropwizard-example-1.0-SNAPSHOT.jar server config.yml

Accessing the service after deployment to AKS

The provided service is accessible through public IP. The IP is provisioned through an Azure load balancer. The health check can be accessed like this:

export SERVICE_IP=$(kubectl get ingress lamp-http -n lamp -o jsonpath={.status.loadBalancer.ingress[0].ip})
curl http://${SERVICE_IP}/admin/healthcheck

lamp-app's People

Contributors

therealjsie 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.