From: Doug Goldstein Date: Tue, 13 Mar 2018 03:15:07 +0000 (-0500) Subject: ci: add README and makefile for containers X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~356 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6ad06c9e4f93352b5034cdd4e7bceac389fbba7a;p=xen.git ci: add README and makefile for containers Add a basic README explaining the containers and how people can use them to locally test with if they see an error in CI and want to reproduce it locally. Added a makefile to help with building and pushing the containers to the container registry. Signed-off-by: Doug Goldstein Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Wei Liu Acked-by: Andrew Cooper --- diff --git a/automation/build/Makefile b/automation/build/Makefile new file mode 100644 index 0000000000..773b16037c --- /dev/null +++ b/automation/build/Makefile @@ -0,0 +1,17 @@ + +# the base of where these containers will appear +REGISTRY := registry.gitlab.com/xen-project/xen + +help: + @echo "Builds containers for building Xen based on different distros" + @echo "To build one run 'make DISTRO/VERSION'. Available containers:" + @$(foreach file,$(sort $(subst .dockerfile,,$(wildcard */*.dockerfile))), \ + echo ${file} ; \ + ) + @echo "To push container builds, set the env var PUSH" + +%: %.dockerfile ## Builds containers + docker build -t $(REGISTRY)/$(@D):$(@F) -f $< $(