-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-term3
61 lines (50 loc) · 1.93 KB
/
Dockerfile-term3
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
FROM nvidia/cuda:8.0-cudnn6-runtime-ubuntu16.04
# setup keys
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 421C365BD9FF1F717815A3895523BAEEB01FA116
# setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu xenial 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
#$ export LANGUAGE=en_US.UTF-8
#$ export LANG=en_US.UTF-8
#$ export LC_ALL=en_US.UTF-8
#$ locale-gen en_US.UTF-8
#$ dpkg-reconfigure locales
# 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.1-0* && \
# Including kinetic perception
apt-get install -y ros-kinetic-perception && \
rm -rf /var/lib/apt/lists/*
# SDC Capstone project related
RUN apt-get -y update && \
apt-get -y install python-pip wget sudo && \
apt-get -y -o Dpkg::Options::="--force-confmiss" install --reinstall netbase && \
pip install --upgrade pip && \
pip install pylint "Flask>=0.11.1" "attrdict>=2.0.0" "eventlet>=0.19.0" \
"python-socketio>=1.6.1" "numpy>=1.13.1" "Pillow>=2.2.1" scipy \
tensorflow-gpu keras h5py && \
rm -rf /var/cache/apt/archives/.*deb
# SDC Capstone project related
RUN wget -q https://bitbucket.org/DataspeedInc/dbw_mkz_ros/raw/default/dbw_mkz/scripts/sdk_install.bash && \
bash < sdk_install.bash && \
rm sdk_install.bash && \
rm -rf /var/cache/apt/archives/.*deb
RUN export LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH" && \
ln -s /usr/local/cuda/lib64/libcudnn.so.6 /usr/local/cuda/lib64/libcudnn.so
# setup entrypoint
COPY ./ros_entrypoint.sh /
# ENTRYPOINT ["/ros_entrypoint.sh"]
# CMD ["bash"]