From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6467463440282681344 X-Received: by 10.28.159.206 with SMTP id i197mr1282655wme.16.1506959152876; Mon, 02 Oct 2017 08:45:52 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.168.14 with SMTP id r14ls2114099wme.3.canary-gmail; Mon, 02 Oct 2017 08:45:52 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCpxya2R/J0y5/Rw5YKFgDbOO7Wn/jJVLPExE8My1dFSmY94LmvrHIrBALhU6u+rFVmzJ62 X-Received: by 10.28.230.79 with SMTP id d76mr1828690wmh.12.1506959152529; Mon, 02 Oct 2017 08:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506959152; cv=none; d=google.com; s=arc-20160816; b=HytYArrDiv3DcTk4sd79qwH3c27+7GkkRo+Y6D7wSv00rJ6tdqCBpRo+/OCGs1XLhc VoBf5tHnERV9eRHRHvdLtxjFwcN7mEtUgQQM14RXv2l4OhxdX/hOjtP31IkrhYl3eH9S uW+heqRF3z0jHk5Oa1RKyR2tcc0sDQa8jev2cy0m/67NirRHMOMgYCsp/MTfJv9XQAia iKbBAajv+lU+7d1RqF/QWVqGGus6sZFIty64de06VBDVJHvdvCNkC/IW0m7g5Ehhbf/7 cleNaaX2ZFFUs63wwYRWKXxHpTlrQwXmt58+pIxc8/gxU9V5syn3HSgBe29YcPiL5w6P 86uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=mKvkNz/9BL9tGvHrPt4+QTZQHc7TKVys2dlyka+c6BI=; b=PEKIA6J+q2u6Ic6Fco+GjWk01KU5X5hf5pFKS8L4t7Yo7QIEC6d5f2xBbfQ311P1ut XUv8nUZbF1IBcboVevoRwXyEIW1aR0i5y3BBo9pI1hTOecvO/XTT8p1NO3Qf0MsqHCxT Vfx+YHHtzKkVns6PL2ekMJzlLOO7EUkoOMIfLT9Mjqw9bJLQngak4x5Vc+Fcl12JDB3g wb7Qgm1l1pQq4CpH3RXHi5WjTs/75KWviho2FxmcgeF7QnN1loyWcTVaNyB4eRYM6uhU SgL6fVj4op+AXy4z1PW2to57u1rlHIiLaMc5jMe4B6lWDSzmuEXjFHC0IIcWARtJGNJD GtUg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id 196si481944wmk.4.2017.10.02.08.45.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Oct 2017 08:45:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v92Fjc89020957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 2 Oct 2017 17:45:44 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH v4 0/4] Basic binary cache implementation Date: Mon, 2 Oct 2017 18:45:27 +0300 Message-Id: <20171002154531.4930-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.4 X-TUID: p8LNh9yq6LqZ Hello everybody, this series introduces basic binary caching for Isar. There is a new layer: meta-isar-bin which is intended to be the binary cache. All the packages that are built in Isar are stored in this cache using reprepro. Having the separate layer makes possible to manage this cache separately from the Isar build tree. So once you have built your packages, you could re-use this cache for further builds. Also this cache repo is now used to generate image filesystem via multistrap. Changes since v3: - Check return code from reprepro, continue loop only if EEXIST code is returned. Othrwise build is aborted. Changes since v2: - Droped anonymous functions - Added number of attempts to access apt cache before fail Changes since v1: - Total refactoring - Split huge patches into small pieces - Avoid races With best regards, Alex Alexander Smirnov (4): meta-isar-bin: Add reprepro configs meta-isar-bin: Generate cache repos meta-isar-bin: Populate cache meta-isar-bin: Install packages via multistrap meta-isar-bin/conf/layer.conf | 14 +++++ meta-isar-bin/files/distributions.in | 3 ++ meta-isar/conf/bblayers.conf.sample | 1 + meta-isar/conf/local.conf.sample | 4 ++ .../recipes-core/images/files/multistrap.conf.in | 9 +++- meta-isar/recipes-core/images/isar-image-base.bb | 5 +- meta/classes/ext4-img.bbclass | 2 +- meta/classes/image.bbclass | 62 +++++++++++++++++++--- 8 files changed, 89 insertions(+), 11 deletions(-) create mode 100644 meta-isar-bin/conf/layer.conf create mode 100644 meta-isar-bin/files/distributions.in -- 2.1.4