|
1 | | -FROM osrf/ros:noetic-desktop-full |
2 | | - |
3 | | - |
4 | | -ARG TELEOP_CONTROLLER |
5 | | -ENV TELEOP_CONTROLLER=${TELEOP_CONTROLLER} |
6 | | - |
7 | | -ARG ENABLE_MANIPULATOR |
8 | | -ENV ENABLE_MANIPULATOR=${ENABLE_MANIPULATOR} |
9 | | - |
10 | | -ARG OPEN_MANIPULATOR_GUI |
11 | | -ENV MANIPULATOR_GUI=${MANIPULATOR_GUI} |
12 | | - |
13 | | -ARG WORLD_NAME |
14 | | -ENV WORLD_NAME=${WORLD_NAME} |
15 | | - |
16 | | - |
17 | | -ENV NVIDIA_VISIBLE_DEVICES \ |
18 | | - ${NVIDIA_VISIBLE_DEVICES:-all} |
19 | | -ENV NVIDIA_DRIVER_CAPABILITIES \ |
20 | | - ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics |
21 | | - |
| 1 | +FROM osrf/ros:jazzy-desktop |
22 | 2 |
|
23 | 3 | WORKDIR /home/ |
24 | 4 |
|
25 | | -RUN apt-get update &&\ |
26 | | - apt-get install -y\ |
27 | | - gazebo11 \ |
28 | | - build-essential \ |
29 | | - python3-osrf-pycommon \ |
30 | | - python3-catkin-tools \ |
31 | | - python3-rosdep \ |
32 | | - libignition-rendering3 \ |
33 | | - git \ |
34 | | - xvfb |
35 | | - |
36 | | - |
37 | | -RUN mkdir -p catkin_ws/src |
38 | | - |
39 | | -WORKDIR /home/catkin_ws/src/ |
40 | | - |
41 | | -RUN git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git &&\ |
42 | | - git clone https://github.com/ROBOTIS-GIT/turtlebot3_manipulation.git &&\ |
43 | | - git clone https://github.com/ROBOTIS-GIT/turtlebot3_manipulation_simulations.git &&\ |
44 | | - git clone https://github.com/ROBOTIS-GIT/open_manipulator_dependencies.git |
45 | | - |
46 | | - |
47 | | -COPY ./ros_packages/ /home/catkin_ws/src/ |
48 | | -COPY ./docker_scripts/install_dep.sh /home/ |
49 | | -RUN /home/install_dep.sh |
50 | | - |
51 | | -RUN mkdir -p /usr/share/gazebo-11/models |
52 | | -COPY ./models /usr/share/gazebo-11/models |
53 | | -COPY ./docker_scripts/setup.sh /usr/share/gazebo-11/setup.sh |
54 | | -COPY ./docker_scripts/setup.sh /usr/share/gazebo/setup.sh |
55 | | - |
56 | | -COPY ./config /home/config |
57 | | -COPY ./docker_scripts/entrypoint.sh /home/ |
58 | | -COPY ./worlds /home/catkin_ws/src/isar_turtlebot/worlds/ |
59 | | -COPY ./maps /home/catkin_ws/src/isar_turtlebot/maps/ |
60 | | - |
61 | | - |
62 | | -# Change user to avoid running as root |
63 | | -# User needs to have an explicit guid for radix |
64 | | -RUN useradd -ms /bin/bash --uid 1001 -g users turtle_sim |
65 | | -RUN chown -R 1001 /home |
66 | | -RUN chmod 755 /home |
| 5 | +COPY /docker_scripts/install_sim.sh /home/ |
67 | 6 |
|
68 | | -USER 1001 |
| 7 | +RUN bash /home/install_sim.sh |
69 | 8 |
|
70 | | -CMD /home/entrypoint.sh |
| 9 | +CMD ["sleep", "infinity"] |
0 commit comments