From: Nathan Chancellor <nathan@kernel.org>
To: Guillaume Tucker <gtucker@gtucker.io>
Cc: "Miguel Ojeda" <ojeda@kernel.org>,
"David Gow" <davidgow@google.com>,
"Onur Özkan" <work@onurozkan.dev>,
"Arnd Bergmann" <arnd@arndb.de>,
linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org,
linux-kbuild@vger.kernel.org,
automated-testing@lists.yoctoproject.org,
workflows@vger.kernel.org, llvm@lists.linux.dev
Subject: Re: [PATCH v2 1/2] scripts: add tool to run containerized builds
Date: Tue, 30 Dec 2025 13:23:24 -0700 [thread overview]
Message-ID: <20251230202324.GC4062669@ax162> (raw)
In-Reply-To: <50ee5ec6-ca9b-486d-ac7e-5a896006a9de@gtucker.io>
On Sun, Dec 21, 2025 at 09:09:17PM +0100, Guillaume Tucker wrote:
> On 19/12/2025 10:27 pm, Nathan Chancellor wrote:
> > On Thu, Dec 18, 2025 at 01:49:52PM +0100, Guillaume Tucker wrote:
> > ...
> > > + def __init__(self, args, logger):
> > Adding something like
> >
> > self._args = [
> > '--rm',
> > '--tty',
> > '--volume', f'{os.getcwd()}:/src',
> > '--workdir', '/src',
> > ]
> >
> > here then adding an __init__() in the subclasses to append the runtime
> > specific arguments would allow _do_run() to be moved into
> > ContainerRuntime(). Otherwise, this looks pretty good and extensible.
>
> Yes, I left these very similar parts as-is on purpose to make it very
> clear what the command line arguments are for each container runtime.
> It's a good idea to refactor this though as you mention, and I'll add
> a debug log message to print the command line instead.
>
> I'm also anticipating that other runtimes will be quite different,
> Podman and Docker just so happen to have many options in common.
> Things like runc or containerd are very different beasts so I don't
> want to over-generalise. But this is straightforward enough for now.
Yeah, I had figured that might have been the reason for keeping these
things separate, which does make sense. At the same time, I would rather
keep things simple and shared now since we can with no other runtimes
supported. If we want to add new runtimes in the future, undoing this
should be simple enough and make it obvious to see why the separation is
happening.
> So I'll rework this a bit in a v3.
Thanks a lot!
Cheers,
Nathan
next prev parent reply other threads:[~2025-12-30 20:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-18 12:49 [PATCH v2 0/2] scripts: introduce " Guillaume Tucker
2025-12-18 12:49 ` [PATCH v2 1/2] scripts: add tool to run " Guillaume Tucker
2025-12-19 21:27 ` Nathan Chancellor
2025-12-21 20:09 ` Guillaume Tucker
2025-12-30 20:23 ` Nathan Chancellor [this message]
2025-12-21 20:19 ` Guillaume Tucker
2025-12-22 3:30 ` Miguel Ojeda
2025-12-22 9:11 ` Guillaume Tucker
2025-12-22 16:12 ` Konstantin Ryabitsev
2025-12-18 12:49 ` [PATCH v2 2/2] Documentation: dev-tools: add container.rst page Guillaume Tucker
2025-12-21 20:13 ` Guillaume Tucker
2025-12-30 20:16 ` Nathan Chancellor
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=20251230202324.GC4062669@ax162 \
--to=nathan@kernel.org \
--cc=arnd@arndb.de \
--cc=automated-testing@lists.yoctoproject.org \
--cc=davidgow@google.com \
--cc=gtucker@gtucker.io \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=work@onurozkan.dev \
--cc=workflows@vger.kernel.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
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