Skip to content

Commit

Permalink
feat(docker): add --no-prebuilt option to skip prebuilt (autowarefoun…
Browse files Browse the repository at this point in the history
…dation#3253)

Signed-off-by: Vincent Richard <[email protected]>
Co-authored-by: Vincent Richard <[email protected]>
  • Loading branch information
VRichardJP and VRichardJP authored Feb 7, 2023
1 parent 8e40b92 commit 18d7f6f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ while [ "$1" != "" ]; do
option_platform="$2"
shift
;;
--no-prebuilt)
option_no_prebuilt=true
;;
*)
args+=("$1")
;;
Expand All @@ -32,6 +35,14 @@ else
image_name_suffix="-cuda"
fi

# Set prebuilt options
if [ "$option_no_prebuilt" = "true" ]; then
targets="devel"
else
# default targets include devel and prebuilt
targets=""
fi

# Set platform
if [ -n "$option_platform" ]; then
platform="$option_platform"
Expand Down Expand Up @@ -60,5 +71,6 @@ docker buildx bake --no-cache --load --progress=plain -f "$SCRIPT_DIR/autoware-u
--set "*.args.BASE_IMAGE=$base_image" \
--set "*.args.SETUP_ARGS=$setup_args" \
--set "devel.tags=ghcr.io/autowarefoundation/autoware-universe:$rosdistro-latest$image_name_suffix" \
--set "prebuilt.tags=ghcr.io/autowarefoundation/autoware-universe:$rosdistro-latest-prebuilt$image_name_suffix"
--set "prebuilt.tags=ghcr.io/autowarefoundation/autoware-universe:$rosdistro-latest-prebuilt$image_name_suffix" \
"$targets"
set +x

0 comments on commit 18d7f6f

Please sign in to comment.