cwa-server icon indicating copy to clipboard operation
cwa-server copied to clipboard

Feature/optimized dockerfiles

Open kilbphilippSAP opened this issue 4 years ago • 1 comments

Checklist

  • [x] Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • [x] Make sure mvn -P integration-tests clean verify runs for the whole project and, if you touched any code in the respective service, ensure it can be run with spring-boot:run

Description

Refactorization of Dockerfiles / docker-compose

  • docker-compose: Introduced preparation as new dummy service which will not run. -- preperation downloads all maven dependencies required for the common and the service package. -- preperation generates the .jars for the other services.
  • Dockerfiles: All regular services no longer download maven dependencies or perform compilations. Instead, they use the .jars provided by the preperation service.

Due to these changes, maven dependencies are only downloaded once and the code is only compiled once. This leads a sizeable speedup for $ docker-compose build.

kilbphilippSAP avatar Dec 01 '20 13:12 kilbphilippSAP

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Dec 10 '20 12:12 sonarqubecloud[bot]