Skip to content

Commit c9ec762

Browse files
authored
Update Docker Development Image (#2409)
Update
1 parent 40fa5be commit c9ec762

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

Dockerfile.dev

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
55
ENV DEBIAN_FRONTEND=noninteractive
@@ -10,7 +10,6 @@ ENV DISPLAY=:1
1010
ARG TARGETARCH
1111
ENV TARGETARCH=${TARGETARCH}
1212

13-
1413
# Update the package list and install necessary packages, including the missing ones
1514
RUN apt-get update && \
1615
apt-get install -y \
@@ -52,13 +51,26 @@ RUN mkdir -p /root/.vnc && \
5251
ENV TZ=America/New_York
5352
RUN 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
5662
RUN 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
6375
RUN 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
8792
EXPOSE 5901 6080 8081
8893

docs/source/installation.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ install all required dependencies:
3333

3434
.. code-block:: bash
3535
36-
cd robocup-software && ./util/ubuntu-setup && ./util/git-setup
36+
cd robocup-software && ./util/ubuntu-setup
3737
3838
To simulate the vision data we'd get from a real field camera setup, we'll use
3939
ER-Force's simulator. For that, clone their repo, and ``cd`` into it. Note, this should
@@ -162,8 +162,6 @@ Once you have Docker installed, please follow the steps for installing and using
162162
image at `DockerHub
163163
<https://hub.docker.com/r/robojackets/robocup-software-dev>`_.
164164

165-
Once you're done, follow the instructions on :ref:`building the stack <building_the_stack>`.
166-
167165

168166
Shortcuts
169167
---------

0 commit comments

Comments
 (0)