Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dockerfile from dev_docker
FROM devbase-xenial
RUN sudo /bin/sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' \
&& sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 \
&& sudo /bin/sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list \
&& wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add -' \
&& sudo apt-get update \
&& sudo apt-get install -y \
ros-kinetic-desktop-full \
gazebo7 \
libgazebo7-dev \
python-catkin-tools \
python-rosinstall \
&& sudo rosdep init \
&& sudo apt-get clean
RUN rosdep update
RUN /bin/sh -c 'echo ". /opt/ros/kinetic/setup.bash" >> ~/.bashrc' \
&& /bin/sh -c 'echo ". /usr/share/gazebo/setup.sh" >> ~/.bashrc'
# TODO(tfoote) remove and add to rosdeps
RUN sudo apt-get update \
&& sudo apt-get install -y \
unzip \
&& sudo apt-get clean
# Optimizing for build time
RUN sudo apt-get update \
&& sudo apt-get install -y \
ros-kinetic-mavros \
&& sudo apt-get clean
RUN mkdir /tmp/drone_demo/src -p
WORKDIR /tmp/drone_demo/src
RUN git clone https://github.com/osrf/drone_demo.git
RUN git clone https://github.com/PX4/sitl_gazebo.git --recursive
WORKDIR /tmp/drone_demo
RUN . /opt/ros/kinetic/setup.sh && rosdep install --from-path src -iy
RUN . /opt/ros/kinetic/setup.sh && catkin config --install
#RUN . /opt/ros/kinetic/setup.sh && catkin build px4 -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.