-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (39 loc) · 1.18 KB
/
Dockerfile
File metadata and controls
46 lines (39 loc) · 1.18 KB
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
43
44
45
46
FROM ros:jazzy
# Install dependencies & utilities
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && apt-get install \
btop \
qt5ct \
fonts-comfortaa \
ros-jazzy-joy-linux \
ros-jazzy-rviz2 \
ros-jazzy-rqt \
ros-jazzy-zbar-ros \
ros-jazzy-rqt-robot-monitor \
ros-jazzy-rqt-reconfigure \
ros-jazzy-rqt-tf-tree \
ros-jazzy-rqt-image-view \
ros-jazzy-image-transport-plugins \
-y && rm -rf /var/lib/apt/lists/*
# Workaround so we don't have to re-download everything every time
# Use with `--build-arg CACHEBUST=1`
ARG CACHEBUST=0
# Create workspace
RUN mkdir -p /bento_ws/src
WORKDIR /bento_ws
# Get sources
RUN cd src &&\
git clone https://github.com/Bento-Robotics/bento_teleop &&\
git clone https://github.com/Bento-Robotics/TunnelVision &&\
cd ..
# Build workspace
RUN bash -c " \
. /opt/ros/$ROS_DISTRO/setup.bash &&\
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release \
"
# Set up automatic sourcing
RUN echo "source /opt/ros/jazzy/setup.bash\nsource /bento_ws/install/setup.bash" >> ~/.bashrc
# Add entry point
COPY ./entrypoint.sh /
RUN chmod a+x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]