-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
packages/ubuntu2004/* | ||
packages/ubuntu2204/* | ||
packages/ubuntu2404/* | ||
packages/ubuntu2404/* | ||
packages/local_ppa/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
# docker build -f glim_ros2/docker/deb/Dockerfile.ros2 . -t glim_ros2 | ||
|
||
mkdir -p local_ppa | ||
cp -R ../ubuntu2004 local_ppa/ | ||
cp -R ../ubuntu2204 local_ppa/ | ||
cp -R ../ubuntu2404 local_ppa/ | ||
cp -R ../setup_ppa.sh local_ppa/ | ||
|
||
platforms=("amd64") | ||
declare -A pids | ||
declare -A labels | ||
|
||
configurations=( | ||
"ubuntu2404 jazzy nvidia/cuda:12.5.1-devel-ubuntu24.04 Dockerfile.ros2" | ||
"ubuntu2404 jazzy nvidia/cuda:12.5.1-devel-ubuntu24.04 Dockerfile.ros2 -cuda12.5" | ||
"ubuntu2204 humble nvidia/cuda:12.5.1-devel-ubuntu22.04 Dockerfile.ros2" | ||
) | ||
|
||
for platform in "${platforms[@]}"; do | ||
for configuration in "${configurations[@]}"; do | ||
config=($configuration) | ||
ubuntu_label=${config[0]} | ||
ros_distro=${config[1]} | ||
cuda_base_image=${config[2]} | ||
dockerfile=${config[3]} | ||
package_suffix=${config[4]} | ||
|
||
name="glim_ros2:$ubuntu_label$package_suffix.$platform" | ||
echo $name | ||
docker buildx build \ | ||
-t $name \ | ||
-f glim_ros2/docker/deb/${dockerfile} \ | ||
--platform linux/$platform \ | ||
--build-arg="BASE_IMAGE=$cuda_base_image" \ | ||
--build-arg="ROS_DISTRO=$ros_distro" \ | ||
--build-arg="PACKAGE_SUFFIX=$package_suffix" \ | ||
. & | ||
|
||
pids[$name]=$! | ||
labels[$name]=$ubuntu_label | ||
done | ||
done | ||
|
||
for key in "${!pids[@]}"; do | ||
echo "Waiting for $key pid=${pids[$key]} label=${labels[$key]}" | ||
wait ${pids[$key]} | ||
done | ||
|
||
for key in "${!labels[@]}"; do | ||
echo "Extracting deb file from $key" | ||
label=${labels[$key]} | ||
docker run --rm -v $(realpath $label):/output $key /bin/bash -c "cp /root/*.deb /output/" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule glim
updated
3 files
+24 −7 | CMakeLists.txt | |
+7 −5 | include/glim/util/config_impl.hpp | |
+1 −1 | package.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters