ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.18k stars 9.71k forks source link

How can I build a docker image based ubuntu 2204? #15115

Open huangslgood opened 1 year ago

huangslgood commented 1 year ago

I noticed that when I build a cyber image by script in docker/build/

=====.=====.===== Docker Build Preview for cyber =====.=====.===== | Generated image: apolloauto/apollo:cyber-aarch64-18.04-20230830_1644 | FROM image: apolloauto/apollo:l4t-cuda10.2-cudnn8-trt7-devel-18.04-20201217_0752 | Dockerfile: cyber.aarch64.dockerfile | TARGET_ARCH=aarch64, HOST_ARCH=aarch64 | INSTALL_MODE=download, GEOLOC=us, APOLLO_DIST=stable =====.=====.=====.=====.=====.=====.=====.=====.=====.=====.=====.=====.=====

FROM image is l4t-cuda10.2-cudnn8-trt7-devel-18.04-20201217_0752

How can I build a cyber-aarch64-22.04-20230830_1644 ??

CesarLiu commented 1 year ago

make sure there is an l4t (linux for tegra) for ubuntu 22.04-->https://developer.nvidia.com/embedded/jetpack then you can change the base image to the one you should use--> https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-jetpack third, adapt all needed dependencies to your system base ubuntu 22.04--> https://github.com/ApolloAuto/apollo/tree/9.x_alpha/docker/build/installers finally use the scripts provided by apollo to build the docker image.

Please get me informed when you succeed with it and maybe you are also very kind to share the repo to the community. Thanks in advance!

huangslgood commented 1 year ago

make sure there is an l4t (linux for tegra) for ubuntu 22.04-->https://developer.nvidia.com/embedded/jetpack then you can change the base image to the one you should use--> https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-jetpack third, adapt all needed dependencies to your system base ubuntu 22.04--> https://github.com/ApolloAuto/apollo/tree/9.x_alpha/docker/build/installers finally use the scripts provided by apollo to build the docker image.

Please get me informed when you succeed with it and maybe you are also very kind to share the repo to the community. Thanks in advance!

Many thanks for the prompt reply.
Apollo x86 base image is https://hub.docker.com/r/nvidia/cuda/tags , and there are no 22.04 image, Apollo aarch64 base image is https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-jetpack/tags , there are no 22.04 image either.

The NVIDIA® Jetson™ Linux 35.4.1 General Availability (GA) includes the Linux Kernel 5.10, the UEFI based Bootloader, the Ubuntu 20.04-based root file system, NVIDIA drivers, the necessary firmware, toolchain, and more

It seems that we need to wait for these base images to support 2204. Thanks again.