We have TFS building Docker images, and loading them into a Private Registry on one network, our Development Network. Everything works well, and we are generally happy with the CI process in that environment. We have an Air-gapped Integration Network that we need to export these Docker images to, and then have something that finds them, puts them into a registry there, and then restarts a Docker swarm.
I am looking for a solution that can:
- Watch a folder for new files
- When a new Docker Tar file is found, load it into Docker Registry.
- Move the Docker image that was loaded to an "archive" folder
- Restart Docker swarm to use new images in the Registry
It seems like step 2 might not be possible directly, I might need to load it into a local Docker instance, tag it, and then push it, but if so, that's fine.
Is this something I should Jenkins for? I could just write a script in Bash or Python, but I would like to use a proper CI tool, if I can.