Giter Club home page Giter Club logo

sscs-evidence-share's Introduction

โš ๏ธ Archived

This repository has been archived as its functionality has been moved to sscs-tribunals-case-api.

sscs-evidence-share

Microservice to handle sending evidence via an SFTP server to DWP from SSCS.

Build Status

Notes

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 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/sscs-evidence-share directory) by executing the following command:

  docker-compose up

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

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

  curl http://localhost:8091/health

You should get a response similar to this:

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

To run the application locally (with dummy call to bulk print service)

 SPRING_PROFILES_ACTIVE=local ./gradlew bootRun

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.

License

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

sscs-evidence-share's People

Contributors

amoslv1 avatar andreitrushkov avatar benouaer avatar bensonlievoco avatar chris-moreton avatar chrisdavecm avatar danhamilton avatar dattipoehmcts avatar dependabot-preview[bot] avatar dependabot[bot] avatar doncem avatar gmikerlemos avatar gokul-sol avatar hajam09 avatar hashimalisolirius avatar jhart-dev avatar katkovacs avatar lgonczar avatar lturkingtonhmcts avatar mohammedcodess avatar nickhill111 avatar rasikasri avatar renovate[bot] avatar rishikrsharma avatar rmurphy-hmcts avatar ruban72 avatar ryandac avatar srochani avatar stevensonsi avatar suetlaihmcts avatar

Stargazers

 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

sscs-evidence-share's Issues

Dependency Dashboard

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

Rate-Limited

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

  • Update dependency com.github.hmcts:sscs-common to v5.4.1
  • Update HMCTS Core (com.github.hmcts:fortify-client, uk.gov.hmcts.java)
  • Update Logging (com.github.hmcts:java-logging, net.logstash.logback:logstash-logback-encoder)
  • Update hmctspublic.azurecr.io/base/java Docker tag to v21
  • Update plugin org.sonarqube to v5
  • Update Helm release java to v5.2.0
  • Update dependency org.apache.pdfbox:pdfbox to v3
  • Update dependency joda-time:joda-time to v2.12.7
  • Update dependency com.h2database:h2 to v2.2.224
  • Update dependency gradle to v8.7
  • Update dependency org.apache.xmlgraphics:batik-all to v1.17
  • Update dependency com.github.hmcts:sscs-pdf-email-common to v5
  • Update dependency pmd to v7
  • Update plugin nebula.lint to v19
  • ๐Ÿ” 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.

  • Update Spring All (org.springframework:spring-messaging, org.springframework:spring-jms, org.springframework:spring-webmvc, org.springframework:spring-web, org.springframework:spring-tx, org.springframework:spring-orm, org.springframework:spring-jdbc, org.springframework:spring-jcl, org.springframework:spring-expression, org.springframework:spring-core, org.springframework:spring-context-support, org.springframework:spring-context, org.springframework:spring-beans, org.springframework:spring-aspects, org.springframework:spring-aop, org.springframework.cloud:spring-cloud-dependencies, org.springframework.cloud:spring-cloud-starter-openfeign, org.springframework.boot:spring-boot-starter-test, org.springframework.security:spring-security-crypto, org.springframework.cloud:spring-cloud-starter-bootstrap, org.springframework.boot, io.spring.dependency-management)
  • Update Spring All (major) (org.springframework:spring-messaging, org.springframework:spring-jms, org.springframework:spring-webmvc, org.springframework:spring-web, org.springframework:spring-tx, org.springframework:spring-orm, org.springframework:spring-jdbc, org.springframework:spring-jcl, org.springframework:spring-expression, org.springframework:spring-core, org.springframework:spring-context-support, org.springframework:spring-context, org.springframework:spring-beans, org.springframework:spring-aspects, org.springframework:spring-aop, org.springframework.cloud:spring-cloud-dependencies, org.springframework.cloud:spring-cloud-starter-openfeign, org.springframework.boot:spring-boot-starter-test, org.springframework.security:spring-security-crypto, org.springframework.cloud:spring-cloud-starter-bootstrap, org.springframework.retry:spring-retry, org.springframework.boot)
  • Update HMCTS Core (major) (com.github.hmcts:idam-java-client, com.github.hmcts:service-auth-provider-java-client)
  • Update HMCTS Non Core (major) (com.github.hmcts:send-letter-client, com.github.hmcts:cmc-pdf-service-client)
  • Update Automated Checks (info.solidsoft.gradle.pitest:gradle-pitest-plugin, org.pitest:pitest, info.solidsoft.pitest, org.sonarqube, org.owasp.dependencycheck)
  • Update Testing (org.junit.platform:junit-platform-commons, org.junit.jupiter:junit-jupiter-api, org.junit.jupiter:junit-jupiter-engine, au.com.dius.pact.consumer:java8, au.com.dius.pact.consumer:junit5, org.junit.platform:junit-platform-engine, org.junit.vintage:junit-vintage-engine, org.junit.jupiter:junit-jupiter-params, au.com.dius.pact, com.github.ben-manes.versions)
  • Update dependency org.mockito:mockito-core to v5
  • Update Tools - General (org.projectlombok:lombok, commons-io:commons-io, com.google.guava:guava, com.launchdarkly:launchdarkly-java-server-sdk, io.freefair.lombok)
  • Update Tools - Data Processing to v2.17.0 (com.fasterxml.jackson.core:jackson-databind, com.fasterxml.jackson.core:jackson-core)
  • Update Tools - General (major) (org.yaml:snakeyaml, com.google.guava:guava, com.launchdarkly:launchdarkly-java-server-sdk)
  • Update dependency org.apache.pdfbox:pdfbox to v2.0.31
  • Update dependency org.elasticsearch:elasticsearch to v7.17.20
  • Update Networking (org.apache.qpid:qpid-jms-client, io.rest-assured:xml-path, io.rest-assured:json-path, io.rest-assured:rest-assured, org.springdoc:springdoc-openapi-ui)
  • Update dependency hashicorp/terraform to v1.8.1
  • Update dependency org.apache.qpid:qpid-jms-client to v2
  • Update dependency org.elasticsearch:elasticsearch to v8
  • Update netty monorepo to v4.1.109.Final (io.netty:netty-transport-native-unix-common, io.netty:netty-transport-native-kqueue, io.netty:netty-transport-native-epoll, io.netty:netty-transport-classes-kqueue, io.netty:netty-transport-classes-epoll, io.netty:netty-transport, io.netty:netty-resolver, io.netty:netty-handler, io.netty:netty-codec-http, io.netty:netty-codec, io.netty:netty-common, io.netty:netty-buffer)
  • Update plugin nebula.lint to v18.1.0
  • Click on this checkbox to rebase all open PRs at once

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/java 17-distroless
gradle
build.gradle
  • io.spring.dependency-management 1.1.0
  • org.springframework.boot 2.7.12
  • uk.gov.hmcts.java 0.12.43
  • com.github.ben-manes.versions 0.46.0
  • org.owasp.dependencycheck 9.0.6
  • org.sonarqube 4.0.0.2929
  • au.com.dius.pact 4.3.14
  • io.freefair.lombok 8.0.1
  • nebula.lint 18.0.3
  • info.solidsoft.pitest 1.9.11
  • pmd 6.55.0
  • org.springframework.retry:spring-retry 1.3.4
  • org.springdoc:springdoc-openapi-ui 1.6.14
  • org.projectlombok:lombok 1.18.26
  • io.rest-assured:rest-assured 5.3.0
  • io.rest-assured:json-path 5.3.0
  • io.rest-assured:xml-path 5.3.0
  • org.elasticsearch:elasticsearch 7.17.9
  • org.springframework.cloud:spring-cloud-starter-netflix-hystrix 2.2.10.RELEASE
  • org.springframework.cloud:spring-cloud-starter-bootstrap 3.1.6
  • org.springframework.security:spring-security-crypto 5.8.3
  • org.apache.qpid:qpid-jms-client 1.8.0
  • com.github.hmcts:cmc-pdf-service-client 7.0.1
  • com.github.hmcts:send-letter-client 3.0.23
  • com.github.hmcts:document-management-client 7.0.1
  • net.logstash.logback:logstash-logback-encoder 7.0.1
  • com.github.hmcts:properties-volume-spring-boot-starter 0.1.1
  • com.github.hmcts:java-logging 6.0.1
  • com.github.hmcts:service-auth-provider-java-client 4.1.2
  • com.github.hmcts:ccd-client 4.9.2
  • com.github.hmcts:idam-java-client 2.1.1
  • com.github.hmcts:sscs-common 5.3.9
  • com.github.hmcts:sscs-pdf-email-common 1.8.13
  • com.launchdarkly:launchdarkly-java-server-sdk 6.2.1
  • org.pitest:pitest 1.13.0
  • info.solidsoft.gradle.pitest:gradle-pitest-plugin 1.9.11
  • org.codehaus.sonar-plugins:sonar-pitest-plugin 0.5
  • org.apache.commons:commons-collections4 4.4
  • org.apache.pdfbox:pdfbox 2.0.28
  • jakarta.jms:jakarta.jms-api 3.1.0
  • javax.jms:javax.jms-api 2.0.1
  • org.json:json 20240303
  • joda-time:joda-time 2.12.5
  • com.google.guava:guava 32.0.1-jre
  • org.apache.xmlgraphics:batik-all 1.16
  • org.yaml:snakeyaml 1.33
  • com.fasterxml.jackson.core:jackson-core 2.14.2
  • com.fasterxml.jackson.core:jackson-databind 2.14.2
  • org.junit.jupiter:junit-jupiter-api 5.9.2
  • org.junit.jupiter:junit-jupiter-engine 5.9.2
  • org.junit.jupiter:junit-jupiter-params 5.9.2
  • org.junit.vintage:junit-vintage-engine 5.9.2
  • org.junit.platform:junit-platform-commons 1.9.2
  • org.junit.platform:junit-platform-engine 1.9.2
  • com.github.hmcts:fortify-client 1.3.0
  • commons-io:commons-io 2.11.0
  • pl.pragmatists:JUnitParams 1.1.1
  • org.mockito:mockito-core 4.11.0
  • io.github.artsok:rerunner-jupiter 2.1.6
  • com.github.hmcts:ccd-case-document-am-client 1.7.3
  • org.glassfish:jakarta.el 5.0.0-M1
  • com.h2database:h2 2.1.214
  • org.projectlombok:lombok 1.18.26
  • org.projectlombok:lombok 1.18.26
  • au.com.dius.pact.consumer:junit5 4.3.15
  • au.com.dius.pact.consumer:java8 4.1.39
  • org.springframework.boot:spring-boot-starter-test 2.7.12
  • org.junit.jupiter:junit-jupiter-api 5.9.2
  • org.junit.jupiter:junit-jupiter-engine 5.9.2
  • org.junit.jupiter:junit-jupiter-api 5.9.2
  • org.junit.platform:junit-platform-commons 1.9.2
  • org.springframework.cloud:spring-cloud-starter-openfeign 3.1.6
  • org.springframework.cloud:spring-cloud-netflix-ribbon 2.2.10.RELEASE
  • org.springframework.cloud:spring-cloud-dependencies 2021.0.6
  • io.netty:netty-buffer 4.1.94.Final
  • io.netty:netty-common 4.1.94.Final
  • io.netty:netty-codec 4.1.94.Final
  • io.netty:netty-codec-http 4.1.94.Final
  • io.netty:netty-handler 4.1.94.Final
  • io.netty:netty-resolver 4.1.94.Final
  • io.netty:netty-transport 4.1.94.Final
  • io.netty:netty-transport-classes-epoll 4.1.94.Final
  • io.netty:netty-transport-classes-kqueue 4.1.94.Final
  • io.netty:netty-transport-native-epoll 4.1.94.Final
  • io.netty:netty-transport-native-kqueue 4.1.94.Final
  • io.netty:netty-transport-native-unix-common 4.1.94.Final
  • org.springframework:spring-aop 5.3.27
  • org.springframework:spring-aspects 5.3.27
  • org.springframework:spring-beans 5.3.27
  • org.springframework:spring-context 5.3.27
  • org.springframework:spring-context-support 5.3.27
  • org.springframework:spring-core 5.3.27
  • org.springframework:spring-expression 5.3.27
  • org.springframework:spring-jcl 5.3.27
  • org.springframework:spring-jdbc 5.3.27
  • org.springframework:spring-orm 5.3.27
  • org.springframework:spring-tx 5.3.27
  • org.springframework:spring-web 5.3.27
  • org.springframework:spring-webmvc 5.3.27
  • org.springframework:spring-jms 5.3.27
  • org.springframework:spring-messaging 5.3.27
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.6
helm-requirements
charts/sscs-evidence-share/Chart.yaml
  • java 5.0.0
helm-values
charts/sscs-evidence-share/values.yaml
helmv3
charts/sscs-evidence-share/Chart.yaml
  • java 5.0.0
terraform
infrastructure/main.tf
infrastructure/providers.tf
  • azurerm ~> 3.0
infrastructure/versions.tf
  • hashicorp/terraform >= 0.13
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.4.6

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

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Preset is invalid JSON (github>hmcts/sscs-common//.github/sscs-renovate.json)

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.