Using an AWS EC2 with Docker installed, I am trying to run a docker image using the following code:
docker run \
-v $PWD/scala-stream-collector-config:/snowplow/config \
-p 8080:8080 \
snowplow/scala-stream-collector-kinesis:1.0.1 \
--config /snowplow/config/config.hocon
My config.hocon file is in the route directory. I keep getting this error:
Error: Configuration file config.hocon does not exist
I think my issue is I am not sure where to put the config.hocon file. I have tried to place the file in different folders and played with the --config line.
This is the first time that I am doing this, so if it appears there is something basic I am missing that is likely true.
Thanks for the help
config.hocon
needs to be in$PWD/scala-stream-collector-config/
.This directory will be mounted in
/snowplow/config
in the Docker container and--config /snowplow/config/
will point to it.