-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
94 lines (78 loc) · 2.5 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
94
FROM arm32v7/ubuntu:xenial
LABEL maintainer eko.rudiawan@gmail.com
# install packages
RUN apt-get update && apt-get install -q -y \
dirmngr \
gnupg2 \
lsb-release \
&& rm -rf /var/lib/apt/lists/*
# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 421C365BD9FF1F717815A3895523BAEEB01FA116
# setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list
# install bootstrap tools
RUN apt-get update && apt-get install --no-install-recommends -y \
python-rosdep \
python-rosinstall \
python-vcstools \
&& rm -rf /var/lib/apt/lists/*
# setup environment
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# bootstrap rosdep
RUN rosdep init \
&& rosdep update
# install ros packages
ENV ROS_DISTRO kinetic
RUN apt-get update && apt-get install -y \
ros-kinetic-ros-core=1.3.2-0* \
&& rm -rf /var/lib/apt/lists/*
# install opencv, etc
RUN apt-get update && apt-get install -y \
ros-kinetic-usb-cam \
ros-kinetic-image-view \
ros-kinetic-rqt-image-view \
ros-kinetic-opencv3 \
terminator \
guvcview \
netcat && \
rm -rf /var/lib/apt/lists/*
# Install Tensorflow
RUN cd ~ && apt-get update && apt-get install -y \
wget \
python-pip \
unzip && \
wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.10.0/tensorflow-1.10.0-cp27-none-linux_armv7l.whl && \
pip install tensorflow-1.10.0-cp27-none-linux_armv7l.whl
RUN apt-get update && apt-get install -y \
libblas-dev \
liblapack-dev \
libzbar0 \
libhdf5-serial-dev
RUN apt-get update && pip install --upgrade pip
RUN pip install matplotlib
RUN pip install tqdm
RUN pip install pillow imutils
RUN pip install scipy --no-cache-dir
RUN pip install keras==2.1.6
RUN pip install ipython
RUN pip install jupyter
RUN apt-get update && apt-get install libstdc++6
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update && apt-get upgrade -y
RUN apt-get update && apt-get install -y gcc-4.9 && apt-get upgrade -y libstdc++6
# Install RVIZ
RUN apt-get update && apt-get install -y \
ros-kinetic-rviz \
ros-kinetic-rqt \
ros-kinetic-rqt-common-plugins
# Install ZBar
RUN apt-get update && apt-get install -y \
python-qrtools \
libzbar-dev
RUN apt-get update && apt-get install -y \
dos2unix
# setup entrypoint
COPY ./ros_entrypoint.sh /
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]