Sign inSign up

yminemura/ros2-arm64v8

By yminemura

•Updated about 5 years ago

Image
0

117

yminemura/ros2-arm64v8 repository overview

Imagination Dockerfile

FROM ubuntu:20.04

RUN apt update && apt install -y \
    curl \
    gnupg2 \
    lsb-release \
    wget \
    && rm -rf /var/lib/apt/lists/*

RUN wget --no-check-certificate https://raw.githubusercontent.com/ros/rosdistro/master/ros.key
RUN mv ros.key /usr/share/keyrings/ros-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null

RUN apt update && apt install -y ros-foxy-desktop

RUN apt update && apt install -y python3-rosdep
RUN rosdep init
RUN rosdep update

RUN echo "source /opt/ros/foxy/setup.bash" >> ~/.bashrc
RUN source ~/.bashrc

# -- tools --
RUN apt update && apt install -y \
    vim \
    git \
    usbutils \
    ros-foxy-joy \
    ros-foxy-teleop-twist-joy \
    python3-colcon-common-extensions \
    && rm -rf /var/lib/apt/lists/*

⁠usage example

  1. docker pull yminemura/ros2-arm64v8:foxy-desktop-tools
  2. mkdir -p ~/ros2_ws/src
  3. cd ~/ros2_ws
  4. colcon build
  5. echo "source ~/scr2_ws/install/setup.bash" >> ~/.bashrc
  6. ros2 pkg create --build-type ament_cmake (your_package_name)
  7. colcon build
  8. source ~/.bashrc

Tag summary

Content type

Image

Digest

Size

1 GB

Last updated

about 5 years ago

docker pull yminemura/ros2-arm64v8:foxy-desktop-tools