With the spring-boot-maven-plugin
it is possible to generate a docker image out of the box.
mvn spring-boot:build-image
The image will be available with name kim-kas. To run it use this command:
docker run --name kas -p 81:8080 -d kim-kas
-
Docker installed
-
Maven 3.5+ or higher
Parameters can be set by using the -e <PARAMETER_NAME>=<VALUE>
Example:
docker run --name kas -p 81:8080 -d gematik.kim.kas.maxMailSize=30776 -e kim-kas
List of parameters:
All Parameters start with gematik.kim.kas.
PARAMATER_NAME |
Description |
Default |
maxMailSize |
Maximal allowed size of an e-mail |
524288000 |
storagePath |
Path to volume where attachments got stored |
./target/storage |
logDir |
Path to logfile |
./target/logs |
data_base_location |
Path to database storage |
./target/db/demo |
hostUrl |
The main URL to be returned by storage calls |
localhost |
protocol |
The used protocol (Slashes needed) |
https:// |
cleantime |
Scheduled time for cronjob. The fields read from left to right are interpreted as follows:
Full documentation here. |
0 0 3 * * * |
keepFileTime |
Time a file remains in system in milliseconds |
7776000000 (90 days) |
keepIdTime |
Time UUI is unique in milliseconds |
31536000000 (1 year) |
storeType |
Name of the key-store-type |
PKCS12 |
certPath |
Path to certificate. Shows to self-signed example certificate. Default is set to RSA-Certificate. If KAS should run on ECC enter
|
classpath:keystore/rsa/kas.gem.kim.telematik-test.p12 |
pw |
Password of the certificate |
00 |
tsl |
Should server start with https |
true |
endpoints |
All these parameters can be used separately. To use more than one, provide them comma separated. The resource can be entered by <host><port>/v1.1/actuator/<resource_name> Please do not use this options in productive environment!
|
NONE |
http_log_capacity |
Amount of saved http requests and responses in memory and displayed by |
500 |