forked from pythops/jetson-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile.rootfs.22_04
97 lines (88 loc) · 2.12 KB
/
Containerfile.rootfs.22_04
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
95
96
97
FROM ubuntu:jammy
LABEL org.opencontainers.image.authors="Badr @pythops"
# Add focal main repo
RUN echo "deb http://ports.ubuntu.com/ubuntu-ports/ focal main" >> /etc/apt/sources.list && \
apt update
# Nvidia required packages
RUN apt install -y \
libgles2 \
libpangoft2-1.0-0 \
libxkbcommon0 \
libwayland-egl1 \
libwayland-cursor0 \
libunwind8 \
libasound2 \
libpixman-1-0 \
libjpeg-turbo8 \
libinput10 \
libcairo2 \
device-tree-compiler \
iso-codes \
libncursesw5 \
libdrm-common \
libdrm2 \
libegl-mesa0 \
libegl1 \
libegl1-mesa \
libgtk-3-0 \
libgstreamer1.0-0 \
libgstreamer-plugins-bad1.0-0 \
i2c-tools \
bridge-utils \
libffi7 \
libssl1.1 && \
apt install -y wget && \
wget http://launchpadlibrarian.net/354032550/libffi6_3.2.1-8_arm64.deb && \
dpkg -i libffi6_3.2.1-8_arm64.deb
# Additional tools
RUN apt install -y \
systemd \
bash-completion \
build-essential \
pkg-config \
btrfs-progs \
cmake \
curl \
dnsutils \
htop \
iotop \
isc-dhcp-client \
iputils-ping \
kmod \
linux-firmware \
locales \
net-tools \
netplan.io \
pciutils \
python3-dev \
ssh \
sudo \
udev \
unzip \
usbutils \
neovim \
wpasupplicant \
parted \
gdisk \
fdisk \
e2fsprogs \
mtd-utils \
python-is-python3 \
git
# Resize the rootfs
COPY scripts/resizerootfs.sh /usr/local/bin
COPY scripts/resizerootfs.service /lib/systemd/system
RUN systemctl enable resizerootfs.service
# Generate locales
RUN locale-gen en_US.UTF-8
# Network configuration
COPY config/netcfg.yaml /etc/netplan/netcfg.yaml
# New user
# username: jetson
# password: jetson
RUN useradd \
--create-home \
-G sudo \
-p $(openssl passwd -6 jetson) \
-s /bin/bash \
jetson