All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@kernel.org>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH 2/2 -perfbook] FAQ-BUILD: Add Q&A on Docker image
Date: Wed, 6 Jan 2021 15:29:15 -0800	[thread overview]
Message-ID: <20210106232915.GH2743@paulmck-ThinkPad-P72> (raw)
In-Reply-To: <b36e6c73-b435-8c3c-b7ce-f4122107ba4d@gmail.com>

On Wed, Jan 06, 2021 at 11:36:14PM +0900, Akira Yokosawa wrote:
> On Wed, 6 Jan 2021 19:32:42 +0900, Akira Yokosawa wrote:
> > From 165d967a252652e2ef5af82ce62536dbcf314600 Mon Sep 17 00:00:00 2001
> > From: Akira Yokosawa <akiyks@gmail.com>
> > Date: Wed, 6 Jan 2021 19:03:55 +0900
> > Subject: [PATCH 2/2 -perfbook] FAQ-BUILD: Add Q&A on Docker image
> > 
> > The template Dockerfile and the usage explained is a tutorial level.
> > Suggestions from Docker-savvy people are more than welcome.
> > 
> > Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> > ---
> >  FAQ-BUILD.txt | 22 ++++++++++++++++++++++
> >  1 file changed, 22 insertions(+)
> > 
> > diff --git a/FAQ-BUILD.txt b/FAQ-BUILD.txt
> > index 2eeb9fbb..d4c18424 100644
> > --- a/FAQ-BUILD.txt
> > +++ b/FAQ-BUILD.txt
> > @@ -273,3 +273,25 @@
> >  
> >  		    sudo updmap-sys --syncwithtrees --force
> >  		    sudo updmap-sys
> > +
> > +14.	I want a stable environment to build perfbook.pdf.
> > +	Isn't some container image available in that regard?
> > +
> > +	A.	You can find a template Dockerfile under the docker/
> > +		subdirectory.
> > +		A docker image built from it can be pulled by:
> > +
> > +		    docker pull akiyks/perfbook-build-env:focal
> > +
> > +		It can be run with the command:
> > +
> > +		    docker run --rm -it -v <path to perfbook dir>:/work \
> > +		      akiyks/perfbook-build-env:focal bash
> 
> If we add a "-u" option specifying host-side uid:gid to run the container,
> it is safe to do Git operations from inside the container.
> This is because the container does all the I/O to the mounted host directory.
> So the following note can be removed.
> 
> I'll respin 2/2.

This does look like it would be very helpful to people trying to get
their environment set up!

							Thanx, Paul

>         Thanks, Akira
> 
> > +
> > +		Note:
> > +		    The directory to be mounted to /work you give to the
> > +		    "-v" option should be a newly cloned git repository.
> > +		    You should avoid using any git command from the container
> > +		    that might modify repository meta data and change their
> > +		    owner.
> > +		    Git operations should be done from the host side.
> > 

  reply	other threads:[~2021-01-06 23:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 10:28 [PATCH 0/2 -perfbook] Add Dockerfile and Q&A Akira Yokosawa
2021-01-06 10:31 ` [PATCH 1/2 -perfbook] Add files to build Docker image for perfbook build Akira Yokosawa
2021-01-06 10:32 ` [PATCH 2/2 -perfbook] FAQ-BUILD: Add Q&A on Docker image Akira Yokosawa
2021-01-06 14:36   ` Akira Yokosawa
2021-01-06 23:29     ` Paul E. McKenney [this message]
2021-01-07 13:49 ` [PATCH v2 0/2 -perfbook] Add Dockerfile and Q&A Akira Yokosawa
2021-01-07 13:51   ` [PATCH v2 1/2 -perfbook] Add files to build Docker image for perfbook build Akira Yokosawa
2021-01-07 13:52   ` [PATCH v2 2/2 -perfbook] FAQ-BUILD: Add Q&A on Docker image Akira Yokosawa
2021-01-07 17:54   ` [PATCH v2 0/2 -perfbook] Add Dockerfile and Q&A Paul E. McKenney
2021-01-07 22:44     ` Akira Yokosawa

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=20210106232915.GH2743@paulmck-ThinkPad-P72 \
    --to=paulmck@kernel.org \
    --cc=akiyks@gmail.com \
    --cc=perfbook@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.