33 lines
911 B
Docker
33 lines
911 B
Docker
ARG ROS_DISTRO=humble
|
|
FROM delicjusz/ros2aria
|
|
SHELL ["/bin/bash", "-c"]
|
|
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
|
|
|
|
|
|
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
|
|
# COPY ros_entrypoint.sh /
|
|
# ENTRYPOINT ["../ros_entrypoint.sh"]
|
|
# RUN chmod +x /ros_entrypoint.sh
|
|
|
|
# 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/* |