Robotics StackExchange | Archived questions

ROS2 Foxy issues in docker

I'm having issues running my system within a docker container. By experimenting, I've managed to observe that

So additional information:

Run my docker using

docker run --rm -it

and below is the dockerfile if created

FROM ros:foxy-ros-base-focal

ARG DEBIAN_FRONTEND=noninteractive

# Install required packages
RUN ln -fs /usr/share/zoneinfo/America/Toronto /etc/localtime && \
    apt-get update -qq \
    && apt-get install --no-install-recommends -y -qq \
    apt-utils \
    build-essential \
    git \
    tmux \
    openssh-server \
    sudo \
    python3-pip \
    dialog \
    tzdata \
    curl \
    nano \
    screen \
    keyboard-configuration && \
    dpkg-reconfigure --frontend noninteractive tzdata \
    && apt-get clean -qq

COPY ./src/ /home/src/
COPY ./.git/ /home/.git/
COPY ./requirements.txt /home/
COPY ros_entrypoint.sh /

WORKDIR /home/

RUN pip install -r requirements.txt

# Build autosoar packages
RUN . /opt/ros/foxy/setup.sh && \
    colcon build --cmake-args --symlink-install

ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]

Asked by AlexandreB on 2023-04-24 15:05:37 UTC

Comments

Answers