Skip to content

Commit

Permalink
Finished noetic docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Heitz Robin committed May 15, 2024
1 parent 3d1fce0 commit 90fdc46
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions noetic.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ ARG ROS_DISTRO=noetic

FROM ros:${ROS_DISTRO}

# For some reason, ARGs get reset after FROM statement, if they are not used in FROM.
# Therefore, introduce them now.
ARG ROS_WS=ws_ros

#install binary dependencies
RUN apt-get -qq update && apt-get -qq upgrade -y && apt-get install -y \
nano \
Expand Down Expand Up @@ -46,16 +50,11 @@ RUN rm -rf /var/lib/apt/lists/*
WORKDIR /ros_stuff
COPY rdep.sh .

RUN mkdir -p ws_ros/src && touch ws_ros/src/test.file

# RUN mkdir -p ws_ros/src && git clone -b humble https://github.com/UniversalRobots/Universal_Robots_ROS2_Gazebo_Simulation.git ws_ros/src/Universal_Robots_ROS2_Gazebo_Simulation
RUN mkdir -p $ROS_WS/src && touch $ROS_WS/src/test.file

RUN sudo chmod 777 -R .

RUN mkdir /test/${ROS_DISTRO}


WORKDIR /ros_stuff/ws_ros
WORKDIR /ros_stuff/$ROS_WS

ENV NVIDIA_VISIBLE_DEVICES \
${NVIDIA_VISIBLE_DEVICES:-all}
Expand Down Expand Up @@ -87,4 +86,3 @@ RUN usermod -aG video ${USERNAME}

RUN echo "export DISABLE_AUTO_TITLE=true" >> /home/$USERNAME/.bashrc
RUN echo 'LC_NUMERIC="en_US.UTF-8"' >> /home/$USERNAME/.bashrc
RUN echo "source /opt/ros/noetic/setup.bash" >> /home/$USERNAME/.bashrc

0 comments on commit 90fdc46

Please sign in to comment.