[Buildroot] [PATCH] support/dockerfile: add directives to run as non-root
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Jan 14 13:02:16 UTC 2018
Hello,
On Sat, 13 Jan 2018 12:28:43 +0100, Yann E. MORIN wrote:
> On 2018-01-12 22:54 +0100, Thomas Petazzoni spake thusly:
> > On Sat, 6 Jan 2018 16:28:33 +0100, Yann E. MORIN wrote:
> > > Currently, our jobs on the gitlab-ci infra are running as root, which is
> > > problematic for two reasons:
> > >
> > > - this is not the usual way Buildroot is built;
> > > - it may miss issues where running as non-root is problematic.
> > >
> > > So, complement our Dockerfile with directives to add a new user and run
> > > everything as that user, as demonstrated by this build job:
> > > https://gitlab.com/ymorin/buildroot-ci/-/jobs/46929562
> > >
> > > Additional, enforce an UTF-8 locale while running.
> > >
> > > Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> > > Cc: Arnout Vandecappelle <arnout at mind.be>
> > > Cc: Peter Korsgaard <peter at korsgaard.com>
> > > Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> > > ---
> > > support/docker/Dockerfile | 7 +++++++
> > > 1 file changed, 7 insertions(+)
> >
> > Applied to master, thanks. Could you update the official Buildroot
> > Docker image, so that the Gitlab CI testing benefits from this ?
>
> I would if I could, but I am not supposed to have push-access to that
> image, have I?
I am not sure how that works. Hopefully Arnout can give some details
about this :)
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list