Dockerfile.kinetic 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. # We require a GitHub access token to be passed.
  16. ARG github_token
  17. # First, we invalidate the entire cache if googlecartographer/cartographer_ros has
  18. # changed. This file's content changes whenever master changes. See:
  19. # http://stackoverflow.com/questions/36996046/how-to-prevent-dockerfile-caching-git-clone
  20. ADD https://api.github.com/repos/googlecartographer/cartographer_ros/git/refs/heads/master?access_token=$github_token \
  21. cartographer_turtlebot/cartographer_ros_version.json
  22. COPY . cartographer_turtlebot
  23. RUN cartographer_turtlebot/scripts/prepare_catkin_workspace.sh
  24. RUN cartographer_turtlebot/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
  25. RUN cartographer_turtlebot/scripts/install.sh --pkg cartographer_turtlebot && \
  26. cartographer_turtlebot/scripts/install.sh --pkg cartographer_turtlebot \
  27. --catkin-make-args run_tests && \
  28. cartographer_turtlebot/scripts/catkin_test_results.sh build_isolated/cartographer_turtlebot
  29. COPY scripts/ros_entrypoint.sh /
  30. # A BTRFS bug may prevent us from cleaning up these directories.
  31. # https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_cannot_delete_an_empty_directory
  32. RUN rm -rf cartographer_turtlebot catkin_ws || true