1- FROM ghcr.io/smart-wheelchair-rrc/humble_jetson:v4 .7
1+ FROM ghcr.io/smart-wheelchair-rrc/humble_jetson:dev5.0 .7
22
33ARG USERNAME=container_user
44
@@ -12,37 +12,16 @@ LABEL org.opencontainers.image.licenses="MIT"
1212# handle default shell
1313SHELL ["/bin/bash" , "-c" ]
1414
15- # Install Basic deps
16- RUN sudo apt-get update \
17- && sudo apt-get -y install --no-install-recommends\
18- libssl-dev \
19- libusb-1.0-0-dev \
20- libudev-dev \
21- pkg-config \
22- libgtk-3-dev \
23- wget \
24- cmake \
25- build-essential \
26- libglfw3-dev \
27- libgl1-mesa-dev \
28- libglu1-mesa-dev \
29- at \
30- v4l-utils \
31- xterm \
32- && sudo apt-get autoremove -y \
33- && sudo apt-get clean -y \
34- && sudo rm -rf /var/lib/apt/lists/*
35-
3615# Build and install Realsense-SDK
3716WORKDIR /home/$USERNAME
38- RUN git clone --depth=1 --progress --verbose https://github.com/IntelRealSense/librealsense.git
17+ RUN git clone --depth=1 --progress --verbose https://github.com/IntelRealSense/librealsense.git --branch v2.56.2
3918WORKDIR /home/$USERNAME/librealsense
4019RUN sudo mkdir -p /etc/udev/rules.d && \
4120 ./scripts/setup_udev_rules.sh \
4221 ./scripts/patch-realsense-ubuntu-lts-hwe.sh
4322RUN mkdir build && cd build \
4423 && cmake ../ \
45- && sudo make uninstall && make clean && make && sudo make install
24+ && sudo make uninstall -j4 && make clean && make -j4 && sudo make install -j4
4625
4726# Build and install Livox-SDK2
4827WORKDIR /home/$USERNAME
@@ -51,7 +30,7 @@ RUN cd Livox-SDK2 \
5130 && mkdir build \
5231 && cd build \
5332 && cmake .. && make -j \
54- && sudo make install
33+ && sudo make install -j4
5534
5635COPY rosPkgs.list /tmp/rosPkgs.list
5736RUN sudo apt-get update \
@@ -63,15 +42,14 @@ RUN sudo apt-get update \
6342 && pip3 install $(cat /tmp/pythonPkgs.list) \
6443 && sudo rm -rf /var/lib/apt/lists/*
6544
66- RUN sudo apt-get update \
67- && sudo apt-get -y install --no-install-recommends\
68- tmux \
69- vim \
70- nano \
71- tree \
72- && sudo apt-get autoremove -y \
73- && sudo apt-get clean -y \
74- && sudo rm -rf /var/lib/apt/lists/*
45+ # Install Miniconda
46+ # RUN mkdir -p ~/miniconda3 && \
47+ # wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh && \
48+ # bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 && \
49+ # rm ~/miniconda3/miniconda.sh && \
50+ # source ~/miniconda3/bin/activate && \
51+ # conda init --all && \
52+ # conda config --set auto_activate_base false
7553
7654# Set TERM and colorful prompt in bashrc
7755RUN echo 'export TERM="xterm-256color"' | sudo tee -a ~/.bashrc > /dev/null && \
@@ -82,11 +60,5 @@ COPY .tmux.conf /home/$USERNAME/.tmux.conf
8260# Environment variable for map folder
8361ENV MAP_DIR=/home/$USERNAME/wheelchair2/src/wheelchair2_navigation/maps
8462
85- # Install Miniconda
86- RUN mkdir -p ~/miniconda3 && \
87- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O ~/miniconda3/miniconda.sh && \
88- bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 && \
89- rm ~/miniconda3/miniconda.sh && \
90- source ~/miniconda3/bin/activate && \
91- conda init --all && \
92- conda config --set auto_activate_base false
63+ # handle default shell
64+ SHELL ["/bin/bash" , "-c" ]
0 commit comments