Clean up & commenting

This commit is contained in:
Derek Witcpalek
2020-04-03 22:42:55 -04:00
parent dac62c69d5
commit 9050681d95
3 changed files with 13 additions and 26 deletions

View File

@@ -3,15 +3,15 @@
# Use official image for Gazebo 9.x
FROM gazebo:gzserver9
# COPY $PWD/gazebo_models /root/.gazebo/models
RUN apt-get update
# Install packages required for developing with gazebo
RUN apt-get install -y libgazebo9-dev
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN apt-get install -y curl
RUN curl -sSL 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC1CF6E31E6BADE8868B172B4F42ED6FBAB17C654' | apt-key add -
RUN apt-get update
# Install packages required for developing with ROS
RUN apt-get install -y ros-melodic-desktop-full
RUN echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
RUN apt install -y python-rosdep
@@ -28,16 +28,12 @@ RUN usermod -aG sudo rrrobot
WORKDIR /home/rrrobot
RUN chown -R rrrobot:rrrobot /home/rrrobot
#COPY $RRROBOT_HOME/src /home/rrrobot/src
#COPY /home/dwitcpa/eecs467/rrrobot/src /home/rrrobot
# Initialize the environment in .bashrc
RUN echo "source /opt/ros/melodic/setup.bash" >> /home/rrrobot/.bashrc
RUN echo "source /usr/share/gazebo/setup.sh" >> /home/rrrobot/.bashrc
RUN echo "export GAZEBO_MODEL_PATH=/home/rrrobot/rrrobot_src/src/gazebo_models:\$GAZEBO_MODEL_PATH" >> /home/rrrobot/.bashrc
RUN echo "export GAZEBO_PLUGIN_PATH=/home/rrrobot/rrrobot_src/lib:\$GAZEBO_PLUGIN_PATH" >> /home/rrrobot/.bashrc
#RUN chown -R rrrobot:rrrobot /home/rrrobot/.gazebo
USER rrrobot
CMD ["/bin/bash"]