-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (25 loc) · 1.05 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
FROM ros:melodic-ros-base
MAINTAINER Ascend NTNU "www.ascendntnu.no"
ENV ROS_WORKSPACE_PATH=/opt/catkin_ws
ENV ROS_PACKAGE_NAME=fluid
RUN apt-get update -qq && apt-get install -yqq \
build-essential \
ros-melodic-mavros \
ros-melodic-mavros-extras \
cmake \
python-catkin-pkg \
python-catkin-tools \
python-empy \
python-nose \
libgtest-dev \
ros-melodic-tf2-geometry-msgs \
ros-melodic-tf2
RUN mkdir -p $ROS_WORKSPACE_PATH/src
RUN /bin/bash -c '. /opt/ros/melodic/setup.bash; catkin_init_workspace $ROS_WORKSPACE_PATH/src'
# Run caktin_make once without building any packages to create the setup.bash
# RUN /bin/bash -c '. /opt/ros/kinetic/setup.bash; cd $ROS_WORKSPACE_PATH; catkin_make'
COPY ./ $ROS_WORKSPACE_PATH/src/$ROS_PACKAGE_NAME/
WORKDIR $ROS_WORKSPACE_PATH/src
RUN git clone --depth 1 -b master https://github.com/AscendNTNU/ascend_msgs.git
RUN /bin/bash -c '. /opt/ros/melodic/setup.bash; cd $ROS_WORKSPACE_PATH; catkin build'
RUN /bin/bash -c 'echo source $ROS_WORKSPACE_PATH/devel/setup.bash >> /root/.bashrc'