Giter Club home page Giter Club logo

civil-general-applications's Introduction

civil-general-applications

Build Status

Notes

JUnit 5 is now enabled by default in the project. Please refrain from using JUnit4 and use the next generation

After updated to OpenApi 3.0, the swagger interface now is at http://localhost:4550/swagger-ui/index.html

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

for running depdendency check locally ./gradlew --no-daemon --stacktrace -DdependencyCheck.failBuild=true -Dnvd.api.check.validforhours=24 -Danalyzer.central.enabled=false -Danalyzer.retirejs.enabled=false -Danalyzer.ossindex.enabled=false -Dnvd.api.key=<your_nvd_api_key> dependencyCheckAggregate

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/civil-general-applications directory) by executing the following command:

  docker-compose up

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

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

  curl http://localhost:4550/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.

Other

Hystrix offers much more than Circuit Breaker pattern implementation or command monitoring. Here are some other functionalities it provides:

Adding Git Conventions

Include the git conventions.

  • Make sure your git version is at least 2.9 using the git --version command
  • Run the following command:
git config --local core.hooksPath .git-config/hooks

Once the above is done, you will be required to follow specific conventions for your commit messages and branch names.

If you violate a convention, the git error message will report clearly the convention you should follow and provide additional information where necessary.

Optional:

  • Install this plugin in Chrome: https://github.com/refined-github/refined-github

    It will automatically set the title for new PRs according to the first commit message, so you won't have to change it manually.

    Note that it will also alter other behaviours in GitHub. Hopefully these will also be improvements to you.

In case of problems

  1. Get in touch with your Technical Lead so that they can get you unblocked

  2. If the rare eventuality that the above is not possible, you can disable enforcement of conventions using the following command

    git config --local --unset core.hooksPath

    Still, you shouldn't be doing it so make sure you get in touch with a Technical Lead soon afterwards.

License

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

civil-general-applications's People

Contributors

azam-hmcts avatar chris-pateman avatar dawidwalter avatar deepthidoppalapudihmcts avatar dependabot[bot] avatar drummondjm avatar faranhmcts avatar gareth40343 avatar gmikerlemos avatar hmcts-jenkins-a-to-c[bot] avatar hmcts-jenkins-cft[bot] avatar karthick-mohanasundaram-hmcts avatar leonardopalmeiro avatar linusnorton avatar madhan-mahadevan avatar manish14836 avatar mmnycz avatar mounikahmcts avatar neeta-hmcts avatar paul-pearson avatar pliao-hmcts avatar renovate-bot avatar renovate[bot] avatar rishikrsharma avatar ruban72 avatar smitatalawadekar-hmcts avatar ushapanneerselvam1 avatar v1ferrarij avatar vasudevganesanhmcts avatar zikrurr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ssian2

civil-general-applications's Issues

Dependency Dashboard

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

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update dependency au.com.dius.pact.consumer:junit5 to v4.6.14
  • Update dependency checkstyle to v10.18.1
  • Update dependency com.github.hmcts.java-logging:logging to v6.1.6
  • Update dependency com.github.hmcts:fortify-client to v1.4.4
  • Update dependency com.github.hmcts:service-auth-provider-java-client to v5.2.0
  • Update dependency com.networknt:json-schema-validator to v1.5.1
  • Update dependency com.nimbusds:nimbus-jose-jwt to v9.40
  • Update dependency com.squareup.okio:okio to v3.9.0
  • Update dependency hashicorp/terraform to v1.9.5
  • Update dependency io.github.openfeign:feign-httpclient to v12.5
  • Update dependency io.jsonwebtoken:jjwt to v0.12.6
  • Update dependency microsoft/ApplicationInsights-Java to v3.5.4
  • Update dependency node to v18.20.4
  • Update dependency org.apache.httpcomponents.client5:httpclient5 to v5.3.1
  • Update dependency org.codehaus.groovy:groovy-all to v2.5.23
  • Update dependency org.elasticsearch:elasticsearch to v7.17.23
  • Update dependency org.jdbi:jdbi3-sqlobject to v3.45.4
  • Update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui to v2.6.0
  • Update dependency org.yaml:snakeyaml to v2.3
  • Update junit5 monorepo (org.junit:junit-bom, org.junit.jupiter:junit-jupiter-engine, org.junit.jupiter:junit-jupiter-api, org.junit.platform:junit-platform-engine, org.junit.platform:junit-platform-commons, org.junit.jupiter:junit-jupiter-params)
  • Update kotlin monorepo to v1.9.25 (org.jetbrains.kotlin:kotlin-reflect, org.jetbrains.kotlin:kotlin-stdlib, org.jetbrains.kotlin:kotlin-stdlib-jdk8, org.jetbrains.kotlin:kotlin-stdlib-jdk7, org.jetbrains.kotlin:kotlin-stdlib-common)
  • Update log4j2 monorepo to v2.23.1 (org.apache.logging.log4j:log4j-to-slf4j, org.apache.logging.log4j:log4j-api)
  • Update mockito monorepo (org.mockito:mockito-inline, org.mockito:mockito-junit-jupiter, org.mockito:mockito-core)
  • Update plugin au.com.dius.pact to v4.6.14
  • Update plugin com.github.ben-manes.versions to v0.51.0
  • Update plugin org.owasp.dependencycheck to v9.2.0
  • Update plugin org.sonarqube to v3.5.0.2730
  • Update plugin org.springframework.boot to v3.3.3
  • Update spring cloud (org.springframework.cloud:spring-cloud-openfeign-core, org.springframework.cloud:spring-cloud-starter-openfeign, org.springframework.cloud:spring-cloud-context, org.springframework.cloud:spring-cloud-dependencies)
  • Update spring security to v6.3.3 (org.springframework.security:spring-security-crypto, org.springframework.security:spring-security-oauth2-core, org.springframework.security:spring-security-oauth2-jose, org.springframework.security:spring-security-oauth2-client, org.springframework.security:spring-security-oauth2-resource-server, org.springframework.security:spring-security-core, org.springframework.security:spring-security-config, org.springframework.security:spring-security-web)
  • Update versions.camunda to v7.21.0 (org.camunda.bpm:camunda-engine-rest-core, org.camunda.community.rest:camunda-platform-7-rest-client-spring-boot-starter, org.camunda.bpm:camunda-external-task-client)
  • Update Helm release ccd to v9
  • Update Terraform azurerm to v4
  • Update actions/stale action to v9
  • Update dependency com.github.hmcts:core-case-data-store-client to v5
  • Update dependency com.launchdarkly:launchdarkly-java-server-sdk to v7
  • Update dependency io.github.openfeign:feign-httpclient to v13
  • Update dependency node to v20
  • Update dependency org.codehaus.groovy:groovy-all to v3
  • Update dependency org.elasticsearch:elasticsearch to v8
  • Update dependency org.json:json to v20240303
  • Update dependency org.springframework.cloud:spring-cloud-dependencies to v2023
  • Update dependency uk.gov.service.notify:notifications-java-client to v5
  • Update hmctspublic.azurecr.io/base/java Docker tag to v21
  • Update kotlin monorepo to v2 (major) (org.jetbrains.kotlin:kotlin-reflect, org.jetbrains.kotlin:kotlin-stdlib, org.jetbrains.kotlin:kotlin-stdlib-jdk8, org.jetbrains.kotlin:kotlin-stdlib-jdk7, org.jetbrains.kotlin:kotlin-stdlib-common)
  • Update plugin io.freefair.lombok to v8
  • Update plugin org.owasp.dependencycheck to v10
  • Update plugin org.sonarqube to v5
  • Update spring statemachine to v4 (major) (org.springframework.statemachine:spring-statemachine-test, org.springframework.statemachine:spring-statemachine-core)

Open

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

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/java 17-distroless
github-actions
.github/workflows/main.yml
.github/workflows/stale.yml
  • actions/stale v6
gradle
build.gradle
  • io.spring.dependency-management 1.1.0
  • org.springframework.boot 3.1.6
  • org.owasp.dependencycheck 9.0.10
  • com.github.ben-manes.versions 0.45.0
  • org.sonarqube 3.4.0.2513
  • au.com.dius.pact 4.3.15
  • io.freefair.lombok 6.6.1
  • checkstyle 10.4
  • jacoco 0.8.8
  • org.mybatis:mybatis 3.5.11
  • com.google.guava:guava 33.1.0-jre
  • com.fasterxml.jackson.core:jackson-databind 2.17.0
  • com.fasterxml.jackson.core:jackson-core 2.17.0
  • com.fasterxml.jackson.core:jackson-annotations 2.17.0
  • com.squareup.okio:okio 3.4.0
  • org.jetbrains.kotlin:kotlin-stdlib-common 1.8.10
  • org.jetbrains.kotlin:kotlin-stdlib-jdk7 1.8.10
  • org.jetbrains.kotlin:kotlin-stdlib-jdk8 1.8.10
  • org.jetbrains.kotlin:kotlin-stdlib 1.8.0
  • org.jetbrains.kotlin:kotlin-reflect 1.8.10
  • org.json:json 20231013
  • org.yaml:snakeyaml 2.2
  • org.springframework.security:spring-security-crypto 6.2.1
  • org.slf4j:slf4j-nop 2.0.5
  • commons-fileupload:commons-fileupload 1.5
  • com.amazonaws:aws-java-sdk-core 1.12.689
  • com.amazonaws:aws-java-sdk-kms 1.12.689
  • com.amazonaws:aws-java-sdk-s3 1.12.689
  • org.codehaus.groovy:groovy-all 2.4.21
  • ch.qos.logback:logback-core 1.4.12
  • ch.qos.logback:logback-classic 1.4.12
  • org.springframework.cloud:spring-cloud-dependencies 2021.0.8
  • org.junit.jupiter:junit-jupiter-api 5.7.0
  • org.junit.jupiter:junit-jupiter-engine 5.7.0
  • org.junit.jupiter:junit-jupiter-params 5.7.0
  • org.junit.platform:junit-platform-commons 1.9.2
  • org.junit.platform:junit-platform-engine 1.9.2
  • org.apache.httpcomponents.client5:httpclient5 5.2.1
  • org.springframework.statemachine:spring-statemachine-core 3.2.0
  • org.springframework.statemachine:spring-statemachine-test 3.2.0
  • org.springdoc:springdoc-openapi-starter-webmvc-ui 2.0.4
  • org.jdbi:jdbi3-sqlobject 3.37.1
  • org.jdbi:jdbi3-spring4 3.19.0
  • org.apache.logging.log4j:log4j-api 2.20.0
  • org.apache.logging.log4j:log4j-to-slf4j 2.20.0
  • com.github.hmcts.java-logging:logging 6.0.1
  • org.springframework.cloud:spring-cloud-starter-netflix-hystrix 2.2.10.RELEASE
  • org.springframework.cloud:spring-cloud-context 4.0.4
  • org.springframework.cloud:spring-cloud-starter-openfeign 4.0.4
  • org.springframework.cloud:spring-cloud-openfeign-core 4.0.4
  • io.github.openfeign:feign-httpclient 12.1
  • com.github.hmcts:service-auth-provider-java-client 5.1.0
  • com.github.hmcts:core-case-data-store-client 4.9.2
  • com.github.hmcts:document-management-client 7.0.0
  • com.github.hmcts:fees-java-client 0.0.6
  • com.github.hmcts:payments-java-client 1.6.7
  • uk.gov.service.notify:notifications-java-client 4.1.0-RELEASE
  • com.github.hmcts:ccd-case-document-am-client 1.7.1
  • org.projectlombok:lombok 1.18.28
  • com.github.ben-manes.caffeine:caffeine 3.1.3
  • org.springframework.security:spring-security-web 6.0.8
  • org.springframework.security:spring-security-config 6.0.8
  • org.springframework.security:spring-security-core 6.0.8
  • org.springframework.security:spring-security-oauth2-resource-server 6.0.8
  • org.springframework.security:spring-security-oauth2-client 6.0.8
  • org.springframework.security:spring-security-oauth2-jose 6.0.8
  • org.springframework.security:spring-security-oauth2-core 6.0.8
  • com.nimbusds:nimbus-jose-jwt 9.30.1
  • io.jsonwebtoken:jjwt 0.9.1
  • com.github.hmcts:idam-java-client 3.0.3
  • org.elasticsearch:elasticsearch 7.15.2
  • com.networknt:json-schema-validator 1.0.75
  • org.camunda.bpm:camunda-external-task-client 7.20.0
  • org.camunda.community.rest:camunda-platform-7-rest-client-spring-boot-starter 7.20.0
  • org.camunda.bpm:camunda-engine-rest-core 7.20.0
  • com.fasterxml.jackson.module:jackson-module-kotlin 2.14.2
  • com.fasterxml.jackson.datatype:jackson-datatype-jsr310 2.15.2
  • javax.xml.bind:jaxb-api 2.3.1
  • jakarta.xml.bind:jakarta.xml.bind-api 4.0.0
  • org.glassfish.jaxb:jaxb-runtime 4.0.2
  • com.launchdarkly:launchdarkly-java-server-sdk 6.3.0
  • org.mockito:mockito-junit-jupiter 5.1.1
  • org.mockito:mockito-core 5.1.1
  • org.mockito:mockito-junit-jupiter 5.1.1
  • org.mockito:mockito-inline 5.1.1
  • com.github.hmcts:fortify-client 1.3.0
  • au.com.dius.pact.consumer:junit5 4.6.5
  • org.hamcrest:java-hamcrest 2.0.0.0
  • org.junit.jupiter:junit-jupiter-api 5.10.2
  • org.junit.jupiter:junit-jupiter-engine 5.10.2
  • org.junit:junit-bom 5.9.2
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6
helm-values
charts/civil-general-applications/values.yaml
helmv3
charts/civil-general-applications/Chart.yaml
  • java 5.2.0
  • civil-service 0.0.64
  • ccd 8.0.29
  • xui-webapp ~1.0.8
  • idam-pr ~2.3.0
  • camunda-bpm 0.0.41
nvm
.nvmrc
  • node 18.17.1
regex
Dockerfile
  • microsoft/ApplicationInsights-Java 3.4.9
Dockerfile
  • microsoft/ApplicationInsights-Java 3.4.9
terraform
infrastructure/key-vault.tf
infrastructure/main.tf
infrastructure/providers.tf
infrastructure/state.tf
  • azurerm 3.85.0
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.6.6

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