public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	"Moessbauer, Felix" <felix.moessbauer@siemens.com>
Subject: Re: [PATCH v2 1/5] testsuite: Dockerfile for docker-isar image
Date: Thu, 23 Mar 2023 08:24:05 +0300	[thread overview]
Message-ID: <2141367.yiUUSuA9gR@hp> (raw)
In-Reply-To: <f6e90678ac500a439012f6abef0ce8ed5698c1c2.camel@siemens.com>

In mail from Wednesday, 22 March 2023 19:22:09 +03 user Moessbauer, Felix 
wrote:
> On Wed, 2023-03-22 at 13:29 +0100, Uladzimir Bely wrote:
> 
> > Add dockerfile for generating docker-isar image supposed to be used
> > in docker-based CI systems.
> > 
> > This image better fits testing when compared with 'kas-isar' one:
> >  - Avocado test framework preinstalled.
> >  - Qemu-system packages for running execution testcases preinstalled.
> >  - Direct avocado execution (without ci_build.sh) when necessary
> > (e.g.,
> > for manual testing).
> > 
> > Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> > ---
> >  testsuite/dockerdata/.dockerignore |  2 ++
> >  testsuite/dockerdata/Dockerfile    | 18 ++++++++++++++++++
> >  2 files changed, 20 insertions(+)
> >  create mode 100644 testsuite/dockerdata/.dockerignore
> >  create mode 100644 testsuite/dockerdata/Dockerfile
> > 
> > diff --git a/testsuite/dockerdata/.dockerignore
> > b/testsuite/dockerdata/.dockerignore
> > new file mode 100644
> > index 00000000..6e19512a
> > --- /dev/null
> > +++ b/testsuite/dockerdata/.dockerignore
> > @@ -0,0 +1,2 @@
> > +.dockerignore
> > +Dockerfile
> > diff --git a/testsuite/dockerdata/Dockerfile
> > b/testsuite/dockerdata/Dockerfile
> > new file mode 100644
> > index 00000000..87ae2f20
> > --- /dev/null
> > +++ b/testsuite/dockerdata/Dockerfile
> > @@ -0,0 +1,18 @@
> > +FROM ghcr.io/siemens/kas/kas-isar:latest
> 
> 
> I would recommend to use a fixed version / tag here.
> Floating references are problematic as local rebuilds of the image
> might use different versions of the base image.
> 
> Felix
> 

Actually, ":latest" here is just an anchor for sed (see README.md from p.2).

I didn't find better simple way to generate new image with the same version as 
base image has. Any other approach needs Dockerfile to be edited.

> 
> > +
> > +ARG TARGETPLATFORM
> > +ARG DEBIAN_FRONTEND=noninteractive
> > +
> > +USER root
> > +
> > +# Isar testsuite dependencies
> > +RUN pip3 --proxy=$https_proxy install avocado-framework==100.1 && \
> > +    rm -rf $(pip3 cache dir) && \
> > +    apt-get update && \
> > +    apt-get install -y -f --no-install-recommends \
> > +        qemu-system ovmf
> > +
> > +RUN apt-get clean && \
> > +    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 
> 
> 
> Please do this in the previous RUN invocation as otherwise the data is
> added to the first layer. By that, no space is saved.
> 
> Felix
> 
> 
> > +
> > +USER builder
> > -- 
> > 2.20.1
> > 
> 
> 





  reply	other threads:[~2023-03-23  5:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22 12:29 [PATCH v2 0/5] Use `docker-isar` image for maintainer test jobs Uladzimir Bely
2023-03-22 12:29 ` [PATCH v2 1/5] testsuite: Dockerfile for docker-isar image Uladzimir Bely
2023-03-22 16:22   ` Moessbauer, Felix
2023-03-23  5:24     ` Uladzimir Bely [this message]
2023-03-23  5:46     ` Jan Kiszka
2023-03-22 12:29 ` [PATCH v2 2/5] testsuite: Add README for docker-isar Uladzimir Bely
2023-03-22 12:29 ` [PATCH v2 3/5] gitlab-ci: Switch to `rules` instead of `except` and `only` Uladzimir Bely
2023-03-22 12:29 ` [PATCH v2 4/5] gitlab-ci.yml: Run 'fast' and 'full' only if specific variable set Uladzimir Bely
2023-03-22 12:29 ` [PATCH v2 5/5] gitlab-ci.yml: Add jobs that run with custom docker-isar image Uladzimir Bely

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=2141367.yiUUSuA9gR@hp \
    --to=ubely@ilbers.de \
    --cc=felix.moessbauer@siemens.com \
    --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