forked from ohad-i/bluePrintOculusPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (30 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
51 lines (30 loc) · 1.16 KB
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
51
# FROM osrf/ros:melodic-desktop-full
FROM osrf/ros:noetic-desktop-full
RUN apt-get update
RUN apt-get install -y python3-pip
RUN pip3 install pygccxml
RUN pip3 install castxml
# for recParser
RUN pip3 install scapy
# Dev/Debug
RUN apt-get install -y x11-apps
RUN apt-get install -y git
WORKDIR /home
RUN mkdir -p /home/catkin_ws/src/
# RUN echo "export ROS_HOSTNAME=localhost" >> ~/.bashrc
RUN echo "export ROS_NAMESPACE=sparus2" >> ~/.bashrc
# RUN echo "export ROS_MASTER_URI=http://sparus2:11311/" >> ~/.bashrc
RUN echo "export ROS_MASTER_URI=http://localhost:11311/" >> ~/.bashrc
# RUN echo "export ROS_IP=localhost" >> ~/.bashrc
RUN echo "export ROS_IP=127.0.0.1" >> ~/.bashrc
# catin make
# WORKDIR /home/user/catkin_ws/src
# TODO: fix this
# RUN /bin/bash -c '. /opt/ros/noetic/setup.bash'
# RUN /bin/bash -c '. /opt/ros/noetic/setup.bash && catkin_make'
# RUN /bin/bash -c '. /opt/ros/noetic/setup.bash && /opt/ros/noetic/bin/catkin_make'
# source ROS
RUN echo 'source /opt/ros/noetic/setup.bash' >> ~/.bashrc
# source catkin ws
RUN echo "source /home/catkin_ws/devel/setup.bash" >> ~/.bashrc
# RUN echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc