-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_intel
More file actions
executable file
·85 lines (73 loc) · 2.58 KB
/
Copy pathDockerfile_intel
File metadata and controls
executable file
·85 lines (73 loc) · 2.58 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM ubuntu:20.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get dist-upgrade -y
ARG USER
ENV USERNAME=$USER
RUN useradd -m -G sudo ${USERNAME} && \
echo ${USERNAME}:U6aMy0wojraho | chpasswd -e
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
software-properties-common \
apt-transport-https \
wget \
git \
sudo \
gdb \
gcc \
g++ \
make \
libglu1-mesa-dev \
cmake \
vim \
net-tools \
apt-utils \
tar \
language-pack-en \
curl && \
rm -rf /var/lib/apt/lists/*
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' && \
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - && \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ros-noetic-desktop-full && \
rm -rf /var/lib/apt/lists/*
# Basler Camera driver
COPY 3rdparty/pylon6.deb /home/${USERNAME}/pylon6.deb
RUN apt-get update && dpkg -i /home/${USERNAME}/pylon6.deb && \
rm /home/${USERNAME}/pylon6.deb
COPY 3rdparty/pylon_supl.tar.gz /home/${USERNAME}/pylon_supl.tar.gz
RUN tar -C /opt -xzf /home/${USERNAME}/pylon_supl.tar.gz && \
rm /home/${USERNAME}/pylon_supl.tar.gz
RUN apt-get update && \
apt-get install -y --no-install-recommends \
qt5-default \
python3 \
python3-pip \
ipython3 \
python3-tk \
libopencv-dev \
python3-opencv \
python3-wstool && \
rm -rf /var/lib/apt/lists/*
USER ${USERNAME}
RUN python3 -m pip install pip --upgrade
RUN python3 -m pip install matplotlib numpy scipy pygame ipdb
USER root
RUN wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | apt-key add - && \
dpkg --configure -a && \
add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y code && \
sed '/vscode/d' /etc/apt/sources.list > /tmp/sources.list && cp /tmp/sources.list /etc/apt/sources.list
USER ${USERNAME}
WORKDIR /home/${USERNAME}
RUN git clone https://github.com/vibot-lab/Pola4all_2023.git Pola4All
RUN cd Pola4All && ./build_project.sh -b
USER root
COPY ./gitconfig /home/${USERNAME}/gitconfig
COPY ./bashrc /home/${USERNAME}/bashrc
COPY ./vimrc /home/${USERNAME}/vimrc
COPY ./docker-entrypoint.sh /home/${USERNAME}/docker-entrypoint.sh
COPY udev_rules/*.rules /etc/udev/rules.d/
RUN chmod +x /home/${USERNAME}/docker-entrypoint.sh
ENTRYPOINT /home/${USERNAME}/docker-entrypoint.sh
USER ${USERNAME}