-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathDockerfile
60 lines (45 loc) · 1.46 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
FROM ubuntu:20.04 as base
RUN apt update
RUN apt install -y ca-certificates
RUN apt install -y sudo
RUN apt install -y ssh
RUN apt install -y netplan.io
# resizerootfs
RUN apt install -y udev
RUN apt install -y parted
# ifconfig
RUN apt install -y net-tools
# needed by knod-static-nodes to create a list of static device nodes
RUN apt install -y kmod
# Install our resizerootfs service
COPY root/etc/systemd/ /etc/systemd
RUN systemctl enable resizerootfs
RUN systemctl enable ssh
RUN systemctl enable systemd-networkd
RUN systemctl enable setup-resolve
RUN mkdir -p /opt/nvidia/l4t-packages
RUN touch /opt/nvidia/l4t-packages/.nv-l4t-disable-boot-fw-update-in-preinstall
COPY root/etc/apt/ /etc/apt
COPY root/usr/share/keyrings /usr/share/keyrings
RUN apt update
# nv-l4t-usb-device-mode
RUN apt install -y bridge-utils
# https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/updating_jetson_and_host.html
RUN apt install -y -o Dpkg::Options::="--force-overwrite" \
nvidia-l4t-core \
nvidia-l4t-init \
nvidia-l4t-bootloader \
nvidia-l4t-camera \
nvidia-l4t-initrd \
nvidia-l4t-xusb-firmware \
nvidia-l4t-kernel \
nvidia-l4t-kernel-dtbs \
nvidia-l4t-kernel-headers \
nvidia-l4t-cuda \
jetson-gpio-common \
python3-jetson-gpio
RUN rm -rf /opt/nvidia/l4t-packages
COPY root/ /
RUN useradd -ms /bin/bash jetson
RUN echo 'jetson:jetson' | chpasswd
RUN usermod -a -G sudo jetson