4 ms·
A big reason for writing my own Dockerfile was for a) for the experience :), and b) keeping the Dockerfile self contained. Meaning, I wanted the majority of the
by spiside 10y ago
A big reason for writing my own Dockerfile was for a) for the experience :), and b) keeping the Dockerfile self contained. Meaning, I wanted the majority of the install commands to be inside the Dockerfile and the only dependent script to be the entrypoint.
However, I don't think there is any significant advantage over the Dockerfile itself since both just install kafka and then run the kafka server. Just different implementations and Dockerfile style preferences. However, similar to spotify's approach[0], I chose to run the zookeeper server using kafka's packaged convenience script instead of pulling another image.
Thanks for the comment though, I hope that answered your question!
[0] https://github.com/spotify/docker-kafka https://github.com/spotify/docker-kafka