Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FetchIt!] Dockerfile & Docker Example #75

Open
moriarty opened this issue Apr 11, 2019 · 0 comments
Open

[FetchIt!] Dockerfile & Docker Example #75

moriarty opened this issue Apr 11, 2019 · 0 comments
Labels
enhancement FetchIt! This issue is related to the FetchIt! Challenge

Comments

@moriarty
Copy link
Contributor

I was asked to share a Dockerfile with the example of catkin overlays. Sorry, I did have a small typo in the version which I sent around via email, the sed command had an extra ..

Here is how the robots for FetchIt! will be setup with three catkin layers:

  1. /opt/ros/melodic <- bottom layer, only root user can install packages here
  2. $HOME/ros/stable/install <- middle layer, contains packages which are not in ros-melodic-desktop-full but which you depend on, but which you don't actively develop on.
  3. $HOME/ros/active/src <- your active catkin source space
    $HOME/ros/active/devel <- your active catkin devel space
FROM osrf/ros:melodic-desktop-full-bionic

RUN DEBIAN_FRONTEND=noninteractive apt-get update \
 && apt-get install -y -q --no-install-recommends \
    python-catkin-tools \
    python-rosinstall-generator \
 && . /opt/ros/melodic/setup.sh \
 && rosinstall_generator fetchit_challenge --deps --deps-only --exclude RPP > stable.rosinstall \
 && rosinstall_generator fetchit_challenge --upstream > active.rosinstall \
 && mkdir -p $HOME/ros/stable $HOME/ros/active \
 && wstool init $HOME/ros/stable/src stable.rosinstall \
 && wstool init $HOME/ros/active/src active.rosinstall \
 && cd $HOME/ros/stable \
    && catkin config --init \
    && catkin config --install --extend /opt/ros/melodic \
    && catkin build \
 && cd $HOME/ros/active \
    && catkin config --init \
    && catkin config --extend $HOME/ros/stable/install \
    && catkin build \
 && sed -i 's/\/opt\/ros\/\$ROS_DISTRO/\$HOME\/ros\/active\/devel/' ./ros_entrypoint.sh

ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]
@moriarty moriarty self-assigned this Apr 11, 2019
@moriarty moriarty added FetchIt! This issue is related to the FetchIt! Challenge and removed FetchIt! This issue is related to the FetchIt! Challenge labels Apr 25, 2019
@moriarty moriarty removed their assignment Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement FetchIt! This issue is related to the FetchIt! Challenge
Projects
None yet
Development

No branches or pull requests

1 participant