Giter Club home page Giter Club logo

hmc-hmi-inbound-adapter's Introduction

hmc-hmi-inbound-adapter

Build Status

Getting Started

Please note that this microservice is also available within ccd-docker.

Prerequisites

Building and deploying the application

Building the application

The project uses Gradle as a build tool. It already contains ./gradlew wrapper script, so there's no need to install gradle.

To build the project execute the following command:

  ./gradlew build

Running the application

Create the image of the application by executing the following command:

  ./gradlew assemble

Create docker image:

  docker-compose build

Run the distribution (created in build/install/hmc-hmi-inbound-adapter directory) by executing the following command:

  docker-compose up

This will start the API container exposing the application's port (set to 4559 in this template app).

In order to test if the application is up, you can call its health endpoint:

  curl http://localhost:4559/health

You should get a response similar to this:

  {"status":"UP","diskSpace":{"status":"UP","total":249644974080,"free":137188298752,"threshold":10485760}}

Alternative script to run application

To skip all the setting up and building, just execute the following command:

./bin/run-in-docker.sh

For more information:

./bin/run-in-docker.sh -h

Script includes bare minimum environment variables necessary to start api instance. Whenever any variable is changed or any other script regarding docker image/container build, the suggested way to ensure all is cleaned up properly is by this command:

docker-compose rm

It clears stopped containers correctly. Might consider removing clutter of images too, especially the ones fiddled with:

docker images

docker image rm <image-id>

There is no need to remove postgres and java or similar core images.

Azure Service Bus & Local Testing

Azure Service Bus

To enable publishing to an Azure Service Bus destination:

  1. Set the Azure Service Bus connection string in the HMC_SERVICE_BUS_CONNECTION_STRING environment variable
  2. Set the Azure Service Bus queue name in the HMC_SERVICE_BUS_QUEUE environment variable
  3. Restart the application

Developing

Unit tests

To run all unit tests execute the following command:

  ./gradlew test

Integration tests

To run all integration tests execute the following command:

  ./gradlew integration

Code quality checks

We use Checkstyle. To run all local checks execute the following command:

  ./gradlew check

License

This project is licensed under the MIT License - see the LICENSE file for details

hmc-hmi-inbound-adapter's People

Contributors

abhishekdangashiya avatar antonyleons avatar danlysiak avatar dinesh1patel avatar duranmf avatar hmcts-jenkins-cdm[bot] avatar hmcts-jenkins-cft[bot] avatar hmcts-jenkins-d-to-i[bot] avatar jamescollettcgi avatar kaanaktas avatar kerry-anne-mclaughlin avatar kleog avatar ladamson-hmcts avatar lang-ben avatar marianadpereira avatar markdathornehmcts avatar marvincudjoe avatar mikebrownccd avatar mokainos avatar msancaktutar avatar nathan-clark avatar noronhaa avatar owen-delaney-cgi avatar padmapriyanalam avatar paulridout avatar rebeccabaker avatar sgecici avatar skandala-cgi avatar sullivangareth avatar thor-tech-of-metal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

duranfatih kremi

hmc-hmi-inbound-adapter's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Update actions/cache action to v4
  • Update actions/checkout action to v4
  • Update actions/setup-java action to v4
  • Update dependency com.github.hmcts:befta-fw to v20
  • Update dependency com.github.hmcts:idam-java-client to v3
  • Update dependency com.github.hmcts:service-auth-provider-java-client to v5
  • Update dependency com.github.tomakehurst:wiremock to v3
  • Update dependency net.logstash.logback:logstash-logback-encoder to v7
  • Update dependency org.mockito:mockito-inline to v5
  • Update eclipse-temurin Docker tag to v21
  • Update hmctspublic.azurecr.io/base/java Docker tag to v21
  • Update io.rest-assured:4.3.3 to v5 (major) (io.rest-assured:xml-path, io.rest-assured:json-path)
  • Update org.apache.tomcat.embed:9.0.84 to v10 (major) (org.apache.tomcat.embed:tomcat-embed-websocket, org.apache.tomcat.embed:tomcat-embed-el, org.apache.tomcat.embed:tomcat-embed-core)
  • Update plugin org.sonarqube to v4
  • Update plugin org.springframework.boot to v3
  • Update slf4j monorepo to v2 (major) (org.slf4j:jul-to-slf4j, org.slf4j:slf4j-api)
  • Update spring cloud to v4 (major) (org.springframework.cloud:spring-cloud-starter-contract-stub-runner, org.springframework.cloud:spring-cloud-starter-openfeign, org.springframework.cloud:spring-cloud-openfeign-core)
  • Update stefanzweifel/git-auto-commit-action action to v5
  • Update tibdex/github-app-token action to v2
  • Update versions.jetty (major) (org.eclipse.jetty:jetty-alpn-conscrypt-client, org.eclipse.jetty:jetty-alpn-conscrypt-server, org.eclipse.jetty:jetty-alpn-server, org.eclipse.jetty:jetty-proxy, org.eclipse.jetty:jetty-webapp, org.eclipse.jetty:jetty-servlets, org.eclipse.jetty:jetty-servlet, org.eclipse.jetty.http2:http2-common, org.eclipse.jetty.http2:http2-server, org.eclipse.jetty:jetty-io, org.eclipse.jetty:jetty-http, org.eclipse.jetty:jetty-security, org.eclipse.jetty:jetty-client, org.eclipse.jetty:jetty-xml, org.eclipse.jetty:jetty-util-ajax, org.eclipse.jetty:jetty-util, org.eclipse.jetty:jetty-alpn-client, org.eclipse.jetty:jetty-server)
  • Update versions.tomcatEmbedded to v10 (major) (org.apache.tomcat.embed:tomcat-embed-websocket, org.apache.tomcat.embed:tomcat-embed-el, org.apache.tomcat.embed:tomcat-embed-core)
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

  • Update All patch-minor dependencies (gradle, hashicorp/terraform, java, com.github.hmcts:fortify-client, com.github.hmcts:befta-fw, com.github.tomakehurst:wiremock, org.mockito:mockito-inline, com.fasterxml.woodstox:woodstox-core, commons-io:commons-io, net.minidev:json-smart, com.github.ben-manes.caffeine:caffeine, com.azure:azure-core, com.azure:azure-messaging-servicebus, com.github.hmcts:idam-java-client, ch.qos.logback:logback-core, ch.qos.logback:logback-classic, org.slf4j:jul-to-slf4j, org.slf4j:slf4j-api, org.springframework.cloud:spring-cloud-starter-contract-stub-runner, org.springframework.cloud:spring-cloud-starter-openfeign, org.springframework.cloud:spring-cloud-openfeign-core, org.apache.tomcat.embed:tomcat-embed-websocket, org.apache.tomcat.embed:tomcat-embed-el, org.apache.tomcat.embed:tomcat-embed-core, io.rest-assured:xml-path, io.rest-assured:json-path, io.netty:netty-transport-native-unix-common, io.netty:netty-transport-native-kqueue, io.netty:netty-transport-native-epoll, io.netty:netty-transport, io.netty:netty-resolver-dns-native-macos, io.netty:netty-resolver-dns, io.netty:netty-resolver, io.netty:netty-handler-proxy, io.netty:netty-handler, io.netty:netty-common, io.netty:netty-codec-socks, io.netty:netty-codec-http2, io.netty:netty-codec-http, io.netty:netty-codec-dns, io.netty:netty-codec, io.netty:netty-buffer, org.eclipse.jetty:jetty-alpn-conscrypt-client, org.eclipse.jetty:jetty-alpn-conscrypt-server, org.eclipse.jetty:jetty-alpn-server, org.eclipse.jetty:jetty-proxy, org.eclipse.jetty:jetty-webapp, org.eclipse.jetty:jetty-servlets, org.eclipse.jetty:jetty-servlet, org.eclipse.jetty.http2:http2-common, org.eclipse.jetty.http2:http2-server, org.eclipse.jetty:jetty-io, org.eclipse.jetty:jetty-http, org.eclipse.jetty:jetty-security, org.eclipse.jetty:jetty-client, org.eclipse.jetty:jetty-xml, org.eclipse.jetty:jetty-util-ajax, org.eclipse.jetty:jetty-util, org.eclipse.jetty:jetty-continuation, org.eclipse.jetty:jetty-alpn-client, org.eclipse.jetty:jetty-server, com.github.hmcts:service-auth-provider-java-client, com.github.hmcts.java-logging:logging-appinsights, com.github.hmcts.java-logging:logging, org.junit.platform:junit-platform-engine, org.junit.platform:junit-platform-commons, org.junit.jupiter:junit-jupiter-params, org.junit.jupiter:junit-jupiter-engine, org.junit.jupiter:junit-jupiter-api, uk.gov.hmcts.java, org.sonarqube, com.github.ben-manes.versions, org.springframework.boot)
  • Update dependency gradle to v8

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • eclipse-temurin 17
  • hmctspublic.azurecr.io/base/java 17-distroless
github-actions
.github/workflows/dependency-check.yml
  • tibdex/github-app-token v1
  • actions/checkout v3
  • actions/cache v3
  • actions/setup-java v3
  • stefanzweifel/git-auto-commit-action v4
.github/workflows/swagger.yml
  • actions/checkout v1
  • actions/cache v1
  • actions/setup-java v1
gradle
build.gradle
  • io.spring.dependency-management 1.1.4
  • org.springframework.boot 2.5.15
  • com.github.ben-manes.versions 0.38.0
  • org.sonarqube 3.1.1
  • uk.gov.hmcts.java 0.12.55
  • com.github.spacialcircumstances.gradle-cucumber-reporting 0.1.25
  • org.bouncycastle:bcpkix-jdk18on 1.77
  • com.google.guava:guava 33.0.0-jre
  • io.rest-assured:json-path 4.3.3
  • io.rest-assured:xml-path 4.3.3
  • org.apache.tomcat.embed:tomcat-embed-core 9.0.84
  • org.apache.tomcat.embed:tomcat-embed-el 9.0.84
  • org.apache.tomcat.embed:tomcat-embed-websocket 9.0.84
  • org.springframework.cloud:spring-cloud-openfeign-core 3.0.6
  • org.springframework.cloud:spring-cloud-starter-openfeign 3.0.6
  • org.springframework.cloud:spring-cloud-starter-contract-stub-runner 3.0.6
  • org.junit.jupiter:junit-jupiter-api 5.7.2
  • org.junit.jupiter:junit-jupiter-engine 5.7.2
  • org.junit.jupiter:junit-jupiter-params 5.7.2
  • org.junit.platform:junit-platform-commons 1.7.2
  • org.junit.platform:junit-platform-engine 1.7.2
  • io.springfox:springfox-swagger2 3.0.0
  • com.github.hmcts.java-logging:logging 6.0.1
  • net.logstash.logback:logstash-logback-encoder 6.6
  • org.slf4j:slf4j-api 1.7.30
  • org.slf4j:jul-to-slf4j 1.7.32
  • ch.qos.logback:logback-classic 1.2.6
  • ch.qos.logback:logback-core 1.2.13
  • com.github.hmcts.java-logging:logging-appinsights 6.0.1
  • com.github.hmcts:service-auth-provider-java-client 4.0.3
  • com.github.hmcts:idam-java-client 2.0.1
  • com.azure:azure-messaging-servicebus 7.8.0
  • com.azure:azure-core 1.45.1
  • com.github.ben-manes.caffeine:caffeine 3.0.6
  • net.minidev:json-smart 2.4.9
  • org.glassfish:jakarta.el 4.0.2
  • org.apache.tomcat.embed:tomcat-embed-core 9.0.84
  • org.apache.tomcat.embed:tomcat-embed-el 9.0.84
  • org.apache.tomcat.embed:tomcat-embed-websocket 9.0.84
  • commons-fileupload:commons-fileupload 1.5
  • commons-io:commons-io 2.8.0
  • org.projectlombok:lombok 1.18.30
  • org.eclipse.jetty:jetty-server 9.4.53.v20231009
  • org.eclipse.jetty:jetty-alpn-client 9.4.53.v20231009
  • org.eclipse.jetty:jetty-continuation 9.4.53.v20231009
  • org.eclipse.jetty:jetty-util 9.4.53.v20231009
  • org.eclipse.jetty:jetty-util-ajax 9.4.53.v20231009
  • org.eclipse.jetty:jetty-xml 9.4.53.v20231009
  • org.eclipse.jetty:jetty-client 9.4.53.v20231009
  • org.eclipse.jetty:jetty-security 9.4.53.v20231009
  • org.eclipse.jetty:jetty-http 9.4.53.v20231009
  • org.eclipse.jetty:jetty-io 9.4.53.v20231009
  • org.eclipse.jetty.http2:http2-server 9.4.53.v20231009
  • org.eclipse.jetty.http2:http2-common 9.4.53.v20231009
  • org.eclipse.jetty:jetty-servlet 9.4.53.v20231009
  • org.eclipse.jetty:jetty-servlets 9.4.53.v20231009
  • org.eclipse.jetty:jetty-webapp 9.4.53.v20231009
  • org.eclipse.jetty:jetty-proxy 9.4.53.v20231009
  • org.eclipse.jetty:jetty-alpn-server 9.4.53.v20231009
  • org.eclipse.jetty:jetty-alpn-conscrypt-server 9.4.53.v20231009
  • org.eclipse.jetty:jetty-alpn-conscrypt-client 9.4.53.v20231009
  • io.netty:netty-buffer 4.1.104.Final
  • io.netty:netty-codec 4.1.104.Final
  • io.netty:netty-codec-dns 4.1.104.Final
  • io.netty:netty-codec-http 4.1.104.Final
  • io.netty:netty-codec-http2 4.1.104.Final
  • io.netty:netty-codec-socks 4.1.104.Final
  • io.netty:netty-common 4.1.104.Final
  • io.netty:netty-handler 4.1.104.Final
  • io.netty:netty-handler-proxy 4.1.104.Final
  • io.netty:netty-resolver 4.1.104.Final
  • io.netty:netty-resolver-dns 4.1.104.Final
  • io.netty:netty-resolver-dns-native-macos 4.1.104.Final
  • io.netty:netty-transport 4.1.104.Final
  • io.netty:netty-transport-native-epoll 4.1.104.Final
  • io.netty:netty-transport-native-kqueue 4.1.104.Final
  • io.netty:netty-transport-native-unix-common 4.1.104.Final
  • org.yaml:snakeyaml 2.2
  • io.projectreactor.netty:reactor-netty-core 1.1.15
  • io.projectreactor.netty:reactor-netty-http 1.1.15
  • com.fasterxml.woodstox:woodstox-core 6.4.0
  • org.mockito:mockito-inline 3.11.1
  • org.powermock:powermock-module-junit4 2.0.9
  • com.github.tomakehurst:wiremock 2.27.2
  • com.github.hmcts:befta-fw 8.7.11
  • com.github.hmcts:fortify-client 1.2.0
gradle/suppress.gradle
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6
helm-values
charts/hmc-hmi-inbound-adapter/values.yaml
helmv3
charts/hmc-hmi-inbound-adapter/Chart.yaml
  • java 5.0.0
  • servicebus 1.0.4
terraform
infrastructure/apim.tf
infrastructure/state.tf
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.3.9

  • Check this box to trigger a request for Renovate to run again on this repository

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.