From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7188033154287927296 X-Received: by 2002:a6b:e702:0:b0:704:7307:a612 with SMTP id b2-20020a6be702000000b007047307a612mr656915ioh.146.1673594388338; Thu, 12 Jan 2023 23:19:48 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:97cc:0:b0:6bc:c593:b6b3 with SMTP id k12-20020a5d97cc000000b006bcc593b6b3ls812081ios.6.-pod-prod-gmail; Thu, 12 Jan 2023 23:19:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXs4ttL7OVYXCcSH+1wnYKMI48pPtlIm+jMKIcof/Mv0mrEfkZAtdV/YDmzauyaPfgtzlYMb X-Received: by 2002:a5d:8795:0:b0:704:77d0:eb70 with SMTP id f21-20020a5d8795000000b0070477d0eb70mr3316032ion.17.1673594387705; Thu, 12 Jan 2023 23:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673594387; cv=none; d=google.com; s=arc-20160816; b=kMz0rUVIcxPdOgOZX8MzFrlrd1VXeON4oLF8zT4eibaGAzJk4zPE+P0SIBG/ZLxrTD 8LmlAs8F1gN3GarSIEuB1CpXLF4b2IykcI1y3Bvvn85dd5wE/gZzK4ecvXlQttTM47aN ZWWhE189rAZIGQr5SPM5xLCzKV4Z7l8AUOkuRjcnCAwsUf548T3H3rfDbwuHnfuPU/En eqT63gsz27YYfId4CLSDXZUXEaBWSqhbb7T02jcN13szNx/283pnOWtYPzEYeXPrXeNl NqKm1S3ZLtSobT9EymTFvOGh3ZfvVvBC17tj/C8uCtMbroUsX0BBxeab+RyM1XyoRah9 6S9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=Q/Pf/jjGu6o7gNTZcJB2yisiaBnYe5v+KX0Sg0HeXCY=; b=N24DqzTn+uZxtrB+p40N6ZAoks/ne68+5SIyE+Q3UjYlIlLVEP3glkj+4lBsefcuGI IBt8/YRDdDsYMxpTCHEKqvkQSzaB9JuIKr4f9ilgE1rmjCj/HYep70LfGutxx9fz9mfv lzPUCb8mzof8RWo6dgUtz9tHiBsCqtGlE/X1coTsyUYLW2zZZ8It01tHtgRbn9FF46Ag wJwcLi061i7ggvoScP8/uqz6n8K325jssAgRG56ID3elnvuuwmfq60odXQScTsZQBx86 +3kcMUkDc9nveX6v9a/45VOt8qkpmOrrSFCwkuO2J8tZVtG9B4nsMRmtimpIdsyXOZ+q SVPw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id n13-20020a056e0208ed00b0030d885207eesi1607169ilt.3.2023.01.12.23.19.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jan 2023 23:19:47 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 30D7JgEx027786 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 13 Jan 2023 08:19:45 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH 09/11] meta-isar: Use a separate image recipe in CI Date: Fri, 13 Jan 2023 08:19:40 +0100 Message-Id: <20230113071942.22506-10-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230113071942.22506-1-ubely@ilbers.de> References: <20230113071942.22506-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: T6JhWsVJzqhE In order not to spoil `isar-image-base` or `local.conf.sample`, put CI-specific configuration to a separate image recipe. This includes SSH configuration VM images and separate user with non-interactive SSH access. Signed-off-by: Uladzimir Bely --- .../recipes-core/images/isar-image-ci.bb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta-isar/recipes-core/images/isar-image-ci.bb diff --git a/meta-isar/recipes-core/images/isar-image-ci.bb b/meta-isar/recipes-core/images/isar-image-ci.bb new file mode 100644 index 00000000..74b841ba --- /dev/null +++ b/meta-isar/recipes-core/images/isar-image-ci.bb @@ -0,0 +1,30 @@ +# Debug root filesystem for target installation +# +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +require recipes-core/images/isar-image-base.bb + +# Setup SSH server on board +IMAGE_INSTALL += "sshd-regen-keys" +# Network should be up for using host-to-guest port forwarding +IMAGE_PREINSTALL += "network-manager" + +# Create separate user with non-interactive access to the VM guest over SSH +GROUPS += "ci" +GROUP_ci[flags] = "system" + +USERS += "ci" +USER_ci[gid] = "ci" +USER_ci[home] = "/home/ci" +USER_ci[comment] = "User for CI run tests" +USER_ci[flags] = "system create-home" +USER_ci[groups] = "sudo" + +USER_ci[password] = "ci" +USER_ci[flags] += "clear-text-password" + +USER_ci[flags] += "copy-ci-key" + +# Don't QA check files added by 'copy-ci-key' flag when postprocessing +ROOTFS_QA_FIND_ARGS = "! -path ${ROOTFSDIR}/home/ci/.ssh" -- 2.20.1