public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Alexander Smirnov <asmirnov@ilbers.de>, isar-users@googlegroups.com
Subject: Re: Reproducibility of builds
Date: Thu, 30 Nov 2017 15:48:23 +0100	[thread overview]
Message-ID: <46395823-b6a8-132a-cac3-5e62ec18a5e5@siemens.com> (raw)
In-Reply-To: <18e4cbc4-83b1-86f1-d24e-e0c68f72224d@ilbers.de>

On 2017-11-30 09:04, Alexander Smirnov wrote:
> Hi Jan,
> 
> On 11/29/2017 10:02 PM, Jan Kiszka wrote:
>> On 2017-11-29 19:53, Alexander Smirnov wrote:
>>> Hi everybody,
>>>
>>> I've started working on this topic and here I'd like to share my vision.
>>> At the moment I've implemented simple PoC in my branch
>>> 'asmirnov/build_rep'.
>>>
>>> What it does:
>>>
>>> 1. There is new recipe: base-apt. It provides task which:
>>>
>>>   - Fetches packages from origin Debian apt to local folder using
>>> deboostrap.
>>>   - Put these packages via 'reprepro' to local repository called
>>> 'base-apt'.
>>>
>>> 2. Buildchroot uses 'base-apt' to generate rootfs.
>>>
>>> 3. Isar image uses 'base-apt' and 'isar' repos to generate rootfs.
>>>
>>>
>>>
>>> What are the key benefits of this approach:
>>>
>>> 1. Download session for upstream packages is performed in a single step.
>>>
>>> 2. You could use your local 'versioned' apt repository instead of
>>> downloading origin packages.
>>>
>>> 3. Having local apt repository managed by 'reprepro' provides us
>>> possibility to implement version pinning. Reprepro provides lots of
>>> things like:
>>>   - Get package name.
>>>   - Get package version.
>>>   - Remove specific package from repo.
>>>   - Add single package to repo.
>>>
>>> So in general, if we have know which package version we want to have, we
>>> need to get binary with this version and put it to 'base-apt'.
>>>
>>
>> But this encodes the versions of the packages to be used implicitly into
>> their unique presence inside some local apt repo, no?
>>
>> I would prefer a solution that stores the packages list with versions as
>> well and only uses that list, when provided, independent of the repo
>> content. That way we can throw all downloaded packages back into a
>> single archive repo. Have one repo per project version will quickly
>> explode storage-wise (or you need extra deduplication mechanisms).
>>
>> That said, I'm fine with getting there in several steps, and this can be
>> a valid first one.
>>
> 
> I got it.
> 
> Here I only mean that there are some tools that could help us in
> implementing specific logic. At the moment I don't have the final
> vision, but hope it will appear during experiments with this PoC.
> 
> My main wish is to avoid manual hacks with Debian artifacts and use
> generic tools as much as possible.
> 

I do agree.

Jan

  reply	other threads:[~2017-11-30 14:48 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03  8:13 Claudius Heine
2017-08-21 11:23 ` Claudius Heine
2017-08-28 11:27   ` Claudius Heine
2017-09-05 10:05     ` Alexander Smirnov
2017-09-05 10:38       ` Jan Kiszka
2017-09-05 11:50         ` Alexander Smirnov
2017-09-05 11:54       ` Claudius Heine
2017-09-06 13:39         ` Claudius Heine
2017-09-18 15:05 ` Baurzhan Ismagulov
2017-09-19  8:55   ` Claudius Heine
2017-11-14 16:04 ` Christian Storm
2017-11-14 16:22   ` Claudius Heine
2017-11-17 16:53     ` [ext] Christian Storm
2017-11-17 18:14       ` Claudius Heine
2017-11-20  8:33         ` [ext] Christian Storm
2017-11-20  9:16           ` Claudius Heine
2017-11-29 18:53             ` Alexander Smirnov
2017-11-29 19:02               ` Jan Kiszka
2017-11-30  8:04                 ` Alexander Smirnov
2017-11-30 14:48                   ` Jan Kiszka [this message]
2017-11-30  9:31               ` Claudius Heine
2017-12-06 16:21                 ` Alexander Smirnov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46395823-b6a8-132a-cac3-5e62ec18a5e5@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=asmirnov@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox