Dockerfile.kinetic 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 2016 The Cartographer Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. FROM cartographer_ros:kinetic
  15. # First, we invalidate the entire cache if googlecartographer/cartographer_ros has
  16. # changed. This file's content changes whenever master changes. See:
  17. # http://stackoverflow.com/questions/36996046/how-to-prevent-dockerfile-caching-git-clone
  18. ADD https://api.github.com/repos/googlecartographer/cartographer_ros/git/refs/heads/master \
  19. cartographer_turtlebot/cartographer_ros_version.json
  20. COPY . cartographer_turtlebot
  21. RUN cartographer_turtlebot/scripts/prepare_catkin_workspace.sh
  22. RUN cartographer_turtlebot/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
  23. RUN cartographer_turtlebot/scripts/install.sh --pkg cartographer_turtlebot && \
  24. cartographer_turtlebot/scripts/install.sh --pkg cartographer_turtlebot \
  25. --catkin-make-args run_tests && \
  26. cartographer_turtlebot/scripts/catkin_test_results.sh build_isolated/cartographer_turtlebot
  27. COPY scripts/ros_entrypoint.sh /
  28. # A BTRFS bug may prevent us from cleaning up these directories.
  29. # https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_cannot_delete_an_empty_directory
  30. RUN rm -rf cartographer_turtlebot catkin_ws || true