Closed cptfixit closed 1 year ago
Thank you for creating an issue ticket for our SKF project, we highly appriciate the feedback so we can improve the project and make it more awesome for everyone! We will shortly come back to you after the evaluation of the issue.
This issue relates to the following piece of code:
if [ "$GOOGLE_CREDENTIALS" -gt 10 ]
then
echo $GOOGLE_CREDENTIALS | base64 -d > /home/user_api/.kube/gsa-key.json
export GOOGLE_APPLICATION_CREDENTIALS=/home/user_api/.kube/gsa-key.json
fi
So, the error occurs when the Google credentials are not set at all. I suggest adding an additional test to first test for null/zero on the relevant variable.
This issue appears to be resolved in a later version of the container image. If you use version 4.1.0 of the image, this error no longer occurs.
Good day,
During startup via
docker-compose
the skf-api_container shows the following snippets of logging. It includes a clear indication of a mistake on line twelve (12) of theskf-api.sh
script.To call out the exact line:
skf-api_container | /home/user_api/Docker/alpine-cloud/api/skf-api.sh: line 12: [: : integer expression expected