Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
96e42f72
Unverified
Commit
96e42f72
authored
Jan 06, 2026
by
Ran Rubin
Committed by
GitHub
Jan 06, 2026
Browse files
build: build.sh enhancement (#5053)
parent
07721d1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
container/build.sh
container/build.sh
+17
-1
No files found.
container/build.sh
View file @
96e42f72
...
@@ -132,6 +132,8 @@ NIXL_LIBFABRIC_REF=v2.3.0
...
@@ -132,6 +132,8 @@ NIXL_LIBFABRIC_REF=v2.3.0
EFA_VERSION
=
1.45.1
EFA_VERSION
=
1.45.1
NO_CACHE
=
""
NO_CACHE
=
""
NO_LOAD
=
""
PUSH
=
""
# KVBM (KV Cache Block Manager) - default disabled, enabled automatically for VLLM/TRTLLM
# KVBM (KV Cache Block Manager) - default disabled, enabled automatically for VLLM/TRTLLM
# or can be explicitly enabled via --enable-kvbm flag
# or can be explicitly enabled via --enable-kvbm flag
...
@@ -283,6 +285,12 @@ get_options() {
...
@@ -283,6 +285,12 @@ get_options() {
--no-cache
)
--no-cache
)
NO_CACHE
=
" --no-cache"
NO_CACHE
=
" --no-cache"
;;
;;
--no-load
)
NO_LOAD
=
true
;;
--push
)
PUSH
=
" --push"
;;
--cache-from
)
--cache-from
)
if
[
"
$2
"
]
;
then
if
[
"
$2
"
]
;
then
CACHE_FROM+
=
"--cache-from
$2
"
CACHE_FROM+
=
"--cache-from
$2
"
...
@@ -488,6 +496,8 @@ show_help() {
...
@@ -488,6 +496,8 @@ show_help() {
echo
" [--uid user ID for local-dev images (only with --target local-dev)]"
echo
" [--uid user ID for local-dev images (only with --target local-dev)]"
echo
" [--gid group ID for local-dev images (only with --target local-dev)]"
echo
" [--gid group ID for local-dev images (only with --target local-dev)]"
echo
" [--no-cache disable docker build cache]"
echo
" [--no-cache disable docker build cache]"
echo
" [--no-load do not load the image into docker (disables default --load)]"
echo
" [--push push the image to the registry]"
echo
" [--dry-run print docker commands without running]"
echo
" [--dry-run print docker commands without running]"
echo
" [--build-context name=path to add build context]"
echo
" [--build-context name=path to add build context]"
echo
" [--release-build perform a release build]"
echo
" [--release-build perform a release build]"
...
@@ -942,9 +952,15 @@ BUILD_LOG_DIR="${BUILD_CONTEXT}/build-logs"
...
@@ -942,9 +952,15 @@ BUILD_LOG_DIR="${BUILD_CONTEXT}/build-logs"
mkdir
-p
"
${
BUILD_LOG_DIR
}
"
mkdir
-p
"
${
BUILD_LOG_DIR
}
"
SINGLE_BUILD_LOG
=
"
${
BUILD_LOG_DIR
}
/single-stage-build.log"
SINGLE_BUILD_LOG
=
"
${
BUILD_LOG_DIR
}
/single-stage-build.log"
# Determine --load flag (default on unless --no-load or --push specified)
LOAD_FLAG
=
""
if
[
"
$NO_LOAD
"
!=
"true"
]
&&
[
-z
"
$PUSH
"
]
;
then
LOAD_FLAG
=
" --load"
fi
# Use BuildKit for enhanced metadata
# Use BuildKit for enhanced metadata
if
docker buildx version &>/dev/null
;
then
if
docker buildx version &>/dev/null
;
then
$RUN_PREFIX
docker buildx build
--progress
=
plain
--load
-f
$DOCKERFILE
$TARGET_STR
$PLATFORM
$BUILD_ARGS
$CACHE_FROM
$CACHE_TO
$TAG
$LATEST_TAG
$BUILD_CONTEXT_ARG
$BUILD_CONTEXT
$NO_CACHE
2>&1 |
tee
"
${
SINGLE_BUILD_LOG
}
"
$RUN_PREFIX
docker buildx build
--progress
=
plain
${
LOAD_FLAG
}${
PUSH
}
-f
$DOCKERFILE
$TARGET_STR
$PLATFORM
$BUILD_ARGS
$CACHE_FROM
$CACHE_TO
$TAG
$LATEST_TAG
$BUILD_CONTEXT_ARG
$BUILD_CONTEXT
$NO_CACHE
2>&1 |
tee
"
${
SINGLE_BUILD_LOG
}
"
BUILD_EXIT_CODE
=
${
PIPESTATUS
[0]
}
BUILD_EXIT_CODE
=
${
PIPESTATUS
[0]
}
else
else
$RUN_PREFIX
DOCKER_BUILDKIT
=
1 docker build
--progress
=
plain
-f
$DOCKERFILE
$TARGET_STR
$PLATFORM
$BUILD_ARGS
$CACHE_FROM
$CACHE_TO
$TAG
$LATEST_TAG
$BUILD_CONTEXT_ARG
$BUILD_CONTEXT
$NO_CACHE
2>&1 |
tee
"
${
SINGLE_BUILD_LOG
}
"
$RUN_PREFIX
DOCKER_BUILDKIT
=
1 docker build
--progress
=
plain
-f
$DOCKERFILE
$TARGET_STR
$PLATFORM
$BUILD_ARGS
$CACHE_FROM
$CACHE_TO
$TAG
$LATEST_TAG
$BUILD_CONTEXT_ARG
$BUILD_CONTEXT
$NO_CACHE
2>&1 |
tee
"
${
SINGLE_BUILD_LOG
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment