Added run-fast and run-registry Makefile targets.
run-registry - creates a private registry and adds the necessary DOCKER_OPTS to
allow for an insecure-registry.
run-fast - build the changes on mon0, tags the images, and pushes it to private
registry on mon0. mon1 and mon2 pull this image from mon0's docker registry.
starts the processes as usual. cleans any dangling images that are left over.
conscious choices:
At multiple places the number of mon instances is fixed ($(seq 0 2)) in Makefile. Getting
this from vagrant status was taking time. Since, I am going to hack on this
further to see if some tasks can be parallelised. I will take care of this
hard-coding then.
Added
run-fast
andrun-registry
Makefile targets. run-registry - creates a private registry and adds the necessary DOCKER_OPTS to allow for an insecure-registry. run-fast - build the changes on mon0, tags the images, and pushes it to private registry on mon0. mon1 and mon2 pull this image from mon0's docker registry. starts the processes as usual. cleans any dangling images that are left over.conscious choices: At multiple places the number of mon instances is fixed ($(seq 0 2)) in Makefile. Getting this from
vagrant status
was taking time. Since, I am going to hack on this further to see if some tasks can be parallelised. I will take care of this hard-coding then.Signed-off-by: Vikrant Balyan vijayvikrant84@gmail.com