forked from ma-shangao/frl_rosbot_onboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (28 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# From: https://github.com/clydemcqueen/tello_ros
# To build:
# docker build --pull --no-cache --tag frl_rosbot_onboard:foxy .
# To run:
# docker run -it tello_ros:frl_rosbot_onboard bash
# I'm using this for smoke tests
# To run the pakckage in a docker container you will need to set up ports, x-windows, etc.
FROM osrf/ros:foxy-desktop
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python3-pip
WORKDIR /work/ros2_ws/src
# RUN git clone https://github.com/ma-shangao/frl_rosbot_onboard.git
COPY ./ frl_rosbot_onboard/
RUN git clone https://github.com/husarion/rosbot_description.git
# Cannot successfully build ros_astra_camera at this time
# RUN git clone https://github.com/husarion/ros_astra_camera.git
WORKDIR /work/ros2_ws/src/frl_rosbot_onboard
RUN ls
WORKDIR /work/ros2_ws/src/rosbot_description
RUN git checkout foxy
# WORKDIR /work/ros2_ws/src/ros_astra_camera
# RUN git checkout foxy
WORKDIR /work/ros2_ws
RUN rosdep install -y -r --from-paths . --ignore-src
RUN /bin/bash -c "source /opt/ros/foxy/setup.bash && colcon build"
RUN /bin/bash -c "source /opt/ros/foxy/setup.bash && colcon test --packages-select frl_rosbot_onboard"
RUN /bin/bash -c "source /opt/ros/foxy/setup.bash && colcon test-result --verbose"