Skip to content

Commit

Permalink
remove suffix and explicit visualization build
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Jan 14, 2025
1 parent 5e057cb commit 31a6c99
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ print_help() {
echo " --no-cuda Disable CUDA support"
echo " --platform Specify the platform (default: current platform)"
echo " --devel-only Build devel image only"
echo " --target Specify the target image"
echo " --target Specify the target image (default: universe or universe-devel if --devel-only is set)"
echo ""
echo "Note: The --platform option should be one of 'linux/amd64' or 'linux/arm64'."
}
Expand Down Expand Up @@ -65,6 +65,7 @@ set_cuda_options() {
set_build_options() {
if [ -n "$option_target" ]; then
target="$option_target"
image_name_suffix=""
else
if [ "$option_devel_only" = "true" ]; then
target="universe-devel"
Expand Down Expand Up @@ -158,21 +159,6 @@ build_images() {
--set "universe.tags=ghcr.io/autowarefoundation/autoware:universe" \
--set "universe-cuda.tags=ghcr.io/autowarefoundation/autoware:universe-cuda" \
--set "universe-visualization.tags=ghcr.io/autowarefoundation/autoware:universe-visualization" \
"universe-visualization"
docker buildx bake --load --progress=plain -f "$SCRIPT_DIR/docker-bake.hcl" -f "$SCRIPT_DIR/docker-bake-cuda.hcl" \
--set "*.context=$WORKSPACE_ROOT" \
--set "*.ssh=default" \
--set "*.platform=$platform" \
--set "*.args.ROS_DISTRO=$rosdistro" \
--set "*.args.BASE_IMAGE=$base_image" \
--set "*.args.AUTOWARE_BASE_IMAGE=$autoware_base_image" \
--set "*.args.AUTOWARE_BASE_CUDA_IMAGE=$autoware_base_cuda_image" \
--set "*.args.SETUP_ARGS=$setup_args" \
--set "*.args.LIB_DIR=$lib_dir" \
--set "universe-devel.tags=ghcr.io/autowarefoundation/autoware:universe-devel" \
--set "universe-devel-cuda.tags=ghcr.io/autowarefoundation/autoware:universe-devel-cuda" \
--set "universe.tags=ghcr.io/autowarefoundation/autoware:universe" \
--set "universe-cuda.tags=ghcr.io/autowarefoundation/autoware:universe-cuda" \
"$target$image_name_suffix"
set +x
}
Expand Down

0 comments on commit 31a6c99

Please sign in to comment.