[PATCH] docker: pyenv: build at make -j$(nproc)
Andrew Donnellan
ajd at linux.ibm.com
Fri Sep 13 02:06:56 AEST 2019
On 12/9/19 4:41 pm, Daniel Axtens wrote:
> This speeds up builds. I haven't measured by how much, but I have
> observed 8 threads being complied rather than 1 on my laptop.
>
> Signed-off-by: Daniel Axtens <dja at axtens.net>
Reviewed-by: Andrew Donnellan <ajd at linux.ibm.com>
> ---
> tools/docker/Dockerfile | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
> index 35324b13c66a..dfc9c2f3dab1 100644
> --- a/tools/docker/Dockerfile
> +++ b/tools/docker/Dockerfile
> @@ -43,7 +43,8 @@ RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-instal
> git clone https://github.com/momo-lab/xxenv-latest $PYENV_ROOT/plugins/xxenv-latest && \
> pyenv update
>
> -RUN pyenv latest install 2.7 && \
> +RUN export MAKE_OPTS=-j$(nproc) && \
> + pyenv latest install 2.7 && \
> pyenv latest install 3.5 && \
> pyenv latest install 3.6 && \
> pyenv latest install 3.7
>
--
Andrew Donnellan OzLabs, ADL Canberra
ajd at linux.ibm.com IBM Australia Limited
More information about the Patchwork
mailing list