-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (59 loc) · 1.88 KB
/
Dockerfile
File metadata and controls
70 lines (59 loc) · 1.88 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Build with 'docker compose build'
# Create and enter container with 'docker compose run rover bash'
# Enter an existing running container with 'docker compose exec rover bash'
# if you have anymore questions ask Aaron
# official base image in docs
FROM osrf/ros:humble-desktop
# consistency with setup files
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
ENV ROVERFLAKE_ROOT=/LearnFlake
ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
# install base depenencies (recommend not to change if you want to add niche deps)
RUN apt-get update && apt-get install -y \
tzdata \
sudo \
curl \
git \
vim \
btop \
wget \
bash \
python3 \
python3-pip \
python3-venv \
python-is-python3 \
build-essential \
cmake \
python3-colcon-common-extensions \
ros-humble-rmw-cyclonedds-cpp \
libegl1 \
libglvnd0 \
libgles2 \
mesa-utils \
&& rm -rf /var/lib/apt/lists/*
# common ROS package dockerdeps (use this for niche deps)
RUN apt-get update && apt-get install -y \
ros-humble-urdf \
ros-humble-image-transport \
ros-humble-cv-bridge \
ros-humble-xacro \
ros-humble-rosidl-default-generators \
ros-humble-rosidl-default-runtime \
&& rm -rf /var/lib/apt/lists/*
# copy root into container
WORKDIR $ROVERFLAKE_ROOT
COPY . $ROVERFLAKE_ROOT
# run the full setup script (confirms everything including nested setup scripts)
RUN bash -x setup_scripts/setup_everything_common.sh
# prnv change above
# copy and set entrypoint (runs setup)
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Mujoco rendering default (can be overridden at runtime via MUJOCO_GL)
ENV MUJOCO_GL=glfw
# Nvidia GPU support (this thing is so hard to integrate)
ENV __GLX_VENDOR_LIBRARY_NAME=nvidia
# changed with COPY
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/bash"]