ros_relay/Dockerfile

25 lines
698 B
Docker

FROM ros:melodic-ros-base
RUN apt-get update
RUN apt-get install ros-melodic-rosbridge-suite python3-pip ros-melodic-mavros-msgs -y
RUN pip3 install --upgrade pip setuptools
#RUN sh -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
RUN pip3 install roslibpy pyyaml rospkg
RUN pip3 install git+https://github.com/DFKI-NI/rospy_message_converter
RUN bash -c "source /opt/ros/melodic/setup.bash \
&& mkdir -p /overlay_ws/src \
&& cd /overlay_ws \
&& catkin_make"
COPY ./ros_relay/ /overlay_ws/src/ros_relay/
WORKDIR /overlay_ws
RUN bash -c "source devel/setup.bash && catkin_make"
ENV PYTHONUNBUFFERED=1
CMD bash -c "source devel/setup.bash && rosrun ros_relay relay.py"