From patchwork Fri Sep 27 19:06:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "alexander.heinisch" X-Patchwork-Id: 3836 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 27 Sep 2024 21:07:26 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pf1-f185.google.com (mail-pf1-f185.google.com [209.85.210.185]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 48RJ7Pm6026048 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Sep 2024 21:07:26 +0200 Received: by mail-pf1-f185.google.com with SMTP id d2e1a72fcca58-718db8e61bfsf3402203b3a.0 for ; Fri, 27 Sep 2024 12:07:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727464039; cv=pass; d=google.com; s=arc-20240605; b=YYIZrHDjkJtgjr8t7whQnhbBMrlrMYD1VBPR6cRI5+Vnavax6DOExUMzFdFlfu/yiw uaG+CNt1rkUK7ETw7UbF4ebV6ReC9hS0ut5xbOd0iwC2cl3rLgytDFOO4ngTAu6RJeUg /sistcyTyZtV2V0ENkAR+EiwOeHZcrTkcg8TzjJbQ5vYhUhFtfC3tTVkEGso6+FgYfXm D/9741rVOhpb8fAIcIvReJ+duvgpF2jRs+JbGJZyH0rwH2Z8nPho0ovMUJutGaOL53GM 4oh1o9VSI23D+T0/5eC9U444u9WB9z2WHZtofhoSy4ktqdyY5c2vBGrIMr//qbHL87au SIZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IBb7YOUEZxpo30iKkGGE7uFQURbPPM/Mx/qsNl618xE=; fh=TMUtFqzChQ3b09tOfaOkl5iZ1Ix9rjFGsivL/qtqCdg=; b=a5KVULiozpGawGN5HvdrI/+Iji/JUehQXEyu47H6kG+IAzIrf9s+yLvp4+Ky94VsgV P97mSX2bbSMCHnoUHPy7LLGZIY7ueXKTFX3jZNqNoTiNazAJLhGWn22rXV0ZyQQwhlJ1 zjYaqjpCSfofyppIUDlm/03sTzQvLuM4Oltu9ZonU6vwYoNAu9lk3zx3SlfiDYOr8fKn 6PGLDZMFTdDWOQs3WfHXmJfxw0WhcwVPNvh4bNhV3orqdLyDRvP/ZKvqj5YmRBEvQrtd sO2CdHgxsP/oqbxQnzJUBfloAVzpKQJzfblUIoFKfKKaFVOFgEGUpGjkzAz+eE1eItSi s46Q==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=Z4Eng6uc; spf=pass (google.com: domain of fm-1326448-20240927190714efac48b58e7e152462-fmmzly@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1326448-20240927190714efac48b58e7e152462-FmmZlY@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1727464039; x=1728068839; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=IBb7YOUEZxpo30iKkGGE7uFQURbPPM/Mx/qsNl618xE=; b=QSUlpJMJbJ3Aq/vVdl/T2yetTje9MSWCEQl6ohwPiKNOOnAAKr52xs3LXx+7eXfMWm l+shRfEyfhvBwON7EuTE/aQzSBHmyH/gaeHcAkCaFBdYcuAGcLsuXiaVKCWg6zJBWCCq XsGdsTLzEMYm1hY9lOZvIRRStXcCovjr01s55lM3F57DxhdrYA/3aRUSwEy3A6WG9oTP ANU2YG5Pf8exXcSFHjMnLjz0wOwX5CYTNgmyYUieTHYwymi8p26BEWRYyGelmrqLcX5H Bh3ImUZYhcrnPNY2hRfP3G/GUSEXTnGe4oFYF2lkfiWWIDLNeYloHKFF29QDODxvqy7O 7kdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727464039; x=1728068839; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IBb7YOUEZxpo30iKkGGE7uFQURbPPM/Mx/qsNl618xE=; b=V4pNP4M1zlxk/yTsrQpe0wveQw6+MKP8P7vU6LI/amI2kS8ped8P6mS0SSON3SUWwl S5Q6DG5p5I6GrJM2/locBwaB8Sq4fgNHZMbwu+xEXoB5zG/eC7LD0kEnTY6Lj6elsnGh ArZWGq8LMJPi0KTLbB9qt/66vU2YXfTUpu+vHGFN040LzjzBq/WPD1HgAOayZhBnpI9C vEfTr9T7YicV8NJp/Oyh45c2bGlOilR3myWvWkHSmvlEBMB6NTVEtFvBFgoeNw327Zb1 AF4mpKGtComiq0+8WuHz8E2fA3pYZVhQ4RC/K/ms5UMoiI9Hl59G5qIWyc7bcg6KfOfX thmw== X-Forwarded-Encrypted: i=2; AJvYcCUT5ZZd2l0CdSZcVY/VWQsWpUyInNYNr/a/cYDksoYvWr1RSh3r4WxxBX31vcDREwj7+IvI8GQ=@isar-build.org X-Gm-Message-State: AOJu0Yydgb+tYrsBm0Zo41834AUmH9crPq+/pvkJG+tAG0i3JrcDWgBe 7brwdoEU19NWD/OQY2q1YStfBOKEa1L5VZMqGXyx+guzOBpJha5/ X-Google-Smtp-Source: AGHT+IHMcUOJLBiZZaSZ1phKXoYt2KLVwCkAIx6JxX/0tsqJBTB2Q8rF/AuYvWj4QuhiX8j3qHpuoA== X-Received: by 2002:a05:6a00:22c8:b0:714:2069:d90e with SMTP id d2e1a72fcca58-71b26077151mr6431932b3a.26.1727464038736; Fri, 27 Sep 2024 12:07:18 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6a00:2e03:b0:717:85a0:1de2 with SMTP id d2e1a72fcca58-71b18b9dc9fls2308353b3a.0.-pod-prod-08-us; Fri, 27 Sep 2024 12:07:17 -0700 (PDT) X-Received: by 2002:a05:6a00:b88:b0:70d:1dcf:e2a5 with SMTP id d2e1a72fcca58-71b25f00c69mr6988049b3a.3.1727464037111; Fri, 27 Sep 2024 12:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727464037; cv=none; d=google.com; s=arc-20240605; b=NleYk4rPBeF19rhqh5gukFkBAgFNdgiR90X9XgfA5z8DHBqYaqocIn/y1QKo95jgDf +KFbNaFwm2xNVKapDYhkGzc/wzD8Ly9GJdl1OjaFfyMpeTChK5E9ep37WApdEosn4lTk luPnb2CgO1Xwt1qw278hz8FVe4+9tdvznnB+/g8cd8AzxRUZWPAJGer/CdhxEOEQLcwa jrde5LTYEmAIQVlIy/WZhotJU7quXVK0B/8O6NphnuPcgKCzfYns+LNvuGuzYXg8z1m7 wp/A4H7ATXrJGs4GXkCtRT74JU88mq6JIDv5/PZhMOBa8vpNZLktPjLaMKeigT9oL2FU Klrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=DzbYn1n0oyIRCkggq2/NeVv3vXYdv/cCWaX6feEbmZ0=; fh=qlpLpZCOHpn3j/g0XGeAn8LOB72WJczsFovYQ6vHQlk=; b=jA8cIhg0D94ZhCxLxzLTFf+m8XljFY+YWYQ/bdhfgEJabWnjkoQ/OqD6RTmRZ+2vfd 4Le3HzMxyyVRR3CdqvcfasUYN/RYtW0z/+YNFJmcy93epN54ZimZXzT/LbbSOXdeCbqt ukjQx3V2RH+Rm2ofxwN3GCR884slEUxt3mjilRrp2Q0r3y21gaAIIDP7YB09XUrETk1x K9YBFVGYll8R9dnQnXYPHYJWdszMNxzwlv/6lKRD9j2//8CtFMVPFahZxvrJ9SRW6WJ7 qgnJ8gjmLykFJEK78MGTyi8UkRbOBoeYCjw1AbuzT4GjNvWztpC7+iP6uQ3sDvHAuZcM oWZA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=Z4Eng6uc; spf=pass (google.com: domain of fm-1326448-20240927190714efac48b58e7e152462-fmmzly@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1326448-20240927190714efac48b58e7e152462-FmmZlY@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-228.siemens.flowmailer.net (mta-65-228.siemens.flowmailer.net. [185.136.65.228]) by gmr-mx.google.com with ESMTPS id d2e1a72fcca58-71b26521195si125362b3a.3.2024.09.27.12.07.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Sep 2024 12:07:16 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1326448-20240927190714efac48b58e7e152462-fmmzly@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) client-ip=185.136.65.228; Received: by mta-65-228.siemens.flowmailer.net with ESMTPSA id 20240927190714efac48b58e7e152462 for ; Fri, 27 Sep 2024 21:07:14 +0200 X-Patchwork-Original-From: "alexander.heinisch via isar-users" From: "alexander.heinisch" To: isar-users@googlegroups.com, felix.moessbauer@siemens.com Cc: Alexander Heinisch Subject: [PATCH 1/3] Added DISTRO_APT_SNAPSHOT_PREMIRROR_BASE to specify the base-url of the mirror used. Date: Fri, 27 Sep 2024 21:06:48 +0200 Message-ID: <20240927190650.128263-2-alexander.heinisch@siemens.com> In-Reply-To: <20240927190650.128263-1-alexander.heinisch@siemens.com> References: <20240927190650.128263-1-alexander.heinisch@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1326448:519-21489:flowmailer X-Original-Sender: alexander.heinisch@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=Z4Eng6uc; spf=pass (google.com: domain of fm-1326448-20240927190714efac48b58e7e152462-fmmzly@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1326448-20240927190714efac48b58e7e152462-FmmZlY@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: alexander.heinisch@siemens.com Reply-To: alexander.heinisch@siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Alexander Heinisch This enables the use of local caches like apt-cache-ng when using isar's snapshot facility. e.g. DISTRO_APT_SNAPSHOT_PREMIRROR_BASE=localhost:3142/snapshot.debian.org Note: When setting the variable from the environment make sure you add it to the kas file as follows. Make sure the default is null. ``` env: DISTRO_APT_SNAPSHOT_PREMIRROR_BASE: null ``` Signed-off-by: Alexander Heinisch --- meta-isar/conf/distro/ubuntu-common.inc | 3 ++- meta/conf/distro/debian-common.conf | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta-isar/conf/distro/ubuntu-common.inc b/meta-isar/conf/distro/ubuntu-common.inc index 232bee35..2c2f02f8 100644 --- a/meta-isar/conf/distro/ubuntu-common.inc +++ b/meta-isar/conf/distro/ubuntu-common.inc @@ -37,4 +37,5 @@ SYSTEMD_BOOTLOADER_INSTALL:focal = "systemd:${DISTRO_ARCH}" SYSTEMD_BOOTLOADER_INSTALL:jammy = "systemd:${DISTRO_ARCH}" # snapshot mirror for reproducible builds -DISTRO_APT_SNAPSHOT_PREMIRROR ??= "(http|https)://archive.ubuntu.com/(.*) https://snapshot.ubuntu.com/\2/${APT_SNAPSHOT_DATE}/\n" +DISTRO_APT_SNAPSHOT_PREMIRROR_BASE ??= "snapshot.ubuntu.com" +DISTRO_APT_SNAPSHOT_PREMIRROR ??= "(http|https)://archive.ubuntu.com/(.*) https://${DISTRO_APT_SNAPSHOT_PREMIRROR_BASE}/\2/${APT_SNAPSHOT_DATE}/\n" diff --git a/meta/conf/distro/debian-common.conf b/meta/conf/distro/debian-common.conf index 8c6a3f63..de9e6933 100644 --- a/meta/conf/distro/debian-common.conf +++ b/meta/conf/distro/debian-common.conf @@ -40,4 +40,5 @@ COMPAT_DISTRO_ARCH:amd64 = "i386" COMPAT_DISTRO_ARCH:arm64 = "armhf" # snapshot mirror for reproducible builds -DISTRO_APT_SNAPSHOT_PREMIRROR ??= "deb.debian.org/(.*) snapshot.debian.org/archive/\1/${APT_SNAPSHOT_DATE}/\n" +DISTRO_APT_SNAPSHOT_PREMIRROR_BASE ??= "snapshot.debian.org" +DISTRO_APT_SNAPSHOT_PREMIRROR ??= "deb.debian.org/(.*) ${DISTRO_APT_SNAPSHOT_PREMIRROR_BASE}/archive/\1/${APT_SNAPSHOT_DATE}/\n" From patchwork Fri Sep 27 19:06:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "alexander.heinisch" X-Patchwork-Id: 3835 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 27 Sep 2024 21:07:24 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-qt1-f187.google.com (mail-qt1-f187.google.com [209.85.160.187]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 48RJ7Ntu026030 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Sep 2024 21:07:23 +0200 Received: by mail-qt1-f187.google.com with SMTP id d75a77b69052e-45b5cdfbc89sf47348591cf.3 for ; Fri, 27 Sep 2024 12:07:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727464037; cv=pass; d=google.com; s=arc-20240605; b=gDjg+NhE6KrgtQrtTfL1sN0WekPwTa5rj7m4J5aI/iXXrN/1rocfj2AfvQchDG91Md 5H08/qppg6owbxU9At85DuCU/QFT8WtuJAfQwFooaZpV6YYyoeNO+O+M92NmrRoPluQ+ 6wKMMoJR7ewLbuYJ9MZjOXSDsU0QxvkVRP1cuOCDzUCvlLvaauzcscQ4Oo8h9T3usU9P /O1Zlxqe4UmzYXiJ3QvSfef9N+S8lZ5MUMbktSEZ2jjCOCj9fpmqme6jWffBtSjzFc9/ lJEhj9+X/65sXAPEK7avoVyqwoRA7hZhGL9YeMqYFgE6hYJ6OOmQsh0Q8iTyHooDD2mG IilQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xEnCWyhlD33wSJp8e+pJQnAbDtMumbsoyXFfak1rD8g=; fh=w06LJQYubtNOhb8keY8jJAlnhAtduf2ryMpoiYEA6hE=; b=EB50UIrCxwq/xNZ4F8bRsTP+MGvCeX7q+gLTZzxcU47N7sE4Aihcs3P1e4+LQlSpL+ kYgmdHPFgcn47zmQERmaGu2axCiOesBNFFLf7BziKt7L7U2HSISwvasYeuiPXcHYXs8I HXo8Aq48S5oIt71hbHKUQa0gp0qfIJRGVzJB8VG/IBh/QMbdUARzbjq/kLkTJNigp3z9 ycxIsPQOtF7IVkNi/uAxRo1UvH7r/tgEiZ7RXmZpbrzvq6TTQxjWFRuKPUWIi2xkHivg UtpOXDJsJBuHBR6He+AjZ7xmGe/ileTMeMgeLgmSPkuNndiaZG1pVEr7uBneUazjFGZz N+/Q==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=SMzES334; spf=pass (google.com: domain of fm-1326448-20240927190715270b57b5ce3f34e95c-uvlqq9@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1326448-20240927190715270b57b5ce3f34e95c-UVlQq9@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1727464037; x=1728068837; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=xEnCWyhlD33wSJp8e+pJQnAbDtMumbsoyXFfak1rD8g=; b=ZAed2e7EIE0AkRcz8wjimZ39yjdYNo2LQXVk2VMMEktBhIivvhe4kTOlLO5p8SQjK7 bgIl/LOf544DYwnTxDxfKBai7yEvmtCd13Jhw13QxFU15wEQNJ7ZmLWYioKn/PTeiw6Y uS+HUwGgsDCIZnptnFYZoNIfSNvImOmE8i9gc3hwH+TBLIT2ncbaIFjegKqswxyXSYxX xHdwgDhtiO3JyrfSoQ8MjdDNGy4ttiVc7Vcn6R9PT6eZ4rkQ79lk0VcZvvUGma2Jm1Rd zl0nyYZJs/bEaaNfKqiUeGCKVCZijcSki8LgqDB7g86IK9ytNTZy4x++yO0vjjStnqlA ZGlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727464037; x=1728068837; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xEnCWyhlD33wSJp8e+pJQnAbDtMumbsoyXFfak1rD8g=; b=Mn1G0kW/XPPm1Iwtnh72pibPoGfIYsJszxFF9P81WV+WiQr2ZjfgzAv2eE9XRTgNgZ kMqlAeisVrnl5mcPKJNsdAWM0r0xcxlkx7enJ9LND3AvGintDS/8n3LAqByCm/ABaUXd R2EF8zyPFIQUJFmoU2Cv+eqytRbdIekvmwzst2IeYJUqpPi6MajDuOYK1qMfakYwsEIr 3CV9qXXvrGc5romqr3fgsIP3wgJA/BjHiThJie/Qb4gsGX0bMSo6PQDmVfzssFr/Pj2t 3z6p4KLacvudxaSJqihZOwNpVacWqMOmlTtxv/BNNOwVaf0jtUKMCwXirWHTlS8Oa3hc lkog== X-Forwarded-Encrypted: i=2; AJvYcCWyvXwxEyfaNrcNtSi4iJcQMiHAiWv/dFYaXbb3BSenELNPmVxLuNdeiHA19n2P3W0EB/tpk8Y=@isar-build.org X-Gm-Message-State: AOJu0YxEOm8tH3ERdsO30rWJf8PrI+QueEciqoVhiJj4dynJnl/ZYrUi Qqam7xAqgQoDra015z1/W1eIYfcuInJh7gJvDg8CNqp5wfaCMsMg X-Google-Smtp-Source: AGHT+IEtlp3Xn4oRyJYc686Fckn04/i5657OsHtNfzqyzKBJR/ZvQECyR2hIFbqCHfzJCP5H9LCFVw== X-Received: by 2002:a05:6214:419c:b0:6c3:6e89:4a48 with SMTP id 6a1803df08f44-6cb3b6352c0mr61102766d6.22.1727464037410; Fri, 27 Sep 2024 12:07:17 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6214:268b:b0:6b5:da50:ac19 with SMTP id 6a1803df08f44-6cb2eeaabffls47285186d6.2.-pod-prod-07-us; Fri, 27 Sep 2024 12:07:16 -0700 (PDT) X-Received: by 2002:a05:6214:2f8b:b0:6bf:6ef6:22d5 with SMTP id 6a1803df08f44-6cb3b605d05mr52797566d6.17.1727464036523; Fri, 27 Sep 2024 12:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727464036; cv=none; d=google.com; s=arc-20240605; b=fhG2J8buozMFXUgLYFncJroJ9a2g46ZYbv8FoM8kZGTBSzO+gpkSO3/n8BOWEK5Lir rGfvDHuIr+rPSOZgovYc6aAhvHwpPZ0ZXrDsSBhNiEL7+b7ZbUgCs+srEPHEYZegtJ9U YwDeCYAYB/3ZvmrWZdvDe4BHl0OUBCHIwTeg1ufqSvVR8O5mJB/AO8OvnI6YEIfzSFDg qGVCKhuACo0ITcjjlKc1GgZaQfyNVswjrQ3EXc2me5yRr1PowqMtSwhn6d8IUvDjbg8T p/DfTaQRXZ7YhDej91PiX20UZwLoyAx5TRNdHamnGhQfqxj8+CjmT8QMLNx2DzrHcjbt JE4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=VFo35bpJPe+PGvMfJPOQpPdR7iLyaY/We2ntZ72VNrc=; fh=qlpLpZCOHpn3j/g0XGeAn8LOB72WJczsFovYQ6vHQlk=; b=hdwLTIF5VQMrv1bR0YBnNP4uenCya6aP4O4Ww/UdM/98O8DWb+fPk/8g/gBH7dMIYA yM+CpBm94OJd2HRiPqpzDn1FeifkW3f0EkmN0ET4ABF5xDYTXPPlFvvGKa9OsJ0AhABm gOjOaDEKJBjHRRkMy4Y/v/PoNFWJVD6q/HS3OxtulJPgL8mPzuTAvqiCqOnWcN2UIt0K ywKP03uorV5xJEAkmLRIDGlh/xYKcZG5c8OGPYsXGTcIlx7xfsEBVozO2D1O6IsHHlYy uJfL65+0mB63HbKrjcPsFeUISKe5OsZtaQjRmlcMPi79USo3Z9f3s5j2xCnsUWMr8zV0 Ku9w==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=SMzES334; spf=pass (google.com: domain of fm-1326448-20240927190715270b57b5ce3f34e95c-uvlqq9@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1326448-20240927190715270b57b5ce3f34e95c-UVlQq9@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id 6a1803df08f44-6cb3b6c75b4si1146236d6.3.2024.09.27.12.07.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Sep 2024 12:07:16 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1326448-20240927190715270b57b5ce3f34e95c-uvlqq9@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20240927190715270b57b5ce3f34e95c for ; Fri, 27 Sep 2024 21:07:15 +0200 X-Patchwork-Original-From: "alexander.heinisch via isar-users" From: "alexander.heinisch" To: isar-users@googlegroups.com, felix.moessbauer@siemens.com Cc: Alexander Heinisch Subject: [PATCH 2/3] Added Kconfig for cached snapshot mirror Date: Fri, 27 Sep 2024 21:06:49 +0200 Message-ID: <20240927190650.128263-3-alexander.heinisch@siemens.com> In-Reply-To: <20240927190650.128263-1-alexander.heinisch@siemens.com> References: <20240927190650.128263-1-alexander.heinisch@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1326448:519-21489:flowmailer X-Original-Sender: alexander.heinisch@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=SMzES334; spf=pass (google.com: domain of fm-1326448-20240927190715270b57b5ce3f34e95c-uvlqq9@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1326448-20240927190715270b57b5ce3f34e95c-UVlQq9@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: alexander.heinisch@siemens.com Reply-To: alexander.heinisch@siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Alexander Heinisch Signed-off-by: Alexander Heinisch --- kas/opt/Kconfig | 25 ++++++++++++++++++++++++- kas/opt/mirror-snapshot.yaml | 3 +++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 65482e3a..ef08564c 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -7,6 +7,15 @@ menu "Mirror selection" depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || DEBIAN_SID || UBUNTU_FOCAL || UBUNTU_JAMMY +choice + prompt "Mirror type selection" + default MIRROR_NONE + +config MIRROR_NONE + bool "Don't use a mirror" + help + Use apt urls as specified in apt.list + config MIRROR_DEBIAN bool "Use specific Debian mirror" depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || DEBIAN_SID @@ -42,7 +51,6 @@ config KAS_INCLUDE_MIRROR_UBUNTU config USE_APT_SNAPSHOT bool "Use the distros snapshot mirror" - depends on !MIRROR_DEBIAN && (DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || DEBIAN_SID || UBUNTU_FOCAL || UBUNTU_JAMMY) help Use a snapshot mirror for the selected distribution. The date is defined by ISAR_APT_SNAPSHOT_TIMESTAMP. @@ -51,6 +59,21 @@ config KAS_INCLUDE_APT_SNAPSHOT default "kas/opt/mirror-snapshot.yaml" depends on USE_APT_SNAPSHOT +config USE_APT_SNAPSHOT_CACHED + bool "Use a cache for snapshot mirror" + depends on USE_APT_SNAPSHOT + +config DISTRO_APT_SNAPSHOT_PREMIRROR_BASE + string "Base URL of the snapshot mirror" + default "localhost:3142/snapshot.debian.org" + depends on USE_APT_SNAPSHOT_CACHED + help + Set the premirror base url used for snapshots. + This can either be a local cache (e.g.: localhost:3142/snapshot.debian.org) or + any mirror like snapshot.debian.org used to retrieve snapshots from. + +endchoice + endmenu diff --git a/kas/opt/mirror-snapshot.yaml b/kas/opt/mirror-snapshot.yaml index 59fae192..493e1552 100644 --- a/kas/opt/mirror-snapshot.yaml +++ b/kas/opt/mirror-snapshot.yaml @@ -7,3 +7,6 @@ header: local_conf_header: mirror-debian: | ISAR_USE_APT_SNAPSHOT = "1" + +env: + DISTRO_APT_SNAPSHOT_PREMIRROR_BASE: null From patchwork Fri Sep 27 19:06:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "alexander.heinisch" X-Patchwork-Id: 3837 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 27 Sep 2024 21:07:28 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pl1-f190.google.com (mail-pl1-f190.google.com [209.85.214.190]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 48RJ7Q3B026067 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Sep 2024 21:07:27 +0200 Received: by mail-pl1-f190.google.com with SMTP id d9443c01a7336-206d8c47496sf27501275ad.2 for ; Fri, 27 Sep 2024 12:07:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727464040; cv=pass; d=google.com; s=arc-20240605; b=B10UHluZS7Fz4ai8Mdwq0RNJaeZbHCWS04fPLN+QAdLYHJ9yqye946C8IAWyKxm57X J3LN0ZluUIIScmYWHKL133WqebJXvziEQ9cOBOyjBiTYXXk624UXMn1JesmzM1ix1ZEX n7oZMzC0j6Pet7YJv69O1X3ZU14u9c1LSh2MNXBxt9qH6XOR/JQBCtvW+HWN8GZq3XQJ uKBS78L4iTMFwAazyCSH97ixrLUIMfuZoMSNQPDyIndc7EXv2pdhwkRnhXYuLJgoE18q LcwvaiB/Wf+O4cDfaFjbQV3U1yN0nG/LtdVgA2tTzmcwMLGnyi+om5Ah8PIQacYHzwbD EaRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NcqgPPeM+YaASNOTN8ZBk5LW6I6ObOpAbiqfyfkaMl0=; fh=k7yFM56bIkKq5ikpn+gT2a3gLLfWreZ/2eNO5wMJ/Xo=; b=H2c/4T6kkm6E8u3lCV1WayyVuoKfkIZFH1EVbluCAM/VOrmsqOgpusiLFeX6ajD2vf 5fr7Ae9cb37W1walQYinUJjZFveWR7GKqp3B4yPhOeY05Vw3GB0O53X947/dxaNlyGNM yf5iEIZ+AGoUtj59bO3RZgtUfSwkWh8NE+JZZ74rK/JyOmk6e59H5HG7VNWm6eqQiRaa l6Rf48Vg9jgVd5+erDw62jnA6PMzK4E8A6KHeaI4KLR7pDmhdLT6QGhQX9hU4/Q0X2xV OHIN+dFo3XL1XJC8CJzbylAty+0vRhOHU+h4Niapv/oJnVuutF9FrBkTOZU87XZWIfNP 2ArQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=fy4+QBAt; spf=pass (google.com: domain of fm-1326448-20240927190715d322c1e30410a1ae6e-n6itgp@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1326448-20240927190715d322c1e30410a1ae6e-n6ITGp@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1727464040; x=1728068840; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=NcqgPPeM+YaASNOTN8ZBk5LW6I6ObOpAbiqfyfkaMl0=; b=WCY/WdnePsyCJzSRt/lW0RZihZEsaehWtCdSjJ0huSOt1pyN2rFyszQvkcyWj+DLwb Ym2YyttWNwkHqxoHxhRlik1XU9xD1ekkkqd8PVQl03MDXHwLyThHJyJOE0Gddg3RXUJf 9RswfhUwS4GADzLMWmh3jZD22NeUZkXlQfHE6SdiS/Qqipb5rhTrxOL2E+yc+nUsdvSu 81t66RC5ynLasAMZOMhKP/S0dRO/OD4JBNA48XCEzBOWMASdr/418zhFApJVy6pVoecw q/sjJvZ2MIiLjouSaozUHv9/qFSB8m5NZeZxF3Ni5qpRtrXzQzn4u+8XfPwteFYgHJAK k2vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727464040; x=1728068840; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NcqgPPeM+YaASNOTN8ZBk5LW6I6ObOpAbiqfyfkaMl0=; b=ce6umGhn59ENLT+JDHWaR1SlZ2PfXEiyCEXkrsXVOzh76mmYSvWrYaaxDa0zxuEKdg 7QKVqgRSGQfN2smNnBYMAQ+iLiS7A4vJo/oZxsxu5Vjb72ZO2j6OdPPAq9ZD/ji2JVAW 0fN43vWLesfIJkNq45dtXjogE2QHehxxT9eNAN35FdqXOihqc4iatHfTPStq5P8zQJfO n1j82ompcqkPG/K3sGNoY5T0FWfLPfGBoyQj+BvF5x4eqOMrO2rMExCZRTTMIZ7iHRWM YFncKhoEoRL67DMTpvC8y2fCwpV33CSFas1R85LV7F+cHVMtIH1j56KmJDN9Hx4wJl00 eBgA== X-Forwarded-Encrypted: i=2; AJvYcCXwz4sHD/+eGc6Zs5cAERa/qivOHIEt04l26nreMY9lp1Qdz0TUp7rjrGu2mrm+IzDoGNc1xtI=@isar-build.org X-Gm-Message-State: AOJu0Yy2RJb1cdXjI+mRfTpSNbaEFi3wPgSYM2xEk+kwwJh0ytN0m6Hh 8O5Z9dgV2mi2hXLWpcjqlG+cS684SKilc0k7pHj3/ha8ye4u9jwT X-Google-Smtp-Source: AGHT+IHM2Tya/XWHTKliiWGgrml+jwDRGNNPCusPocAxIL81nMjfA2RL9k+SFTT6Evvq/M30IY3OUQ== X-Received: by 2002:a17:902:f60e:b0:20b:4862:160 with SMTP id d9443c01a7336-20b48620357mr41000385ad.43.1727464039791; Fri, 27 Sep 2024 12:07:19 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:ce89:b0:205:43b8:1aa7 with SMTP id d9443c01a7336-20b19af3828ls3931075ad.0.-pod-prod-07-us; Fri, 27 Sep 2024 12:07:18 -0700 (PDT) X-Received: by 2002:a17:902:e743:b0:20b:4175:c018 with SMTP id d9443c01a7336-20b4175c254mr40006735ad.57.1727464038301; Fri, 27 Sep 2024 12:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727464038; cv=none; d=google.com; s=arc-20240605; b=PA58PhufPL/rt9ZNCj7HYJWDHLgAnDqhHWNQ0FtLYINy1sUMzTTLkqUFUw7ooZfBFj SgcYgiX5yUIiXDTRqP0YI+e03g7QSWC/PR3CXgpD4qWCt51WyV6kYfN4foy4Ca5LvmkC wwp8AuqKnl5UIhzjnc2omkNoa2XtCncsSUz0NKtQY+tOq+HZgudayfSP2cj/ALz5OX5r Lumwo997K5bYkTGBL6qfL5TJ2giGOWOxiPz5QeIWVJbzCPnNUiLIx3VmaCxrljJthLXA YpbeaXGeaINz6u1I3jzJ2xLn3m/wbAg5FTWMsHHhkHzUsU6UMMuigdeIAmRYdHmGOqCO Wv/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=B4pwPnZYZEVlZr0m3U1L+hKVz1r9EBU0w/1oFjZa/j8=; fh=qlpLpZCOHpn3j/g0XGeAn8LOB72WJczsFovYQ6vHQlk=; b=OrSJgyWntVNJSrTYL5byHgJ38Vp+J5OLnDYrvZjbzM9D2nZZp5Oza9dPSX2YxpQgat gdy3h6Y8FHQsxnv4srVB+fgT/SxkyEPrR4WUOYFixzW6ol/8Hse2DY9vu91h2aufrysV bXFPwfGL4fSK7IoMqIwWNh7a/97rrNvmXy5ktXPXrlADq/40Zkku8DhBqM9CDlSnbDbU YMcbze042aApg998V4Gxq/AW739t4if3bid82yzfDU3/q1vw0RbIIp/2PLkWyVXe4WMw kjjllmrmkWe4nmyEyCR9jThZUaF2aw8sdfLyDZKQ3cwfFfWoe+1hOXW5x4mM6ljmOFXb 0DUw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=fy4+QBAt; spf=pass (google.com: domain of fm-1326448-20240927190715d322c1e30410a1ae6e-n6itgp@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1326448-20240927190715d322c1e30410a1ae6e-n6ITGp@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id d9443c01a7336-20b37da5e6bsi1228625ad.1.2024.09.27.12.07.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Sep 2024 12:07:18 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1326448-20240927190715d322c1e30410a1ae6e-n6itgp@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20240927190715d322c1e30410a1ae6e for ; Fri, 27 Sep 2024 21:07:15 +0200 X-Patchwork-Original-From: "alexander.heinisch via isar-users" From: "alexander.heinisch" To: isar-users@googlegroups.com, felix.moessbauer@siemens.com Cc: Alexander Heinisch Subject: [PATCH 3/3] Added doc to setup apt cache. Date: Fri, 27 Sep 2024 21:06:50 +0200 Message-ID: <20240927190650.128263-4-alexander.heinisch@siemens.com> In-Reply-To: <20240927190650.128263-1-alexander.heinisch@siemens.com> References: <20240927190650.128263-1-alexander.heinisch@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1326448:519-21489:flowmailer X-Original-Sender: alexander.heinisch@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=fy4+QBAt; spf=pass (google.com: domain of fm-1326448-20240927190715d322c1e30410a1ae6e-n6itgp@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-1326448-20240927190715d322c1e30410a1ae6e-n6ITGp@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: alexander.heinisch@siemens.com Reply-To: alexander.heinisch@siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Alexander Heinisch Signed-off-by: Alexander Heinisch --- doc/apt-cache.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 doc/apt-cache.md diff --git a/doc/apt-cache.md b/doc/apt-cache.md new file mode 100644 index 00000000..f03ea7ee --- /dev/null +++ b/doc/apt-cache.md @@ -0,0 +1,55 @@ +# Using an APT Cache + +When working on the road limited download bandwitdth oftentimes is an issue, and increases the build times drastically. +On the other hand large corporate networks could get rate limited by debian mirrors, as many peoply / pipelines / aso. +fetch huge amounts of packets. + +An apt cache can mitigate these issues. + +## Setup + +1. Install apt cache + +``` +apt install apt-cache-ng +``` + +## Using the cache using premirrors + +1. Set `DISTRO_APT_PREMIRRORS` in your projects `bitbake` or `kas` config: + +``` +DISTRO_APT_PREMIRRORS="http://deb\.debian\.org http://localhost:3142/deb.debian.org"\n"" +``` + +1. Invoke `kas menu` and select + 1. `Mirror selection -> + 1. Use specific (Debian | Ubuntu) mirror -> + 1. URL of (Debian | Ubuntu) mirror (e.g. `http://localhost:3142/deb.debian.org`). + + +## Using the cache when snapshot builds are configured + +When you chose to use isar's snapshot mechanism: +``` +ISAR_USE_APT_SNAPSHOT = "1" +``` +you can enable the cache, depending on your build environment, as follows: + +1. Set `DISTRO_APT_SNAPSHOT_PREMIRROR_BASE` in your projects `bitbake` or `kas` config: + +``` +DISTRO_APT_SNAPSHOT_PREMIRROR_BASE=localhost:3142/snapshot.debian.org +``` + +1. Set `DISTRO_APT_SNAPSHOT_PREMIRROR_BASE` in your environment and include `kas/opt/mirror-snapshot.yaml` to your kas file or append it on kas cli invokation. + +1. Invoke `kas menu` and select + 1. `Mirror selection -> + 1. Use the distros snapshot mirror -> + 1. Use a cache for snapshot mirror and specify the snapshot mirror you prefer (e.g. `localhost:3142/snapshot.debian.org`). + + +> Note: When invoking the build in a containerized environment like `kas/kas-container menu`, you have to specify the ip address of the machine running `apt-cacher-ng`. + +> Note: To limit access to the `apt-cacher-ng`, a dummy network interface can help!