Coder Social home page Coder Social logo

prl-cos-api's Introduction

prl-cos-api

Build Status

Notes

This is manage order changes base branch test.

Update with master - Respondent dynamic task list with stop representation.

Since Spring Boot 2.1 bean overriding is disabled. If you want to enable it you will need to set spring.main.allow-bean-definition-overriding to true.

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

Building and deploying the application

Building the applications

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 distributions (created in build/install/prl-cos-api directory) by executing the following command:

  docker-compose up

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

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

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

Troubleshooting

Managing Preview environment PODs

Make sure you have added the label 'enable_keep_helm' while creating the PR. Otherwise, add the label and re-trigger the build.

License

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

prl-cos-api's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prl-cos-api'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 com.github.hmcts:fortify-client to v1.4.1
  • Update dependency com.launchdarkly:launchdarkly-java-server-sdk to v6.3.0
  • Update dependency com.puppycrawl.tools:checkstyle to v8.45.1
  • Update dependency commons-io:commons-io to v2.16.1
  • Update dependency commons-net:commons-net to v3.10.0
  • Update dependency hashicorp/terraform to v1.8.4
  • Update dependency info.solidsoft.gradle.pitest:gradle-pitest-plugin to v1.15.0
  • Update dependency org.apache.commons:commons-lang3 to v3.14.0
  • Update dependency org.apiguardian:apiguardian-api to v1.1.2
  • Update dependency org.awaitility:awaitility to v4.2.1
  • Update dependency org.pitest:pitest to v1.16.1
  • Update dependency org.skyscreamer:jsonassert to v1.5.1
  • Update dependency org.testng:testng to v7.10.2
  • Update dependency uk.gov.hmcts.reform:properties-volume-spring-boot-starter to v0.1.0
  • Update junit5 monorepo (org.junit.jupiter:junit-jupiter-api, org.junit.jupiter:junit-jupiter-engine, org.junit.platform:junit-platform-commons, org.junit.vintage:junit-vintage-engine, org.junit.jupiter:junit-jupiter)
  • Update plugin au.com.dius.pact to v4.6.9
  • Update plugin io.spring.dependency-management to v1.1.5
  • Update spring security (org.springframework.security:spring-security-core, org.springframework.security:spring-security-web, org.springframework.security:spring-security-crypto, org.springframework.security:spring-security-rsa)
  • Update actions/checkout action to v4
  • Update dependency com.launchdarkly:launchdarkly-java-server-sdk to v7
  • Update dependency com.puppycrawl.tools:checkstyle to v10
  • Update dependency com.sun.xml.bind:jaxb-osgi to v4
  • Update dependency net.serenity-bdd:serenity-cucumber to v4
  • Update dependency org.apache.pdfbox:pdfbox to v3
  • Update dependency org.elasticsearch:elasticsearch to v8
  • Update dependency uk.gov.hmcts.reform:service-auth-provider-client to v4
  • Update dependency uk.gov.service.notify:notifications-java-client to v5

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update Helm release java to v5.2.1
  • Update dependency com.github.hmcts:send-letter-client to v4.0.4
  • Update dependency gradle to v7.6.4
  • Update dependency jacoco to v0.8.12
  • Update dependency org.elasticsearch:elasticsearch to v7.17.21
  • Update dependency org.projectlombok:lombok to v1.18.32
  • Update dependency org.springframework.retry:spring-retry to v2.0.6
  • Update org.apache.tomcat.embed:10.1.23 to v10.1.24 (org.apache.tomcat.embed:tomcat-embed-websocket, org.apache.tomcat.embed:tomcat-embed-core)
  • Update plugin com.github.hmcts.rse-cft-lib to v0.19.1238
  • Update versions.jackson to v2.17.1 (com.fasterxml.jackson.core:jackson-annotations, com.fasterxml.jackson.module:jackson-module-parameter-names, com.fasterxml.jackson.datatype:jackson-datatype-jsr310, com.fasterxml.jackson.datatype:jackson-datatype-jdk8, com.fasterxml.jackson.core:jackson-databind, com.fasterxml.jackson.core:jackson-core)
  • Update dependency com.fasterxml.jackson.datatype:jackson-datatype-jsr310 to v2.17.1
  • Update dependency com.sendgrid:sendgrid-java to v4.10.2
  • Update dependency io.rest-assured:json-path to v5.4.0
  • Update dependency io.rest-assured:rest-assured to v5.4.0
  • Update dependency io.rest-assured:xml-path to v5.4.0
  • Update dependency org.slf4j:slf4j-simple to v1.7.36
  • Update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui to v2.5.0
  • Update dependency uk.gov.service.notify:notifications-java-client to v3.19.2-RELEASE
  • Update log4j2 monorepo to v2.23.1 (org.apache.logging.log4j:log4j-to-slf4j, org.apache.logging.log4j:log4j-api)
  • Update plugin com.github.ben-manes.versions to v0.51.0
  • Update plugin info.solidsoft.pitest to v1.15.0
  • Update plugin org.owasp.dependencycheck to v9.2.0
  • Update plugin org.sonarqube to v3.5.0.2730
  • Update spring cloud (org.springframework.cloud:spring-cloud-contract-wiremock, org.springframework.cloud:spring-cloud-starter-openfeign, org.springframework.cloud:spring-cloud-starter-loadbalancer, org.springframework.cloud:spring-cloud-starter-bootstrap)
  • Update versions.serenity to v4.1.14 (net.serenity-bdd:serenity-spring, net.serenity-bdd:serenity-rest-assured, net.serenity-bdd:serenity-junit, net.serenity-bdd:serenity-core)
  • Update actions/setup-java action to v4
  • Update dependency com.github.hmcts:core-case-data-store-client to v5
  • Update dependency com.google.guava:guava to v33
  • Update dependency org.json:json to v20240303
  • Update dependency org.slf4j:slf4j-simple to v2
  • Update hmctspublic.azurecr.io/base/java Docker tag to v21
  • Update plugin org.sonarqube to v5
  • Update spring security to v6 (major) (org.springframework.security:spring-security-core, org.springframework.security:spring-security-web, org.springframework.security:spring-security-crypto)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

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/ci.yml
  • actions/checkout v1
  • actions/setup-java v1
gradle
gradle.properties
settings.gradle
build.gradle
  • net.serenity-bdd:serenity-gradle-plugin 2.4.34
  • com.github.ben-manes.versions 0.42.0
  • info.solidsoft.pitest 1.7.4
  • io.spring.dependency-management 1.0.11.RELEASE
  • org.owasp.dependencycheck 9.0.4
  • org.sonarqube 3.3
  • org.springframework.boot 3.1.3
  • au.com.dius.pact 4.2.6
  • com.github.hmcts.rse-cft-lib 0.19.914
  • com.fasterxml.jackson.core:jackson-core 2.17.0
  • com.fasterxml.jackson.core:jackson-databind 2.17.0
  • com.fasterxml.jackson.datatype:jackson-datatype-jdk8 2.17.0
  • com.fasterxml.jackson.datatype:jackson-datatype-jsr310 2.17.0
  • com.fasterxml.jackson.module:jackson-module-parameter-names 2.17.0
  • io.netty:netty-buffer 4.1.108.Final
  • io.netty:netty-codec 4.1.108.Final
  • io.netty:netty-codec-http 4.1.108.Final
  • io.netty:netty-common 4.1.108.Final
  • io.netty:netty-handler 4.1.108.Final
  • io.netty:netty-resolver 4.1.108.Final
  • io.netty:netty-transport 4.1.108.Final
  • commons-beanutils:commons-beanutils 1.9.4
  • commons-fileupload:commons-fileupload 1.5
  • commons-fileupload:commons-fileupload 1.5
  • org.json:json 20231013
  • com.google.guava:guava 32.1.3-jre
  • org.yaml:snakeyaml 2.2
  • org.springframework.security:spring-security-crypto 5.7.12
  • org.apache.tomcat.embed:tomcat-embed-core 10.1.23
  • org.apache.tomcat.embed:tomcat-embed-websocket 10.1.23
  • org.springdoc:springdoc-openapi-starter-webmvc-ui 2.3.0
  • org.springframework:spring-context-support 6.0.11
  • org.testng:testng 7.7.1
  • org.testng:testng 7.7.1
  • org.testng:testng 7.7.1
  • org.testng:testng 7.7.1
  • org.junit.jupiter:junit-jupiter 5.10.0
  • org.junit.jupiter:junit-jupiter 5.10.0
  • org.projectlombok:lombok 1.18.30
  • junit:junit 4.13.1
  • com.sun.xml.bind:jaxb-osgi 3.0.2
  • com.github.kirviq:dumbster 1.7.1
  • com.puppycrawl.tools:checkstyle 8.43
  • commons-io:commons-io 2.7
  • jakarta.activation:jakarta.activation-api 2.1.0
  • org.apache.commons:commons-lang3 3.9
  • org.apache.commons:commons-math3 3.6.1
  • org.springframework:spring-context-support 6.0.11
  • org.springframework.boot:spring-boot-starter-aop 3.1.3
  • org.springframework.boot:spring-boot-starter-web 3.1.3
  • org.springframework.boot:spring-boot-starter-validation 3.1.3
  • org.springframework.cloud:spring-cloud-starter-bootstrap 4.0.4
  • org.springframework.cloud:spring-cloud-starter-loadbalancer 4.0.4
  • org.springframework.retry:spring-retry 2.0.4
  • com.github.hmcts:core-case-data-store-client 4.9.2
  • uk.gov.hmcts.reform:logging 5.1.7
  • uk.gov.hmcts.reform:logging-appinsights 5.1.7
  • uk.gov.hmcts.reform:logging-httpcomponents 5.1.7
  • uk.gov.hmcts.reform:logging-spring 5.1.7
  • org.apache.logging.log4j:log4j-api 2.20.0
  • org.apache.logging.log4j:log4j-to-slf4j 2.20.0
  • uk.gov.hmcts.reform:properties-volume-spring-boot-starter 0.0.4
  • uk.gov.hmcts.reform:service-auth-provider-client 3.1.1
  • com.github.hmcts:send-letter-client 4.0.2
  • uk.gov.service.notify:notifications-java-client 3.14.1-RELEASE
  • org.apache.httpcomponents:httpclient 4.5.13
  • org.springframework.boot:spring-boot-starter-quartz 3.1.3
  • javax.ws.rs:javax.ws.rs-api 2.1.1
  • uk.gov.hmcts.reform:idam-client 2.0.0
  • com.github.hmcts:ccd-case-document-am-client 1.7.3
  • org.apache.pdfbox:pdfbox 2.0.24
  • com.launchdarkly:launchdarkly-java-server-sdk 6.2.1
  • org.elasticsearch:elasticsearch 7.17.15
  • javax.json:javax.json-api 1.1.4
  • org.glassfish:javax.json 1.1.4
  • com.github.hmcts:core-case-data-store-client 4.9.2
  • com.sendgrid:sendgrid-java 4.9.3
  • com.github.hmcts:core-case-data-store-client 4.9.2
  • uk.gov.hmcts.reform:service-auth-provider-client 4.0.0
  • commons-net:commons-net 3.9.0
  • org.springframework.security:spring-security-web 5.7.12
  • org.springframework.security:spring-security-core 5.7.12
  • org.springframework.cloud:spring-cloud-starter-openfeign 4.0.4
  • commons-beanutils:commons-beanutils 1.9.4
  • com.fasterxml.jackson.core:jackson-annotations 2.17.0
  • com.google.guava:guava 32.1.3-jre
  • org.bouncycastle:bcpkix-jdk15on 1.70
  • org.springframework.security:spring-security-rsa 1.0.11.RELEASE
  • org.springframework.security:spring-security-crypto 5.7.12
  • io.netty:netty-transport-native-epoll 4.1.108.Final
  • com.warrenstrange:googleauth 1.5.0
  • org.awaitility:awaitility 4.0.2
  • org.springframework.cloud:spring-cloud-contract-wiremock 4.0.4
  • io.rest-assured:rest-assured 5.3.2
  • io.rest-assured:json-path 5.3.2
  • io.rest-assured:xml-path 5.3.2
  • net.serenity-bdd:serenity-core 4.0.28
  • net.serenity-bdd:serenity-cucumber 1.9.50
  • net.serenity-bdd:serenity-junit 4.0.28
  • net.serenity-bdd:serenity-rest-assured 4.0.28
  • net.serenity-bdd:serenity-spring 4.0.28
  • com.fasterxml.jackson.datatype:jackson-datatype-jsr310 2.16.0
  • com.mashape.unirest:unirest-java 1.4.9
  • org.skyscreamer:jsonassert 1.2.3
  • au.com.dius.pact.consumer:junit5 4.1.11
  • au.com.dius.pact.consumer:java8 4.1.11
  • org.junit.vintage:junit-vintage-engine 5.8.2
  • org.junit.platform:junit-platform-commons 1.8.2
  • org.junit.jupiter:junit-jupiter-api 5.10.0
  • org.junit.jupiter:junit-jupiter-engine 5.10.0
  • org.junit.jupiter:junit-jupiter-engine 5.7.2
  • org.apiguardian:apiguardian-api 1.0.0
  • org.junit.jupiter:junit-jupiter-api 5.7.2
  • com.github.hmcts:fortify-client 1.2.2
  • org.slf4j:slf4j-simple 1.6.4
  • org.pitest:pitest 1.7.3
  • info.solidsoft.gradle.pitest:gradle-pitest-plugin 1.4.5
  • org.codehaus.sonar-plugins:sonar-pitest-plugin 0.5
  • jacoco 0.8.11
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6.3
helmv3
charts/prl-cos/Chart.yaml
  • java 5.2.0
terraform
infrastructure/main.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.