... | ... | @@ -21,17 +21,45 @@ git init |
|
|
git clone https://gitlab.seis.iti.gr/sdk4ed/td-analysis
|
|
|
```
|
|
|
|
|
|
Step 3) Copy Dockerfile to the working directory
|
|
|
Step 3) Open Docker Folder
|
|
|
|
|
|
Step 4) Add credentials of SonarQube and Database on the configurations.txt file.
|
|
|
|
|
|
```
|
|
|
cp sdk4ed_technical_debt_analysis/Dockerfile ./
|
|
|
Example:
|
|
|
# Configurations about Database
|
|
|
username=test
|
|
|
password=test
|
|
|
serverName=test.test.gr
|
|
|
databaseName=test
|
|
|
|
|
|
# Configurations about sonarQube
|
|
|
usernameSQDB:test
|
|
|
passwordSQDB:test
|
|
|
sonarName:test
|
|
|
sonarqube_execution:/user/test/sonar_scanner/bin
|
|
|
project_path:/user/test
|
|
|
jar_path:/user/test
|
|
|
sonar_url:http:test.test.gr
|
|
|
usernameSQ:test
|
|
|
passwordSQ:test
|
|
|
|
|
|
```
|
|
|
Step 4) Extract jar file from source code
|
|
|
|
|
|
Step 5) Add SHAa of commits that are versions on the SHAsOfVersions.txt file.
|
|
|
|
|
|
```
|
|
|
$ mvn package
|
|
|
Example:
|
|
|
2bc8eb71da51d5a37100ef097c89c7fddc21ad7a
|
|
|
48915ef5c49519fc47576476c085cfc2f5312463
|
|
|
f4501b79f84400e26f6c47a0d8212ecf48128c4e
|
|
|
c38bd3c0c6ae43100a357d781705a39c85bc96ee
|
|
|
5fbea225d352a12f14feafd70688b58c81069bc0
|
|
|
298380b1f8f72bf53303cb11e27a36de6d26e323
|
|
|
1499e26b43fdfd2915a4c6295a7b392f19369baa
|
|
|
6dea3ce087203282d42ef81154d23ca11dc38ec7
|
|
|
214fc8e8732f2e1fd9642522c9e4e809b684ec20
|
|
|
```
|
|
|
Step 5) Move jar files from externalTools/ to the same directory as the extracted jar file
|
|
|
|
|
|
Step 6) Build the Docker image
|
|
|
|
... | ... | |