-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit da3173c.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# moveit/moveit:melodic-ci | ||
# Sets up a base image to use for running Continuous Integration on Travis | ||
|
||
FROM ros:melodic-ros-base | ||
MAINTAINER Dave Coleman dave@picknik.ai | ||
|
||
ENV TERM xterm | ||
|
||
# Setup catkin workspace | ||
ENV CATKIN_WS=/root/ws_moveit | ||
WORKDIR $CATKIN_WS | ||
|
||
# Commands are combined in single RUN statement with "apt/lists" folder removal to reduce image size | ||
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#minimize-the-number-of-layers | ||
RUN \ | ||
mkdir src && \ | ||
cd src && \ | ||
# | ||
# Download moveit source, so that we can get necessary dependencies | ||
wstool init --shallow . https://raw.githubusercontent.com/ros-planning/moveit/${ROS_DISTRO}-devel/moveit.rosinstall && \ | ||
# | ||
# Update apt package list as previous containers clear the cache | ||
apt-get -qq update && \ | ||
apt-get -qq dist-upgrade && \ | ||
# | ||
# Install some base dependencies | ||
apt-get -qq install -y \ | ||
# Some source builds require a package.xml be downloaded via wget from an external location | ||
wget \ | ||
# Required for rosdep command | ||
sudo \ | ||
# Preferred build tools | ||
python-catkin-tools \ | ||
clang clang-format-3.9 clang-tidy clang-tools \ | ||
ccache && \ | ||
# | ||
# Download all dependencies of MoveIt! | ||
rosdep update && \ | ||
rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO} --as-root=apt:false && \ | ||
# | ||
# Remove the source code from this container | ||
# TODO: in the future we may want to keep this here for further optimization of later containers | ||
cd .. && \ | ||
rm -rf src/ && \ | ||
# | ||
# Clear apt-cache to reduce image size | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Continous Integration Setting | ||
ENV IN_DOCKER 1 |