From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6467463440282681344 X-Received: by 10.25.228.134 with SMTP id x6mr492154lfi.33.1506333622477; Mon, 25 Sep 2017 03:00:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.174.129 with SMTP id x123ls1125364wme.3.gmail; Mon, 25 Sep 2017 03:00:22 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCi9DsLzPcadeNk7jI6876a85Apnvk24CmMVeURTHkJQzY8zugGuJVEN7L/WkXiblWGdmbu X-Received: by 10.28.230.79 with SMTP id d76mr514345wmh.12.1506333621984; Mon, 25 Sep 2017 03:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506333621; cv=none; d=google.com; s=arc-20160816; b=I+AiuDOcTwSwUx+gXTKr9n1BvWv2w7RXUouHjsr25qw5TnUJX7N7qmNXCj47Xvqpns suzX7DGD+2fM8DeRBH0+EXfHOxgY6kpFEUbi7AdxIHjjWnLlyOACsxnrzdzJPAtThhNK Dspmlw8XPSy5wcPvIs1uL4VHSYAOdCvTiaRzFgZPlvcfOXHHWvXlnCD7X+7XaeuR0+Ha 5Ovaa5dM9Jm6/W6d8z6IBqwLWS/aFsZEjEWr4MRwcHQWGcdAGHxfqSDTbpr7S5CzEwyz uH3yM9SrowKdFOvJkvtG7tcaCpux6xP8CX45oYsjexXnbYW7Y9okn+0dANGK09A4qWHP 1wGw== 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=ujZC7TP3+dYFw76f9j5BdvsP6Q+vsu7hum267IvnE80=; b=FGk1mTP8Ent2iadcORECwRI5ChWDj27J0XMEWIV1btF50qrmL6AtETwSWn0MdJfomD WzCflq8scOcdGddreEMDshWKWYhwQ/TYAPJcIQXnAsTbdu7TIdKuExvxPpIUP4kKZ2+R bUuDhorxpuHvUTGipTooVWxbfPwuV6RhfjQwL9FN6VUhBjBlgCxKmOORgROrgtWNXvRR SOloLgR5UmdT/+Gav0c/VSHwM3abAERUimPSS7B7qgbYfFFx0dbWhmjRDErKKXBgcBLy Ou0nyXO38tW2J2i1Yv9vDRI+PSvEmb6P/KlnibDFQMmbWyjY0H8/jQkPR7qGWY8aGKSE BkSQ== 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 p200si444916wmg.4.2017.09.25.03.00.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 03:00:21 -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 v8PA07Fb002132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2017 12:00:12 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH v3 0/4] Basic binary cache implementation Date: Mon, 25 Sep 2017 12:59:56 +0300 Message-Id: <20170925100000.5368-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.4 X-TUID: OFicN1xlZjHi 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 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 8<-- 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 | 41 ++++++++++++++++++---- 8 files changed, 69 insertions(+), 10 deletions(-) create mode 100644 meta-isar-bin/conf/layer.conf create mode 100644 meta-isar-bin/files/distributions.in -- 2.1.4