There are a couple of issues with the docker-related configuration, and in turn the dockerized hygieia-scm-gitlab-collector that is built using the current Dockerfile:
Inconsistency of PROP_FILE location between properties-builder.sh and Dockerfile
The PROP_FILE variable set in docker/properties-builder.sh is PROP_FILE=config/hygieia-gitlab-scm-collector.properties, and that's where the properties get generated on container start. However, the springboot app as per the Dockerfile looks at a different location for the properties file - i.e. in the Dockerfile, the PROP_FILE is specified this way: ENV PROP_FILE /hygieia/config/application.properties.
Wrong variable commitThresholdDays set
The docker/properties-builder.sh has a variable commitThresholdDays set, which is unused in the code. However, there seems to be a variable in GitlabSettings.java called firstRunHistoryDays which has not been set in docker/properties-builder.sh.
There are a couple of issues with the docker-related configuration, and in turn the dockerized hygieia-scm-gitlab-collector that is built using the current Dockerfile:
Inconsistency of PROP_FILE location between properties-builder.sh and Dockerfile
The PROP_FILE variable set in docker/properties-builder.sh is
PROP_FILE=config/hygieia-gitlab-scm-collector.properties
, and that's where the properties get generated on container start. However, the springboot app as per the Dockerfile looks at a different location for the properties file - i.e. in the Dockerfile, the PROP_FILE is specified this way:ENV PROP_FILE /hygieia/config/application.properties
.Wrong variable
commitThresholdDays
setThe docker/properties-builder.sh has a variable
commitThresholdDays
set, which is unused in the code. However, there seems to be a variable in GitlabSettings.java calledfirstRunHistoryDays
which has not been set in docker/properties-builder.sh.