glot-containers icon indicating copy to clipboard operation
glot-containers copied to clipboard

Automate builds on Docker Hub

Open m-dango opened this issue 8 years ago • 3 comments
trafficstars

With an automated build, you can add a repository link so that when another docker hub repository is updated your docker container is automatically rebuilt. This would likely eliminate the need to request that a docker container be rebuilt when a language is updated.

m-dango avatar Oct 25 '17 11:10 m-dango

I looked at that earlier and I couldn't figure out how to set it up with multiple images in one git repo. Do you know if it's possible? I would prefer to not create a separate repo for each image.

prasmussen avatar Oct 25 '17 17:10 prasmussen

I'm pretty sure you can do it with 1 git repo, but I believe on Docker Hub you'll need an automated build for each language.

You put in the image location for the Dockerfile in question, then set the linked Docker Hub repository to whichever image the Dockerfile relies on for its language.

e.g. example setups with Python and Perl 6 https://imgur.com/a/RCWXl

m-dango avatar Oct 26 '17 11:10 m-dango

I've kept the test automated builds up (to be honest, I'd forgotten about them!) and they've been building successfully since their creation 🙂

https://hub.docker.com/r/mienaikage/glot-test/builds/ https://hub.docker.com/r/mienaikage/glot-test-2/builds/

m-dango avatar Jan 18 '18 16:01 m-dango