[Buildroot] [PATCH 2/4 v2] support/docker: add script to generate docker iamges

Romain Naour romain.naour at gmail.com
Sun Jun 14 19:38:27 UTC 2020


Le 17/05/2020 à 23:41, Yann E. MORIN a écrit :
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> Cc: Ricardo Martincoski <ricardo.martincoski at gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> ---
>  support/docker/build-all | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100755 support/docker/build-all
> 
> diff --git a/support/docker/build-all b/support/docker/build-all
> new file mode 100755
> index 0000000000..4f3217e7fe
> --- /dev/null
> +++ b/support/docker/build-all
> @@ -0,0 +1,17 @@
> +#!/bin/sh
> +set -e
Reviewed-by: Romain Naour <romain.naour at gmail.com>

Best regards,
Romain

> +
> +BR2_DOCKER_VERSION="${1}"
> +
> +if [ -z "${BR2_DOCKER_VERSION}" ]; then
> +    printf "Usage: ${0} VERSION\n"
> +    exit 1
> +fi
> +
> +CONTEXT_DIR="${0%/*}"
> +for d in "${CONTEXT_DIR}"/Dockerfile.*; do \
> +    distro="${d#*/Dockerfile.}"
> +    docker build \
> +        -t "buildroot/${distro}:${BR2_DOCKER_VERSION}" \
> +        -f "${d}" "${CONTEXT_DIR}"
> +done
> 



More information about the buildroot mailing list