mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
Moved ROS2 sourcing to home dir and fixed 94-ros2-src
This commit is contained in:
@@ -6,7 +6,8 @@ if ! dpkg -l | grep gnupg > /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
source /etc/lsb-release
|
source /etc/lsb-release
|
||||||
[[ ! -f "/etc/apt/sources.list.d/ros2.list" ]] && \
|
if [ ! -f "/etc/apt/sources.list.d/ros2.list" ]; then
|
||||||
curl -sL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | apt-key add - && \
|
curl -sL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | apt-key add - && \
|
||||||
echo "deb http://packages.ros.org/ros2/ubuntu ${DISTRIB_CODENAME} main" \
|
echo "deb http://packages.ros.org/ros2/ubuntu ${DISTRIB_CODENAME} main" \
|
||||||
> /etc/apt/sources.list.d/ros2.list
|
> /etc/apt/sources.list.d/ros2.list
|
||||||
|
fi
|
||||||
|
|||||||
@@ -4,3 +4,6 @@ echo "**** Installing ros2 and ros dev tools"
|
|||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
ros-humble-ros-base \
|
ros-humble-ros-base \
|
||||||
ros-dev-tools
|
ros-dev-tools
|
||||||
|
|
||||||
|
echo "**** Automatically sourcing ROS2 ****"
|
||||||
|
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /config/.bashrc
|
||||||
@@ -12,7 +12,7 @@ if [ ! -f "/etc/apt/sources.list.d/ros2.list" ]; then
|
|||||||
echo "ros-humble-ros-base ros-dev-tools" >> /mod-repo-packages-to-install.list
|
echo "ros-humble-ros-base ros-dev-tools" >> /mod-repo-packages-to-install.list
|
||||||
|
|
||||||
echo "**** Automatically sourcing ROS2 ****"
|
echo "**** Automatically sourcing ROS2 ****"
|
||||||
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /etc/bash.bashrc
|
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /config/.bashrc
|
||||||
else
|
else
|
||||||
echo "**** ROS2 packages already installed, skipping ****"
|
echo "**** ROS2 packages already installed, skipping ****"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user