-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
34 lines (29 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Build:
# docker build --rm -f Dockerfile -t gramaziokohler/ros-ur-planner .
#
# Usage:
# docker pull gramaziokohler/ros-ur-planner
FROM gramaziokohler/ros-base:19.11
LABEL maintainer "Gonzalo Casas <[email protected]>"
SHELL ["/bin/bash","-c"]
# Install packages
RUN apt-get update && apt-get install -y \
# ROS MoveIt
ros-${ROS_DISTRO}-moveit \
--no-install-recommends \
# Clear apt-cache to reduce image size
&& rm -rf /var/lib/apt/lists/*
ENV CATKIN_WS=/root/catkin_ws
RUN mkdir -p $CATKIN_WS/src
# Add robot packages to local catkin workspace
RUN echo "Building UR Planner for ROS" \
&& source /opt/ros/${ROS_DISTRO}/setup.bash \
# Update apt-get because its cache is always cleared after installs to keep image size down
&& apt-get update \
# UR packages
&& git clone -b ${ROS_DISTRO}-devel https://github.com/ros-industrial/universal_robot.git \
# Install dependencies
&& cd $CATKIN_WS \
&& rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO} \
# Build catkin workspace
&& catkin_make