Docker Container as Jenkins Agent
<p>What if you are building a huge project which involves multiple scripts, multiple environment variables, multiple actions which has to be performed on a container as we are running a Jenkins job.</p>
<p>Yes, we can run Jenkins job with docker container as its agent.</p>
<p>Lets see on how can we do so in below steps.</p>
<ol>
<li>Composing a docker image</li>
<li>Spinning up the container using docker compose</li>
<li>Jenkins agent setup</li>
</ol>
<h2>Composing docker image</h2>
<p>Assuming that docker has been installed on the host machine, will jump into the creation of docker image to bring up the container and run it as Jenkins agent.</p>
<p><a href="https://medium.com/@fahmidhathurab7/docker-container-as-jenkins-agent-372ea4082ca1"><strong>Read More</strong></a></p>