11# Use the official Ubuntu 22.04 image
2- FROM osrf/ros:humble-desktop-full
2+ FROM ubuntu:22.04
33
44# Set environment variables for non-interactive installation
55ENV DEBIAN_FRONTEND=noninteractive
@@ -10,7 +10,6 @@ ENV DISPLAY=:1
1010ARG TARGETARCH
1111ENV TARGETARCH=${TARGETARCH}
1212
13-
1413# Update the package list and install necessary packages, including the missing ones
1514RUN apt-get update && \
1615 apt-get install -y \
@@ -52,13 +51,26 @@ RUN mkdir -p /root/.vnc && \
5251ENV TZ=America/New_York
5352RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5453
54+ # Clone RoboJackets RoboCup software
55+ RUN git clone https://github.com/RoboJackets/robocup-software.git /root/robocup-software
56+
57+ # Install dependencies
58+ RUN cd /root/robocup-software && \
59+ ./util/ubuntu-setup -y || { echo 'ubuntu-setup script failed' ; exit 1; }
60+
5561# Clone and build ER-Force’s simulator
5662RUN git clone https://github.com/robotics-erlangen/framework.git /root/framework && \
5763 cd /root/framework && \
5864 mkdir build && cd build && \
5965 cmake .. && \
6066 make simulator-cli
6167
68+ # Build our stack
69+ RUN bash -c "source /opt/ros/humble/setup.bash && \
70+ cd /root/robocup-software && \
71+ colcon build --parallel-workers 1 --executor sequential && \
72+ source install/setup.bash"
73+
6274# Clone, build ER-Force's autoref
6375RUN git clone https://github.com/robotics-erlangen/autoref.git /root/autoref && \
6476 cd /root/autoref && \
@@ -76,13 +88,6 @@ RUN cd /root && \
7688 fi && \
7789 chmod +x ssl-game-controller_v3.12.3_linux_*
7890
79- # Install Robocup Dependencies
80- RUN mkdir -p /util
81- COPY ./util/ubuntu-setup /ubuntu-setup
82- COPY ./util/ubuntu-packages.txt /util/ubuntu-packages.txt
83- COPY ./util/requirements3.txt /util/requirements3.txt
84- RUN /ubuntu-setup -y || { echo 'ubuntu-setup script failed' ; exit 1; }
85-
8691# Expose the VNC, noVNC, and external ref ports
8792EXPOSE 5901 6080 8081
8893
0 commit comments