Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CCEFFC74A5B for ; Thu, 23 Mar 2023 18:58:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BB01F85888; Thu, 23 Mar 2023 19:58:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="IBeKiMW7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AE56C85888; Thu, 23 Mar 2023 19:58:39 +0100 (CET) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BBB2C857DF for ; Thu, 23 Mar 2023 19:58:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf36.google.com with SMTP id x8so14794164qvr.9 for ; Thu, 23 Mar 2023 11:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1679597915; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I0EXo1jnCagf04Aq4Ho9q1JjGXQpEaba2HgWHzK9MtM=; b=IBeKiMW7Py/3MxqPM6dCtkuHsmtrDyRl/3qcbup58CGxH3VpRIrYQS7fA9kOazoaNd LK7Gez1baA3Jl6BRrgAhH22Kqnhzu3Udm4tsap6wn297c65fBek4WR78Ujp8RFMcql4y YOFokdTHVoHCZcJ/Dcxp4si0IfyTSKxK0M260= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679597915; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I0EXo1jnCagf04Aq4Ho9q1JjGXQpEaba2HgWHzK9MtM=; b=OrhAmtUzHagEdgorQWzAD9ltaWNEevvhYP/FMJ90r2+DcqUAUonz76KlrEjeOXcTyV GEN/MpxTn5+vcKbeG1f/Jyz6eqNR9n0zUEiFscYal1wnmjFIlCKu9WEjsn/Wt6lYqyZr 91sE5ou70OVcXnJWXea5SBNWl3zQAnKXkglZ5f1H5HToGU2wGPrBV5RcBOfyHqddh+c+ IoCTO4+PuUe+jxvnAq3yLvaYEI5qmB4ptfZ6CeljSJ3vB8YGu8ZzEV+cKeAx/sxmZW0U fH7fqYKQI5M5UIDpVi0f1m7XeN/FycM7a39tQkB5SohIpeHNbWPxsLhxrO41mQnkJcZR bxTw== X-Gm-Message-State: AO0yUKUF+BEl8WDRp2rXLw7s+z2VPpgS9jNlvPMyZ+OenXNk8zctIM9B UCohSxeNBnaz4+fvykaTLzbP3A== X-Google-Smtp-Source: AK7set9cCVIJRSMfPx0hKYwqBgplllE3EynVMTJp9ESFpv6jN9RST59K/2n1w8/wM2aBfT83ktufqw== X-Received: by 2002:a05:6214:5299:b0:5ab:af50:eb36 with SMTP id kj25-20020a056214529900b005abaf50eb36mr13190770qvb.45.1679597915485; Thu, 23 Mar 2023 11:58:35 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-fe1d-4555-71ea-96cf.res6.spectrum.com. [2603:6081:7b00:6400:fe1d:4555:71ea:96cf]) by smtp.gmail.com with ESMTPSA id h26-20020ac846da000000b003bfb5fd72a7sm12128243qto.86.2023.03.23.11.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 11:58:34 -0700 (PDT) Date: Thu, 23 Mar 2023 14:58:33 -0400 From: Tom Rini To: Simon Glass Cc: u-boot@lists.denx.de Subject: Re: [PATCH 1/2] Dockerfile: Populate a pip cache Message-ID: <20230323185833.GF8135@bill-the-cat> References: <20230322191854.3843813-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0E7vk+DqMegjmUj3" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --0E7vk+DqMegjmUj3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 24, 2023 at 07:28:32AM +1300, Simon Glass wrote: > Hi Tom, >=20 > On Thu, 23 Mar 2023 at 08:19, Tom Rini wrote: > > > > Given the number of jobs in CI we have which use python and pip install > > packages, we should do this once in the Dockerfile, in order to populate > > the cache. We let each job continue to create and use the virtual > > environments they need to facilitate making updates to these > > environments easier. > > > > Signed-off-by: Tom Rini > > --- > > tools/docker/Dockerfile | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) >=20 > Reviewed-by: Simon Glass >=20 > > > > diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile > > index bd02531be249..27205002005c 100644 > > --- a/tools/docker/Dockerfile > > +++ b/tools/docker/Dockerfile > > @@ -265,6 +265,19 @@ RUN echo uboot ALL=3DNOPASSWD: ALL > /etc/sudoers.= d/uboot > > RUN useradd -m -U uboot > > USER uboot:uboot > > > > +# Populate the cache for pip to use > > +RUN wget -O /tmp/pytest-requirements.txt https://source.denx.de/u-boot= /u-boot/-/raw/master/test/py/requirements.txt > > +RUN wget -O /tmp/sphinx-requirements.txt https://source.denx.de/u-boot= /u-boot/-/raw/master/doc/sphinx/requirements.txt > > +RUN virtualenv -p /usr/bin/python3 /tmp/venv && \ > > + . /tmp/venv/bin/activate && \ > > + pip install -r /tmp/pytest-requirements.txt \ > > + -r /tmp/sphinx-requirements.txt && \ > > + deactivate && \ > > + rm -rf /tmp/venv /tmp/pytest-requirements.txt /tmp/sphinx-requi= rements.txt > > +#RUN pip download -r /tmp/pytest-requirements.txt \ > > +# -r /tmp/sphinx-requirements.txt && \ > > +# rm -f /tmp/pytest-requirements.txt /tmp/sphinx-requirements.txt >=20 > What are those lines for? Can you add a comment? Oh heck, I sent the wrong two patches from the branch, that's why. Thanks. --=20 Tom --0E7vk+DqMegjmUj3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQcoU8ACgkQFHw5/5Y0 tywfPwwAt/XvzPV6Bm/UkpTHhgiqtY3plZwglaGt8HVSdMZmqPLodUGFJFyw5uyd UNc2S1+kuFth9vGrl4gkWXZI9w+Z7WTrtrBeQrufLPdRkFnPw7n4yQXISzb0H6wF VmH3apCcYF7v9Y1x7urc8too+oHpHMTL+6VXUJ+46+TONL3NP9emlY3y/ZS73rib YMwIQQhti1HxRK7Kp9qnJtZU49m/TYaNac9JpXtctQzCjQlxfj1tJQ0nveljU+gn PlbXv0SAeABSFQLmYyGPySvg2sVDd2gBdLVSytCFadDOpBuNTA+LLmb42Ctbszfh 3P5e5FKdywritn/rNInfKuujBfxVtLHCjXUECwFWjxQKvklq4LV7n1SXELFKiWgt /BNvAwmH0POfYmSwuKEqkY8Rh0Drq068NzEFSVrBntCgp7IatSgQ/iyc8gh8Vro8 RspJyxcfaBIWPckTqcBmDLrPwOqx4DJfuLXjHCpnuiIBkr+bkSgHAWbahwOjMHtc SxxhN4Vy =d4Ia -----END PGP SIGNATURE----- --0E7vk+DqMegjmUj3--