From 9f7e3bdfcdfe28bf3134397e450f80b7e9724d2f Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Mon, 15 Jul 2019 21:35:10 +0200 Subject: [PATCH] update: usage examples for falco builder Signed-off-by: Leonardo Di Donato --- docker/builder/root/usr/bin/usage | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/docker/builder/root/usr/bin/usage b/docker/builder/root/usr/bin/usage index b6e09a59..900c99b3 100755 --- a/docker/builder/root/usr/bin/usage +++ b/docker/builder/root/usr/bin/usage @@ -9,8 +9,33 @@ cat <, ..., ] + +How to build. + * cd docker/builder && DOCKER_BUILDKIT=1 docker build -t falcosecurity/falco-builder . + + In case you want to customise the builder at build time the following build arguments are provided: + - BUILD_TYPE whether you want a "release" or "debug" build (defaults to "release"). + - BUILD_DRIVER whether to build the driver or not (defaults to "OFF") + - BUILD_BPF whether to build the BPF driver or not (defaults to "OFF") + - BUILD_WARNINGS_AS_ERRORS whether to intend warnings as errors or not (defaults to "ON") + - MAKE_JOBS the number of jobs to use during make (defaults to "4") + + It is possible to change these at runtime (in the container) since environment variables with the same names are provided. Environment. * ${gccversion}