I am building a kafka connect docker image using docker file provided in confluent github. repo. Its integrated with Azure pipelines and i don’t have option to pass run time args to docker build. What would be best approach to overcome the limitation?
can i hard-code ARGS in Dockerfile?
I will try this.
Appreciate if you can also point me to any documentation that explains process of building Kafka connect image using docker build. Basically looking for what args / env values to pass at build time.
I was able to build the image. When i try to instantiate a container i get following error udo docker run 42ba7d8faaa5 ===> User uid=1000(appuser) gid=1000(appuser) groups=1000(appuser) ===> Configuring … CONNECT_BOOTSTRAP_SERVERS is required. Command [/usr/local/bin/dub ensure CONNECT_BOOTSTRAP_SERVERS] FAILED !
Later i tried providing bootstrap server as envronment variable
docker run -e CONNECT_BOOTSTRAP_SERVERS = localhost:9092 42ba7d8faaa5
but it fails too with
docker: invalid reference format.
any syntax that i need to follow to pass the variable?