Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Arnout Vandecappelle <arnout@mind.be>
Cc: buildroot@buildroot.org,
	Ricardo Martincoski <ricardo.martincoski@datacom.com.br>,
	Julien Olivain <ju.o@free.fr>, Fiona Klute <fiona.klute@gmx.de>
Subject: Re: [Buildroot] [PATCH] utils/docker-run: allow explicitly setting of docker/podman/...
Date: Mon, 17 Feb 2025 22:53:45 +0100	[thread overview]
Message-ID: <Z7Ov6egJB6PjUBfD@landeda> (raw)
In-Reply-To: <d0b96b79-52ad-4893-871a-025127a7e96b@mind.be>

Arnout, All,

On 2025-02-17 21:54 +0100, Arnout Vandecappelle spake thusly:
> On 16/02/2025 18:03, Yann E. MORIN wrote:
> > Currently, our docker-run helper will decide on its own whether it
> > should use docker (preferred) or podman (fallback). s introduced in
> > 9a629f5129d6 (utils/docker-run: allow running with Podman). In case
> > both are installed, it is not possible to exercise the podman case.
>  To be honest, if you have both installed, then you probably want to use
> podman because most likely "docker" is just an alias for podman...

That is probably a false assertion you are making above: podman
impersonating docker is an additional package, at least in Fedora.
And indeed, I have both podman and docker installed, and docker is
definitely not podman.

> > Allow the user to force the one to use, by setting the BR2_DOCKER
> > environment variable. If that is set and does not exist, exit with
> > an explicit error message (rather than rely on the failure when
> > eventually exec-ing the specified command).
> 
>  Unfortunately, in commit 8aad67f1575f1d8a9c90ccd70302e9a6823cf794,
> _someone_ already introduced the BR2_DOCKER environment variable in brmake
> to tell it to run 'make' inside the container... Its use is not
> incompatible, but it means that if you set BR2_DOCKER=podman in your
> .profile, brmake will _always_ run in the container...

Meh. Use of unbuffer was one of the stupidest things I did. Indeed, when
using brmake, one is not very concerned about seeing logs as soon as
they are emitted, so one can very well accept that the '>>>' messages
be slightly delayed. After all, they are only bufferred for so much (8K
in glibc, that goes by relatively fast with all the output of a clasical
build...)

I think it would have been much more elegant to actually allow use of
"./utils/docker-run ./utils/brmake", as this is a construct that is
already advertised to run our checks, "docker-run make check-package",
or even just basically "./utils/docker-run make"...

I would wager that "BR2_DOCKER=y ./utils/brmake" is not in wide use.
Would that be acceptable to revert 8aad67f1575f1 and drop use of
unbuffer? I've just checked, and that works (but of course, any
still-bufferred output could get lost on Ctrl-C, but that's probably
a non-issue while using brmake...)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2025-02-17 21:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-16 17:03 [Buildroot] [PATCH] utils/docker-run: allow explicitly setting of docker/podman/ Yann E. MORIN
2025-02-17 12:13 ` Fiona Klute via buildroot
2025-02-17 20:54 ` Arnout Vandecappelle via buildroot
2025-02-17 21:53   ` Yann E. MORIN [this message]
2025-02-17 22:05     ` Arnout Vandecappelle via buildroot
2025-02-18  8:00       ` Yann E. MORIN
2025-02-18 20:23 ` Arnout Vandecappelle via buildroot

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=Z7Ov6egJB6PjUBfD@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=arnout@mind.be \
    --cc=buildroot@buildroot.org \
    --cc=fiona.klute@gmx.de \
    --cc=ju.o@free.fr \
    --cc=ricardo.martincoski@datacom.com.br \
    /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