-
Notifications
You must be signed in to change notification settings - Fork 2
/
MsgDockerfile
50 lines (42 loc) · 1.55 KB
/
MsgDockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM ros:kinetic-ros-core
# Install packages
RUN apt-get update && apt-get install -y \
build-essential \
default-jdk \
gradle \
maven \
ros-kinetic-catkin \
ros-kinetic-rospack \
python-wstool \
&& rm -rf /var/lib/apt/lists/
# Set java home
ENV JAVA_HOME=/usr/lib/jvm/default-java
RUN apt-get update && apt-get install -y \
ros-kinetic-world-canvas-msgs \
ros-kinetic-concert-service-msgs \
ros-kinetic-ar-track-alvar-msgs \
ros-kinetic-gateway-msgs \
ros-kinetic-rocon-device-msgs \
ros-kinetic-rocon-app-manager-msgs \
ros-kinetic-scheduler-msgs \
ros-kinetic-rocon-tutorial-msgs \
ros-kinetic-rocon-interaction-msgs \
ros-kinetic-yocs-msgs \
ros-kinetic-concert-msgs \
ros-kinetic-move-base-msgs \
ros-kinetic-tf2-msgs \
&& rm -rf /var/lib/apt/lists/
# Download, install and configure rosjava
WORKDIR /
RUN ["/bin/bash","-c","mkdir -p ~/rosjava/src && \
wstool init -j4 ~/rosjava/src https://raw.githubusercontent.com/rosjava/rosjava/kinetic/rosjava.rosinstall && \
source /opt/ros/kinetic/setup.bash && \
cd ~/rosjava/ && rosdep init && \
rosdep update && rosdep install --from-paths src -i -y -r && catkin_make"]
RUN [ "/bin/bash","-c","source /opt/ros/kinetic/setup.bash && \
mkdir -p /jason_ros_ws/src && \
cd /jason_ros_ws/src && catkin_init_workspace"]
COPY jason_ros/ /jason_ros_ws/src/jason_ros/jason_ros/
COPY jason_ros_msgs/ /jason_ros_ws/src/jason_ros/jason_ros_msgs/
RUN ["/bin/bash","-c", "source ~/rosjava/devel/setup.bash && cd /jason_ros_ws/ && catkin_make && mkdir /artifacts"]
CMD ["bash"]