[Fuego] [PATCH 9/9] Set depth to "one" and download just a single-branch on git clones

Tim.Bird at sony.com Tim.Bird at sony.com
Tue Jan 30 22:04:31 UTC 2018



> -----Original Message-----
> From: Guilherme Campos Camargo on Friday, January 26, 2018 9:36 AM
> In order to improve git clone speeds
For repositories this small, this does not speed up the clone operation
appreciably.  Since it makes the clone commands a bit ugly, I don't
think the tradeoff is worth it.

I tested this on my machine (with a relatively fast network), and the
speed for all these clones, without the extra args, was under 1 
second each.  The time difference with the extra args was less than
100 milliseconds.

Do these take longer for you?  These are relatively small repositories.
-- Tim

> 
> Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
> ---
>  Dockerfile | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/Dockerfile b/Dockerfile
> index 499dd52..0eeeca0 100644
> --- a/Dockerfile
> +++ b/Dockerfile
> @@ -120,13 +120,16 @@ RUN ./install.sh
>  COPY frontend-install/setup/serial /setup/serial
>  WORKDIR /setup
> 
> -RUN git clone https://github.com/tbird20d/ttc.git /usr/local/src/ttc && \
> +RUN git clone https://github.com/tbird20d/ttc.git \
> +        --depth 1 --single-branch /usr/local/src/ttc && \
>      ./serial/setup-ttc.sh
> 
> -RUN git clone https://github.com/frowand/serio.git /usr/local/src/serio &&
> \
> +RUN git clone https://github.com/frowand/serio.git \
> +        --depth 1 --single-branch /usr/local/src/serio && \
>      ./serial/setup-serio.sh
> 
> -RUN git clone https://github.com/tbird20d/serlogin.git
> /usr/local/src/serlogin && \
> +RUN git clone https://github.com/tbird20d/serlogin.git \
> +        --depth 1 --single-branch /usr/local/src/serlogin && \
>      ./serial/setup-serlogin.sh
> 
>  COPY frontend-install/setup/lava /setup/lava
> --
> 2.15.1
> 
> _______________________________________________
> Fuego mailing list
> Fuego at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego


More information about the Fuego mailing list