-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
47 lines (40 loc) · 1.63 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
FROM ghcr.io/selkies-project/nvidia-egl-desktop:20.04-20240425164112
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
curl \
gnupg \
lsb-release \
less \
emacs \
tmux \
bash-completion \
command-not-found \
software-properties-common \
xdg-user-dirs \
&& \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/*
# install ROS2 Foxy
RUN sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
ros-foxy-desktop \
&& \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/*
# install colcon and rosdep
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
python3-colcon-common-extensions \
python3-rosdep \
&& \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/*
# initialize rosdep
RUN sudo rosdep init && \
rosdep update
RUN echo "source /opt/ros/foxy/setup.bash" >> ~/.bashrc && \
echo "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash" >> ~/.bashrc
# disabled beep sound
RUN echo "set bell-style none" >> ~/.inputrc
RUN sudo rm /etc/apt/apt.conf.d/docker-clean