Currently I am using collector and enricher services on GCP standalone VM instances and working perfectly fine. But, now I would like to containerise these services and for that I have pulled collector container image from docker hub but when I am running a container using this image I am getting credential error. I am not finding a way how could I use gcp credentials in this container to make it working. Can some one help here ?
Command I am using to run docker container is given below :
docker run -itd -v /Users/abhishek.jain/collector/collector.conf:/snowplow/collector.conf -p 8081:5000 snowplow/scala-stream-collector-pubsub --config /snowplow/collector.conf
and the error which I am receiving is :
Exception in thread "main" java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. at com.google.auth.oauth2.DefaultCredentialsProvider.getDefaultCredentials(DefaultCredentialsProvider.java:134)