Autoware docker fails to build when --devel-only is assed as argument to build.sh
Ajay-Kumar-ELM opened this issue · 2 comments
Checklist
- I've read the contribution guidelines.
- I've searched other issues and no duplicate issues were found.
- I'm convinced that this is not my fault but a bug.
Description
After runnning command ./docker/build.sh --devel-only, User is not able to build the autoware docker image and below error is seen.
ERROR: could not find any target matching 'prebuilt'
Line 137 from build.sh file is calling prebuilt target from docker-bake.hcl
Expected behavior
Expected to build the autoware docker image after execution of ./docker/build.sh --devel-only
Actual behavior
Building images for platform: linux/amd64
ROS distro: humble
Base image: ros:humble-ros-base-jammy
Setup args:
Lib dir: x86_64
Image name suffix: -cuda
Targets: devel
- docker buildx bake --load --progress=plain -f /home/xps/Upstream/autoware/docker/docker-bake.hcl --set '.context=/home/xps/Upstream/autoware/docker/..' --set '.ssh=default' --set '.platform=linux/amd64' --set '.args.ROS_DISTRO=humble' --set '.args.BASE_IMAGE=ros:humble-ros-base-jammy' --set '.args.SETUP_ARGS=' --set '*.args.LIB_DIR=x86_64' --set base.tags=ghcr.io/autowarefoundation/autoware:latest-base --set devel.tags=ghcr.io/autowarefoundation/autoware:latest-devel-cuda --set prebuilt.tags=ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda --set runtime.tags=ghcr.io/autowarefoundation/autoware:latest-runtime-cuda devel
#0 building with "default" instance using docker driver
#1 [internal] load local bake definitions
#1 reading /home/xps/Upstream/autoware/docker/docker-bake.hcl 1.02kB / 1.02kB done
#1 DONE 0.0s
ERROR: could not find any target matching 'prebuilt'
Steps to reproduce
git clone https://github.com/autowarefoundation/autoware.git
cd autoware
./docker/build.sh --devel-only
Versions
-OS: Ubuntu 22.04
-ROS 2 Humble
Possible causes
No response
Additional context
No response
Thanks for reporting @ajaycrytek
It should be fixed by this PR