Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (55 loc) · 2.22 KB
/
Copy pathDockerfile
File metadata and controls
64 lines (55 loc) · 2.22 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
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM ros:galactic-ros-core-focal
# install bootstrap tools
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
git \
python3-colcon-common-extensions \
python3-colcon-mixin \
python3-rosdep \
python3-vcstool \
&& rm -rf /var/lib/apt/lists/*
# bootstrap rosdep
RUN rosdep init && \
rosdep update --rosdistro $ROS_DISTRO
# setup colcon mixin and metadata
RUN colcon mixin add default \
https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && \
colcon mixin update && \
colcon metadata add default \
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml && \
colcon metadata update
# install ros2 packages
RUN apt-get update && apt-get install -y --no-install-recommends \
ros-galactic-ros-base=0.9.3-2*
# Everything above this line comes from:
# https://github.com/osrf/docker_images/blob/master/ros/galactic/ubuntu/focal/ros-base/Dockerfile
# Below this line, twistedfields additions.
RUN apt update && apt install -y libffi-dev \
python3-dev curl \
libkrb5-dev \
libzmq5 \
libblas-dev \
redis \
automake \
subversion \
libxml2-dev \
libxslt1-dev \
gfortran-arm-linux-gnueabi \
libjpeg8-dev \
python3-pip \
python3-scipy \
python3-numpy-dev \
tmux \
vim \
mercurial \
iw \
bash \
iputils-ping
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install wheel certifi==2020.06.20 pytest==6.2.5 coverage[toml]
COPY server/requirements.txt /install/server/
RUN python3 -m pip install -r /install/server/requirements.txt
COPY vehicle/requirements.txt /install/vehicle/
RUN python3 -m pip install -r /install/vehicle/requirements.txt
RUN python3 -m pip install adafruit-circuitpython-mcp230xx coloredlogs pyserial_asyncio pyubx2 pygame
RUN apt update && apt install -y libraspberrypi-bin; exit 0 # Only succeeds on raspberry pi but not needed otherwise.