Skip to content

Commit

Permalink
Bump micro-ROS Agent Jazzy
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 committed May 31, 2024
1 parent ab64bed commit 9245dbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/generate_agent_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
branch: iron
- ros_distribution: rolling
branch: rolling
- ros_distribution: jazzy
branch: jazzy
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Set up QEMU
Expand Down
16 changes: 8 additions & 8 deletions micro-ROS-Agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM microros/base:rolling AS micro-ros-agent-builder
FROM ros:jazzy AS micro-ros-agent-builder

WORKDIR /uros_ws
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /agent_ws
RUN . /opt/ros/$ROS_DISTRO/setup.sh \
&& . install/local_setup.sh \
&& apt update \
&& ros2 run micro_ros_setup create_agent_ws.sh \
&& ros2 run micro_ros_setup build_agent.sh \
&& apt install -y ros-$ROS_DISTRO-micro-ros-msgs
&& git clone -b $ROS_DISTRO https://github.com/micro-ROS/micro-ROS-Agent src/micro-ROS-Agent
&& rm -rf log/ build/ src/

FROM ros:rolling-ros-core

COPY --from=micro-ros-agent-builder /uros_ws /uros_ws
COPY --from=micro-ros-agent-builder /agent_ws /agent_ws

WORKDIR /uros_ws
WORKDIR /agent_ws

# Disable shared memory
COPY disable_fastdds_shm.xml disable_fastdds_shm_localhost_only.xml /tmp/
Expand All @@ -21,7 +21,7 @@ ENV RMW_IMPLEMENTATION=rmw_fastrtps_cpp
ENV MICROROS_DISABLE_SHM=1

RUN echo ". /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
RUN echo ". /uros_ws/install/setup.bash" >> ~/.bashrc
RUN echo ". /agent_ws/install/setup.bash" >> ~/.bashrc

# setup entrypoint
COPY ./micro-ros_entrypoint.sh /
Expand Down

0 comments on commit 9245dbf

Please sign in to comment.