forked from Riley-Tuckett/SRT-ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
43 lines (37 loc) · 852 Bytes
/
dockerfile
File metadata and controls
43 lines (37 loc) · 852 Bytes
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
# Get base image from osrf/ros
FROM osrf/ros:jazzy-desktop-full
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-colcon* \
python3-colcon-common-extensions \
build-essential \
iputils-ping \
iproute2 \
net-tools \
dnsutils \
curl \
git \
ca-certificates \
cmake \
python3-pip \
python3-rosdep \
clang-tidy \
flex \
bison \
libncurses-dev \
usbutils \
ros-jazzy-joy \
joystick \
&& rm -rf /var/lib/apt/lists/*
# Set up workspace
ENV MICROROS_WS=/ros
WORKDIR ${MICROROS_WS}
# Copy source files
COPY src/ ${MICROROS_WS}/src/
# Copy entrypoint script
COPY entrypoint.sh /ros/entrypoint.sh
RUN chmod +x /ros/entrypoint.sh
# Expose micro-ROS agent port
EXPOSE 8888/udp
# Set entrypoint
ENTRYPOINT ["/ros/entrypoint.sh"]