Skip to content

Commit 14b77c8

Browse files
jetson tag
1 parent 7bc145f commit 14b77c8

6 files changed

Lines changed: 71 additions & 83 deletions

File tree

ROS2/AMD64x86/wheelchair2_base/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/smart-wheelchair-rrc/humble:dev5.0.6
1+
FROM ghcr.io/smart-wheelchair-rrc/humble:dev5.0.7
22

33
ARG USERNAME=container_user
44

@@ -43,13 +43,13 @@ RUN sudo apt-get update \
4343
&& sudo rm -rf /var/lib/apt/lists/*
4444

4545
#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
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
5353

5454
# Set TERM and colorful prompt in bashrc
5555
RUN echo 'export TERM="xterm-256color"' | sudo tee -a ~/.bashrc > /dev/null && \

ROS2/AMD64x86/wheelchair2_base_cuda/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/smart-wheelchair-rrc/humble_cuda:dev5.0.6
1+
FROM ghcr.io/smart-wheelchair-rrc/humble_cuda:dev5.0.7
22

33
ARG USERNAME=container_user
44

ROS2/AMD64x86/wheelchair2_base_gazebo/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/smart-wheelchair-rrc/humble_gazebo:dev5.0.6
1+
FROM ghcr.io/smart-wheelchair-rrc/humble_gazebo:dev5.0.7
22

33
ARG USERNAME=container_user
44

ROS2/Jetson/humble_jetson/Dockerfile

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,31 @@ ARG USERNAME=container_user
66
ARG USER_UID=1000
77
ARG USER_GID=$USER_UID
88

9-
# Add the following labels
9+
# Add metadata labels
1010
LABEL org.opencontainers.image.description="Docker Development Container"
11-
LABEL org.opencontainers.image.title="ROS2Dev"
11+
LABEL org.opencontainers.image.title="RRC Humble"
1212
LABEL org.opencontainers.image.vendor="Tarun R"
1313
LABEL org.opencontainers.image.source="https://github.com/Smart-Wheelchair-RRC/DockerForDevelopment"
1414
LABEL maintainer="tarun.ramak@gmail.com"
1515
LABEL org.opencontainers.image.licenses="MIT"
1616

17-
# handle default shell
17+
# configure bash shell
1818
SHELL ["/bin/bash", "-c"]
1919
ENV SHELL=/bin/bash
2020

21+
# set ROS distro env
22+
ENV ROS_DISTRO=$ROS_DISTRO
23+
24+
# setup locales
25+
ENV LANG=C.UTF-8
26+
ENV LC_ALL=C.UTF-8
27+
2128
# setup timezone
2229
RUN echo 'Asia/Kolkata' > /etc/timezone && \
23-
ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime && \
24-
apt-get update && \
25-
apt-get install -q -y --no-install-recommends tzdata && \
26-
rm -rf /var/lib/apt/lists/*
30+
ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
2731

2832
# install packages
33+
COPY aptPkgs.list /tmp/aptPkgs.list
2934
RUN apt-get update && apt-get install -q -y --no-install-recommends \
3035
dirmngr \
3136
gnupg2 \
@@ -41,43 +46,24 @@ RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure
4146
&& rm -f /tmp/ros2-apt-source.deb \
4247
&& rm -rf /var/lib/apt/lists/*
4348

44-
# setup environment
45-
ENV LANG=C.UTF-8
46-
ENV LC_ALL=C.UTF-8
49+
# install packages
50+
COPY aptPkgs.list /tmp/aptPkgs.list
51+
RUN apt-get update && apt-get install -q -y --no-install-recommends \
52+
$(cat /tmp/aptPkgs.list) \
53+
&& rm -rf /var/lib/apt/lists/*
4754

4855
# Create non root user with sudo privilege
4956
RUN groupadd --gid $USER_GID $USERNAME \
5057
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
51-
&& apt-get update \
52-
&& apt-get install -y sudo \
5358
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
5459
&& chmod 0440 /etc/sudoers.d/$USERNAME
5560
USER $USERNAME
5661

57-
ENV ROS_DISTRO=$ROS_DISTRO
58-
59-
# install ros2 packages
60-
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
61-
ros-$ROS_DISTRO-desktop \
62-
&& sudo rm -rf /var/lib/apt/lists/*
63-
6462
# setup entrypoint
6563
COPY ./ros_entrypoint.sh /
6664

6765
ENTRYPOINT ["/ros_entrypoint.sh"]
6866

69-
# install bootstrap tools
70-
RUN sudo apt-get update && sudo apt-get install --no-install-recommends -y \
71-
build-essential \
72-
git \
73-
bash-completion \
74-
python3-colcon-common-extensions \
75-
python3-colcon-mixin \
76-
python3-rosdep \
77-
python3-vcstool \
78-
python3-pip \
79-
&& sudo rm -rf /var/lib/apt/lists/*
80-
8167
# bootstrap rosdep
8268
RUN sudo rosdep init && \
8369
rosdep update --rosdistro $ROS_DISTRO
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
at
2+
bash-completion
3+
build-essential
4+
cmake
5+
git
6+
gnupg
7+
libaprutil1
8+
libgl1-mesa-dev
9+
libglfw3-dev
10+
libglu1-mesa-dev
11+
libgtk-3-dev
12+
libssl-dev
13+
libudev-dev
14+
libusb-1.0-0-dev
15+
lsb-release
16+
nano
17+
pkg-config
18+
python3-colcon-common-extensions
19+
python3-colcon-mixin
20+
python3-pip
21+
python3-rosdep
22+
python3-vcstool
23+
sudo
24+
tmux
25+
tree
26+
tzdata
27+
v4l-utils
28+
vim
29+
wget
30+
xterm
Lines changed: 14 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/smart-wheelchair-rrc/humble_jetson:v4.7
1+
FROM ghcr.io/smart-wheelchair-rrc/humble_jetson:dev5.0.7
22

33
ARG USERNAME=container_user
44

@@ -12,37 +12,16 @@ LABEL org.opencontainers.image.licenses="MIT"
1212
# handle default shell
1313
SHELL ["/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
3716
WORKDIR /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
3918
WORKDIR /home/$USERNAME/librealsense
4019
RUN sudo mkdir -p /etc/udev/rules.d && \
4120
./scripts/setup_udev_rules.sh \
4221
./scripts/patch-realsense-ubuntu-lts-hwe.sh
4322
RUN 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
4827
WORKDIR /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

5635
COPY rosPkgs.list /tmp/rosPkgs.list
5736
RUN 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
7755
RUN 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
8361
ENV 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

Comments
 (0)