-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile.base
More file actions
47 lines (33 loc) · 1.86 KB
/
Dockerfile.base
File metadata and controls
47 lines (33 loc) · 1.86 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
FROM nvcr.io/nvidia/deepstream:7.1-triton-multiarch
# 安装必要的软件包和交叉编译工具链
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y cmake make git vim gcc g++ gdb gdbserver tree sudo tcpdump time python3-pip && \
apt-get install -y autoconf automake pkg-config libssl-dev libboost-all-dev ncurses-dev nfs-common && \
apt-get install -y net-tools openssh-server openssh-client rsync cpio unzip bc && \
apt-get install -y build-essential libgtest-dev libgmock-dev libmosquitto-dev libdbus-1-dev libprotobuf-dev protobuf-compiler && \
apt-get install -y curl lsb-release software-properties-common locales tzdata x11-apps libzmq3-dev libmsgpack-dev && \
apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu qtbase5-dev-tools
# 设置环境变量
ENV TZ=Asia/Shanghai
# 配置时区
RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
RUN add-apt-repository universe -y
# 设置root用户的密码
RUN echo 'root:root' | chpasswd
#(Optional) install ros2 humble depends on user optional requirements
# 设置语言环境
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
# # 添加 ROS 2 apt 仓库和密钥
# RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
# RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
# # 安装 ROS 2 Humble 版本
# RUN apt-get update && apt-get install -y \
# ros-humble-desktop
# RUN apt install ros-dev-tools -y
# 设置工作目录
WORKDIR /build
# 容器启动命令
CMD ["echo", "posix-bsp-perf cross build docker base launch!"]