forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_build_ros.sh
executable file
·29 lines (21 loc) · 963 Bytes
/
docker_build_ros.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -e
BASE_IMAGE="nvcr.io/nvidia/l4t-base:r32.4.3"
ROS_DISTRO=${1:-"all"}
echo "building containers for $ROS_DISTRO..."
# ROS Melodic
if [[ "$ROS_DISTRO" == "melodic" || "$ROS_DISTRO" == "all" ]]; then
sh ./scripts/docker_build.sh ros:melodic-ros-base-l4t-r32.4.3 Dockerfile.ros.melodic --build-arg BASE_IMAGE=$BASE_IMAGE
fi
# ROS Noetic
if [[ "$ROS_DISTRO" == "noetic" || "$ROS_DISTRO" == "all" ]]; then
sh ./scripts/docker_build.sh ros:noetic-ros-base-l4t-r32.4.3 Dockerfile.ros.noetic --build-arg BASE_IMAGE=$BASE_IMAGE
fi
# ROS2 Eloquent
if [[ "$ROS_DISTRO" == "eloquent" || "$ROS_DISTRO" == "all" ]]; then
sh ./scripts/docker_build.sh ros:eloquent-ros-base-l4t-r32.4.3 Dockerfile.ros.eloquent --build-arg BASE_IMAGE=$BASE_IMAGE
fi
# ROS2 Foxy
if [[ "$ROS_DISTRO" == "foxy" || "$ROS_DISTRO" == "all" ]]; then
sh ./scripts/docker_build.sh ros:foxy-ros-base-l4t-r32.4.3 Dockerfile.ros.foxy --build-arg BASE_IMAGE=$BASE_IMAGE
fi