Now, what I plan to do is this:
We can our base image set for a particular commit in ruby. We will specify the
curl of dockerhub in the runner script to trigger the build. So whenever there is a commit in ruby, the runner script will run, fetch the commit and trigger the build. This will keep on building the image layers for specific commits and compilation will take less time.
A few doubts I have here:
---- Can I create a dockerfile for any commit as my base image? Probably the latest commit right now.
---- I am unable tounderstand the runner script completely. As soon as there is a commit in ruby, runner script responds immediately and does its work. It runs once for this course of action. Am I correct?
---- I am confused where the curl url of dockerhub will go. It will be obviously after I fetch my commit in runner but where exactly?