devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Lenar Shakirov <shakirov@cg.ru>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] hasher и локальный репозиторий
Date: Thu, 06 Sep 2012 11:09:54 +0400
Message-ID: <50484C42.6080208@cg.ru> (raw)
In-Reply-To: <1346905743.2178.15@ildar.innovations.kz>

06.09.2012 08:29, Ildar Mulyukov пишет:
> On 05.09.2012 16:44:40, Андрей Черепанов wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> 05.09.2012 14:40, gBopHuk_alt пишет:
>> > Здравствуйте! Тут у меня возник такой вопрос:
>> >
>> > Каждый раз когда я собираю новый пакет , Hasher качает какие-то
>> > базовые 120 пакетов, видимо необходимых для любой сборки, а уже
>> > потом качает зависимости buildre - что занимает огромное кол-во
>> > времени, которое не связанно непосредственно со сборкой. Вот я и
>> > задумался , а не проще ли будет закачать их один раз в локальный
>> > репозиторий, и раз в месяц или полмесяца синхронизировать его с
>> > бранчем ? Как результат: - Уменьшаем энтропию и качаем пакеты
>> > только buildreq. - Появляется больше времени на отладку сборки
>> > пакета.
>> Так все и делают: держат локальную копию репозитория и синхронизируют её.
>
> Бррр! Ужасно.
>
> Лучше так: настроить hasher на локальный репозитарий, который
> формируется из содержимого /var/cache/apt/archives/ (этот репозитарий
> прописан в /etc/apt/sources.list.d/local.list)
> В настройках будет так:
> $ cat ~/.hasher/config
> workdir=$TMP/hasher
> apt_config=~/.hasher/apt.conf.hasher
> $ cat ~/.hasher/apt.conf.hasher
> Dir::State "/tmp/.private/ildar/hasher/aptbox/var/lib/apt/";
> Dir::Cache "/tmp/.private/ildar/hasher/aptbox/var/cache/apt/";
>
> Dir::Etc::SourceList "/etc/apt/sources.list.d/local.list";
> Dir::Etc::SourceParts "";
> RPM::RootDir "/tmp/.private/ildar/hasher/aptbox";
> APT::Install::Virtual "true";
> APT::Install::VirtualVersion "true";
> (надо всё подправить под Ваш workdir)
>
> Удачи!

Есть еще совет от Алексея Турбина, где используется общий кеш для 
системного апта и для хешера:
http://lists.altlinux.org/pipermail/devel/2009-July/173233.html

P.S.: сам не проверял...


-- 
С уважением, инженер отдела ИИС ООО «Центр»
Шакиров Ленар Наилевич
shakirov@cg.ru
(843) 533-88-14

Российская Федерация
Казань, ул. Зинина, 3а
420029, а/я 81

http://www.cg.ru/


  parent reply	other threads:[~2012-09-06  7:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05 10:40 gBopHuk_alt
2012-09-05 10:44 ` Андрей Черепанов
2012-09-05 11:22   ` gBopHuk_alt
2012-09-05 11:27     ` Андрей Черепанов
2012-09-05 14:02       ` gBopHuk_alt
2012-09-05 11:33     ` Ivan A. Melnikov
2012-09-06  4:29   ` Ildar Mulyukov
2012-09-06  4:33     ` Ildar Mulyukov
2012-09-06  7:09     ` Lenar Shakirov [this message]
2012-09-06  7:19       ` Michael Shigorin

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=50484C42.6080208@cg.ru \
    --to=shakirov@cg.ru \
    --cc=devel-newbies@lists.altlinux.org \
    /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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git