1 Star 0 Fork 0

Tengyun_Mo/rosbridge_suite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
Matt Vollrath 提交于 2020-05-27 08:38 . noetic tests (#503)
ARG DOCKER_ROS_DISTRO=noetic
FROM ros:${DOCKER_ROS_DISTRO}
# Booststrap workspace.
ENV CATKIN_DIR=/catkin_ws
RUN . /opt/ros/$ROS_DISTRO/setup.sh \
&& mkdir -p $CATKIN_DIR/src \
&& cd $CATKIN_DIR/src \
&& catkin_init_workspace
WORKDIR $CATKIN_DIR
# Install dependencies first.
COPY rosbridge_suite/package.xml $CATKIN_DIR/src/rosbridge_suite/
COPY rosbridge_library/package.xml $CATKIN_DIR/src/rosbridge_library/
COPY rosbridge_server/package.xml $CATKIN_DIR/src/rosbridge_server/
COPY rosbridge_msgs/package.xml $CATKIN_DIR/src/rosbridge_msgs/
COPY rosapi/package.xml $CATKIN_DIR/src/rosapi/
RUN . /opt/ros/$ROS_DISTRO/setup.sh \
&& apt-get update \
&& rosdep update \
&& rosdep install \
--from-paths src \
--ignore-src \
--rosdistro $ROS_DISTRO \
-y \
&& rm -rf /var/lib/apt/lists/*
# Build rosbridge packages.
COPY rosbridge_suite $CATKIN_DIR/src/rosbridge_suite
COPY rosbridge_library $CATKIN_DIR/src/rosbridge_library
COPY rosbridge_server $CATKIN_DIR/src/rosbridge_server
COPY rosbridge_msgs $CATKIN_DIR/src/rosbridge_msgs
COPY rosapi $CATKIN_DIR/src/rosapi
RUN . /opt/ros/$ROS_DISTRO/setup.sh \
&& catkin_make
# We want the development workspace active all the time.
RUN echo "#!/bin/bash\n\
set -e\n\
source \"${CATKIN_DIR}/devel/setup.bash\"\n\
exec \"\$@\"" > /startup.sh \
&& chmod a+x /startup.sh \
&& echo "source ${CATKIN_DIR}/devel/setup.bash" >> /root/.bashrc
ENTRYPOINT ["/startup.sh"]
CMD ["bash"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Tengyun_Mo/rosbridge_suite.git
git@gitee.com:Tengyun_Mo/rosbridge_suite.git
Tengyun_Mo
rosbridge_suite
rosbridge_suite
fix/ci

搜索帮助

0d507c66 1850385 C8b1a773 1850385