Skip to content

Commit d81206c

Browse files
authored
Merge pull request #1 from JdeRobot/ri-migration
Remove references of the interfaces moved to RA
2 parents c5ced07 + 9f2c5e6 commit d81206c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

scripts/Dockerfile.humble

+11-8
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ RUN mkdir -p /opt/jderobot && \
99

1010
# create workspace and add Robot packages
1111
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/
1813

1914
ARG IMAGE_TAG
2015
ENV IMAGE_TAG=${IMAGE_TAG}
@@ -34,14 +29,22 @@ RUN chmod +x /start_vnc.sh /kill_all.sh /entrypoint.sh /start_vnc_gpu.sh
3429
ARG ROBOTICS_ACADEMY=$ROBOTICS_ACADEMY
3530
RUN git clone --depth 1 https://github.com/JdeRobot/RoboticsAcademy.git -b $ROBOTICS_ACADEMY /RoboticsAcademy/
3631

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+
3740
# Relocate RAM
3841
RUN mkdir /RoboticsAcademy/src && mv /RoboticsApplicationManager/* /RoboticsAcademy/src
3942

4043
# build react_fronted
4144
RUN cd /RoboticsAcademy/react_frontend/ && yarn install && yarn run build
4245

4346
# Django server
44-
EXPOSE 8000
47+
EXPOSE 7164
4548

4649
# Manager websocket
4750
EXPOSE 7163
@@ -71,4 +74,4 @@ WORKDIR /
7174

7275
# Setting environment in both interactive or non-interactive shells
7376
ENV BASH_ENV /.env
74-
ENTRYPOINT ["./entrypoint.sh"]
77+
ENTRYPOINT ["./entrypoint.sh"]

0 commit comments

Comments
 (0)