Only recently (mid-year) discovered Docker. Over the weekend I created a POC build in our Jenkins to deploy our app into a Docker container. It’s a very naive setup: Docker runs on the same machine as Jenkins, and Jenkins just executes pre-build ‘docker build …’ and ‘docker run …’ and post-build ‘docker rmi -f …’ commands. Even though the Docker image is built from a Dockerfile, I do not see this scaling very well. For example, all my Docker containers run on localhost:same_port.
The Jenkins machine runs in Amazon’s EC2.
I am not looking for a packaged solution from the community, but a pointer what do I look at next? What is the correct direction that I want to go? Any examples / tutorials of a setup that are considered best practices?
TIA for any help.