forked from josetoribio/Docker-Ros-Indigo-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
95 lines (66 loc) · 2.35 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM ros:melodic
RUN apt-get update
RUN chmod +x /bin/sh
RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y emacs
RUN apt-get install -y sudo
RUN apt-get install -y python-pip
RUN apt-get install -y net-tools
RUN apt-get install -y iproute2
RUN apt-get install -y iputils-ping
RUN apt-get install -y openssh-client openssh-server
RUN apt-get install -y ros-melodic-desktop-full
#baxter sdk dependencies
RUN apt-get install -y git-core
RUN apt-get install -y python-argparse
RUN apt-get install -y python-wstool
RUN apt-get install -y python-vcstools
RUN apt-get install -y python-rosdep
RUN apt-get install -y ros-melodic-control-msgs
RUN apt-get install -y ros-melodic-joystick-drivers
RUN apt-get install -y gdb
RUN apt-get install -y mlocate
RUN apt-get install -y screen
RUN apt-get install -y emacs
RUN apt-get install -y git
RUN apt-get install -y netcat nmap wget iputils-ping openssh-client vim less
RUN apt-get install -y python-numpy
RUN apt-get install -y python-smbus
RUN apt-get install -y python-scipy
RUN apt-get install -y locate
# ein stuff
#copied and paste from pidrone dockerfile
ARG hostuser
ARG hostgroup
ARG hostuid
ARG hostgid
ARG hostname
RUN echo Host user is $hostuser:$hostuser
RUN groupadd --gid $hostgid $hostgroup || true
RUN adduser --disabled-password --gecos '' --gid $hostgid --uid $hostuid $hostuser
RUN adduser $hostuser sudo
RUN adduser $hostuser video
# Ensure sudo group users are not asked for a p3assword when using sudo command
# by ammending sudoers file
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> \
/etc/sudoers
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
USER $hostuser
WORKDIR /home/$hostuser
ENV HOME=/home/$hostuser
RUN mkdir $HOME/repo
RUN mkdir -p $HOME/catkin_ws/src
RUN rosdep update
#baxter sdk install
RUN cd ~/catkin_ws/src && wstool init .
RUN cd ~/catkin_ws/src && wstool merge https://raw.githubusercontent.com/RethinkRobotics/baxter/master/baxter_sdk.rosinstall
RUN cd ~/catkin_ws/src && wstool update
#RUN cd ~/catkin_ws/src && git clone https://github.com/h2r/ein
#RUN cd ~/catkin_ws/src/ein && git checkout
RUN cd ~/catkin_ws && source /opt/ros/melodic/setup.bash && catkin_make
RUN cp ~/catkin_ws/src/baxter/baxter.sh ~/catkin_ws
#copied from runtime opengl
#RUN sudo apt-get install -y libgl1-mesa-glx mesa-utils
# nvidia-container-runtime
# nvidia-container-runtime
CMD ["bash"]