forked from eProsima/node-red-ros2-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (54 loc) · 1.91 KB
/
Dockerfile
File metadata and controls
63 lines (54 loc) · 1.91 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
ARG ROS_DISTRO=humble
FROM eprosima/vulcanexus:$ROS_DISTRO
# Avoid interactuation with installation of some package that needs the locale.
ENV TZ=Europe/Madrid
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Avoids using interactions during building
ENV DEBIAN_FRONTEND=noninteractive
# Use a bash shell so it is possigle to run things like `source` (required for colcon builds)
SHELL ["/bin/bash", "-c"]
# Install Integration Service dependencies
RUN apt-get update && \
apt-get install -y \
cmake \
curl \
g++ \
git \
libasio-dev \
libboost-dev \
libboost-program-options-dev \
libboost-system-dev \
libcurl4-openssl-dev \
libcurlpp-dev \
libssl-dev \
libwebsocketpp-dev \
libyaml-cpp-dev \
python3-pip \
wget && \
pip3 install -U \
colcon-common-extensions \
vcstool && \
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.bash && \
chmod +x nodesource_setup.bash && \
bash -c ./nodesource_setup.bash && \
apt-get install -y nodejs
# Install eProsima Integration Service
WORKDIR /is_ws
RUN mkdir src && cd src && \
git clone https://github.com/eProsima/Integration-Service.git is && \
git clone https://github.com/eProsima/WebSocket-SH.git && \
git clone https://github.com/eProsima/ROS2-SH.git && \
git clone https://github.com/eProsima/FIWARE-SH.git && \
source /opt/vulcanexus/$ROS_DISTRO/setup.bash && \
colcon build --cmake-args -DIS_ROS2_SH_MODE=DYNAMIC --install-base /opt/is
# Install Node-RED and node-red-ros2-plugin
RUN npm install -g --unsafe-perm \
node-red \
node-red-ros2-plugin \
node-red-contrib-keypress
# Enable overlay execution
WORKDIR /
COPY entrypoint.bash .
RUN chmod +x /entrypoint.bash
CMD [ "node", "/usr/bin/node-red" ]
ENTRYPOINT [ "/entrypoint.bash" ]