From nobody Sun Feb 8 21:27:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1550143864842952.9580056337844; Thu, 14 Feb 2019 03:31:04 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 74620A787C; Thu, 14 Feb 2019 11:31:02 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 254CC101E84F; Thu, 14 Feb 2019 11:31:02 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B1D713F602; Thu, 14 Feb 2019 11:31:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x1EBUrGT000504 for ; Thu, 14 Feb 2019 06:30:53 -0500 Received: by smtp.corp.redhat.com (Postfix) id C75B8101E846; Thu, 14 Feb 2019 11:30:53 +0000 (UTC) Received: from dhcp-17-197.lcy.redhat.com (unknown [10.42.17.197]) by smtp.corp.redhat.com (Postfix) with ESMTP id 40C541024952; Thu, 14 Feb 2019 11:30:53 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 14 Feb 2019 11:30:47 +0000 Message-Id: <20190214113048.18408-5-berrange@redhat.com> In-Reply-To: <20190214113048.18408-1-berrange@redhat.com> References: <20190214113048.18408-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH 4/5] make: add a simple build target that generates all dockerfiles X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 14 Feb 2019 11:31:03 +0000 (UTC) This is useful for local testing of docker changes, and can also be called to rebuild the content needed for the libvirt-dockerfiles repository. Signed-off-by: Daniel P. Berrang=C3=A9 --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Makefile b/Makefile index 1ba6b21..d2c89e9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,23 @@ =20 +LCITOOL =3D guests/lcitool + +HOST_VARS =3D $(wildcard guests/host_vars/*/*.yml) +PROJECT_VARS =3D $(wildcard guests/vars/projects/*.yml) + +all: dockerfiles =20 syntax-check: flake8 guests/lcitool + +.PHONY: dockerfiles + +DOCKERHOSTS=3D$(shell $(LCITOOL) hosts -d) + +build/dockerfiles/%.docker: Makefile $(LCITOOL) $(HOST_VARS) $(PROJECT_VAR= S) + mkdir -p build/dockerfiles + $(LCITOOL) dockerfile $* libvirt > $@ + +dockerfiles: $(DOCKERHOSTS:%=3Dbuild/dockerfiles/%.docker) + +clean: + rm -rf build/ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list