This repository has been archived by the owner on Oct 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
58 lines (51 loc) · 1.47 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
FROM ros:kinetic
RUN apt-get update && apt-get install -y \
curl \
gazebo7 \
imagemagick \
libboost-all-dev \
libeigen3-dev \
libgazebo7 \
libgazebo7-dev \
libjansson-dev \
libopencv-dev \
libprotobuf-dev \
libprotoc-dev \
libtinyxml-dev \
libxml2-utils \
mercurial \
pkg-config \
protobuf-compiler \
psmisc \
python-catkin-tools \
python-jinja2 \
python-rospkg \
python-rosinstall-generator \
ros-kinetic-angles \
ros-kinetic-cv-bridge \
ros-kinetic-control-toolbox \
ros-kinetic-gazebo-ros \
ros-kinetic-gazebo-msgs \
ros-kinetic-libmavconn \
ros-kinetic-tf2-eigen \
ros-kinetic-urdf \
xvfb && \
# install mavros dependencies so we can build from source
apt-get install -y \
$(apt-cache depends ros-kinetic-mavros | grep Depends | sed "s/.*ends://" | tr '\n' ' ') \
$(apt-cache depends ros-kinetic-mavlink | grep Depends | sed "s/.*ends://" | tr '\n' ' ')
RUN apt-get install -y python-pip && \
python -m pip install --upgrade pip && \
python -m pip install --user toml numpy future
WORKDIR /control_simulator
COPY scripts scripts
COPY src/control_simulator/models src/control_simulator/models
RUN bash scripts/install_gzweb.sh
COPY . .
RUN git submodule update --init --recursive
# Get external projects
ARG GITHUB_PAT
RUN bash scripts/clone_external_projects.sh ${GITHUB_PAT}
RUN bash -c "source /opt/ros/kinetic/setup.bash && catkin build"
ENTRYPOINT ["./entrypoint.sh"]
CMD bash