File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ FLB_DISTRO=${FLB_DISTRO:-}
1010FLB_OUT_DIR=${FLB_OUT_DIR:- }
1111FLB_NIGHTLY_BUILD=${FLB_NIGHTLY_BUILD:- }
1212FLB_JEMALLOC=${FLB_JEMALLOC:- On}
13+ DOCKER=${FLB_DOCKER_CLI:- docker}
1314
1415# Use this to pass special arguments to docker build
1516FLB_ARG=${FLB_ARG:- }
@@ -76,11 +77,15 @@ echo "CMAKE_INSTALL_PREFIX => $CMAKE_INSTALL_PREFIX"
7677echo " FLB_NIGHTLY_BUILD => $FLB_NIGHTLY_BUILD "
7778echo " FLB_JEMALLOC => $FLB_JEMALLOC "
7879
79- export DOCKER_BUILDKIT=1
80+ if [ " ${DOCKER} " = " docker" ]; then
81+ export DOCKER_BUILDKIT=1
82+ else
83+ export DOCKER_BUILDKIT=0
84+ fi
8085
8186# Build the main image - we do want word splitting
8287# shellcheck disable=SC2086
83- if ! docker build \
88+ if ! ${DOCKER} build \
8489 --build-arg CMAKE_INSTALL_PREFIX=" $CMAKE_INSTALL_PREFIX " \
8590 --build-arg FLB_NIGHTLY_BUILD=" $FLB_NIGHTLY_BUILD " \
8691 --build-arg FLB_JEMALLOC=" $FLB_JEMALLOC " \
95100fi
96101
97102# Compile and package
98- if ! docker run \
103+ if ! ${DOCKER} run \
99104 -v " $volume " :/output \
100105 " $MAIN_IMAGE "
101106then
You can’t perform that action at this time.
0 commit comments