ros2aria/Dockerfile

33 lines
911 B
Docker
Raw Normal View History

2022-07-19 21:25:18 +02:00
ARG ROS_DISTRO=humble
2023-06-21 19:21:38 +02:00
FROM delicjusz/ros2aria
2022-07-19 21:25:18 +02:00
SHELL ["/bin/bash", "-c"]
2023-06-21 19:21:38 +02:00
RUN apt-get update && apt-get install -y \
git \
python3-colcon-common-extensions \
python3-rosdep \
build-essential
WORKDIR /ros2_ws
COPY src/ /ros2_ws/src/
RUN source /opt/ros/$ROS_DISTRO/setup.bash && \
rm -rf /etc/ros/rosdep/sources.list.d/20-default.list && \
rosdep init && \
rosdep update --rosdistro $ROS_DISTRO && \
rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y && \
colcon build
2022-07-19 21:25:18 +02:00
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
2023-06-21 19:21:38 +02:00
# COPY ros_entrypoint.sh /
# ENTRYPOINT ["../ros_entrypoint.sh"]
# RUN chmod +x /ros_entrypoint.sh
2022-07-19 21:25:18 +02:00
2023-06-21 19:21:38 +02:00
# clear ubuntu packages
# RUN export SUDO_FORCE_REMOVE=yes && \
# apt-get clean && \
# apt-get remove -y \
# python3-colcon-common-extensions \
# python3-rosdep \
# build-essential && \
# rm -rf /var/lib/apt/lists/*