2022-07-19 21:25:18 +02:00
|
|
|
ARG ROS_DISTRO=humble
|
|
|
|
FROM ros:$ROS_DISTRO
|
|
|
|
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
RUN apt-get update && \
|
|
|
|
# apt-get install -y \
|
|
|
|
# && \
|
|
|
|
apt-get autoremove -y && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY ./src/AriaCoda /usr/local/Aria
|
|
|
|
RUN cd /usr/local/Aria && make -j$(nproc)
|
2022-09-21 18:10:39 +02:00
|
|
|
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Aria/lib
|
2022-07-19 21:25:18 +02:00
|
|
|
|
|
|
|
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
|
|
|
|
COPY ros_entrypoint.sh /
|
|
|
|
ENTRYPOINT ["../ros_entrypoint.sh"]
|
|
|
|
RUN chmod +x /ros_entrypoint.sh
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY src/ros2aria /app/src/ros2aria
|
|
|
|
COPY src/ros2aria_msgs /app/src/ros2aria_msgs
|
|
|
|
RUN cd /app && source /opt/ros/$ROS_DISTRO/setup.bash && colcon build
|