@@ -9,12 +9,7 @@ RUN mkdir -p /opt/jderobot && \
9
9
10
10
# create workspace and add Robot packages
11
11
RUN mkdir -p /home/ws/src
12
- RUN mv /opt/jderobot/hal_interfaces /opt/jderobot/gui_interfaces /opt/jderobot/console_interfaces /opt/jderobot/CustomRobots /opt/jderobot/jderobot_drones /home/ws/src/
13
-
14
- # Compiling and sourcing the workspace
15
- WORKDIR /home/ws
16
- RUN /bin/bash -c "source /home/drones_ws/install/setup.bash; rosdep install --from-paths src --ignore-src -r --rosdistro humble -y"
17
- RUN /bin/bash -c "source /opt/ros/humble/setup.bash; colcon build --symlink-install"
12
+ RUN mv /opt/jderobot/CustomRobots /opt/jderobot/jderobot_drones /home/ws/src/
18
13
19
14
ARG IMAGE_TAG
20
15
ENV IMAGE_TAG=${IMAGE_TAG}
@@ -34,14 +29,22 @@ RUN chmod +x /start_vnc.sh /kill_all.sh /entrypoint.sh /start_vnc_gpu.sh
34
29
ARG ROBOTICS_ACADEMY=$ROBOTICS_ACADEMY
35
30
RUN git clone --depth 1 https://github.com/JdeRobot/RoboticsAcademy.git -b $ROBOTICS_ACADEMY /RoboticsAcademy/
36
31
32
+ # Add common packages to workspace
33
+ RUN mv /RoboticsAcademy/common/hal_interfaces /RoboticsAcademy/common/gui_interfaces /RoboticsAcademy/common/console_interfaces /home/ws/src/
34
+
35
+ # Compiling and sourcing the workspace
36
+ WORKDIR /home/ws
37
+ RUN /bin/bash -c "source /home/drones_ws/install/setup.bash; rosdep install --from-paths src --ignore-src -r --rosdistro humble -y"
38
+ RUN /bin/bash -c "source /opt/ros/humble/setup.bash; colcon build --symlink-install"
39
+
37
40
# Relocate RAM
38
41
RUN mkdir /RoboticsAcademy/src && mv /RoboticsApplicationManager/* /RoboticsAcademy/src
39
42
40
43
# build react_fronted
41
44
RUN cd /RoboticsAcademy/react_frontend/ && yarn install && yarn run build
42
45
43
46
# Django server
44
- EXPOSE 8000
47
+ EXPOSE 7164
45
48
46
49
# Manager websocket
47
50
EXPOSE 7163
@@ -71,4 +74,4 @@ WORKDIR /
71
74
72
75
# Setting environment in both interactive or non-interactive shells
73
76
ENV BASH_ENV /.env
74
- ENTRYPOINT ["./entrypoint.sh"]
77
+ ENTRYPOINT ["./entrypoint.sh"]
0 commit comments