Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (73 sloc) 1.87 KB
# Copyright (c) 2018, ARM Limited.
# SPDX-License-Identifier: Apache-2.0
ARG ARM_ARCH=arm64v8
FROM ${ARM_ARCH}/ubuntu:bionic
COPY ./qemu-user-static/* /usr/bin/
COPY ./ros2_ws/src /ros2_ws/src
# Set timezone
RUN echo 'Etc/UTC' > /etc/timezone && \
ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
apt-get update && apt-get install -q -y tzdata && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y \
pkg-config \
lsb-release \
curl \
gfortran \
libpcre3 \
libpcre3-dev \
bash-completion \
dirmngr \
gnupg2
# ROS2 dependencies
RUN apt install -y --no-install-recommends \
build-essential \
cmake \
git \
wget
ENV LANG en_US.UTF-8
ENV LC_ALL C.UTF-8
RUN curl http://repo.ros2.org/repos.key | apt-key add -
RUN sh -c 'echo "deb [arch=amd64,arm64] http://repo.ros2.org/ubuntu/main \
`lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
RUN apt update
RUN apt install -y \
python3-colcon-common-extensions \
python3-pip \
python3-rosdep
RUN python3 -m pip install -U \
argcomplete \
flake8 \
flake8-blind-except \
flake8-builtins \
flake8-class-newline \
flake8-comprehensions \
flake8-deprecated \
flake8-docstrings \
flake8-import-order \
flake8-quotes \
pytest-repeat \
pytest-rerunfailures
RUN python3 -m pip install -U \
pytest \
pytest-cov \
pytest-runner \
setuptools
RUN apt install --no-install-recommends -y \
libasio-dev \
libtinyxml2-dev
WORKDIR /ros2_ws
RUN rosdep init
RUN rosdep update
RUN rosdep install --from-paths src \
--ignore-src \
--rosdistro crystal -y \
--skip-keys "console_bridge \
fastcdr \
fastrtps \
libopensplice67 \
libopensplice69 \
rti-connext-dds-5.3.1 \
urdfdom_headers"
WORKDIR /
RUN apt-get install -y symlinks
RUN symlinks -rc .
You can’t perform that action at this time.