codurance / site

https://www.codurance.com
6 stars 19 forks source link

Automatic build for docker hub image #1008

Open MiyamotoAkira opened 6 years ago

MiyamotoAkira commented 6 years ago

This will link the github repo to docker hub, so the image can be rebuild whenever we change the dockerfile. Needs to have circleci2.0 finished

alfredodev commented 5 years ago

this might help https://circleci.com/blog/using-docker-effectively-on-circleci/#problem-3-but-wait-i-dont-want-to-build-docker-images-on-my-local-machine and https://container-solutions.com/tagging-docker-images-the-right-way/

MiyamotoAkira commented 5 years ago

I talked about this before with Andy, and we did wonder about setting up the separate repo so we could build the images in there. We have three dockerfiles: development_base, deployment_base and the vanilla one. This last one just gets the image created by development_base.

Another possible thing is to have a pre-build step that checks if there are changes to the dockerfiles and then build before doing the rest (as the rest needs that image).

Another thing, then, would be that the tagging of the images has to be setup so it is dynamic.