<commit_before>FROM youtalk/ubuntu-ja:xenial
MAINTAINER <NAME> <<EMAIL>>

# setup keys
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys <KEY>

# setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu xenial main" > /etc/apt/sources.list.d/ros-latest.list

# OSRF Repo Setup ##############################################################
# setup keys
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys D2486D2DD83DB69272AFE98867170598AF249743

# setup sources.list
RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial main" > /etc/apt/sources.list.d/gazebo-latest.list

# ROS2 Setup ###################################################################
# install packages
RUN apt-get update && apt-get install -q -y \
    build-essential \
    cmake \
    cppcheck \
    git \
    libopencv-dev \
    libopensplice64 \
    python-empy \
    python3-empy \
    python3-nose \
    python3-pip \
    python3-setuptools \
    python3-vcstool \
    wget \
    clang-format \
    pydocstyle \
    pyflakes \
    python3-coverage \
    python3-mock \
    python3-pep8 \
    uncrustify \
    libboost-chrono-dev \
    libboost-date-time-dev \
    libboost-program-options-dev \
    libboost-regex-dev \
    libboost-system-dev \
    libboost-thread-dev \
    && rm -rf /var/lib/apt/lists/*

# install python packages
RUN pip3 install -U \
    setuptools

# clone source
ENV WS /root/ros2_ws/src
RUN mkdir -p /root/ros2_ws/src
WORKDIR /root/ros2_ws/src
RUN wget https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos \
    && vcs import /root/ros2_ws/src < ros2.repos

# build source
WORKDIR /root/ros2_ws/src/..
RUN src/ament/ament_tools/scripts/ament.py \
    build \
    --build-tests \
    --symlink-install

# setup entrypoint
COPY ./ros2_entrypoint.sh /

ENTRYPOINT ["/ros2_entrypoint.sh"]
CMD ["bash"]<commit_msg>add --cmake-args option to ament<commit_after>FROM youtalk/ubuntu-ja:xenial
MAINTAINER <NAME> <<EMAIL>>

# setup keys
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys <KEY>

# setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu xenial main" > /etc/apt/sources.list.d/ros-latest.list

# OSRF Repo Setup ##############################################################
# setup keys
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys D2486D2DD83DB69272AFE98867170598AF249743

# setup sources.list
RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial main" > /etc/apt/sources.list.d/gazebo-latest.list

# ROS2 Setup ###################################################################
# install packages
RUN apt-get update && apt-get install -q -y \
    build-essential \
    cmake \
    cppcheck \
    git \
    libopencv-dev \
    libopensplice64 \
    python-empy \
    python3-empy \
    python3-nose \
    python3-pip \
    python3-setuptools \
    python3-vcstool \
    wget \
    clang-format \
    pydocstyle \
    pyflakes \
    python3-coverage \
    python3-mock \
    python3-pep8 \
    uncrustify \
    libboost-chrono-dev \
    libboost-date-time-dev \
    libboost-program-options-dev \
    libboost-regex-dev \
    libboost-system-dev \
    libboost-thread-dev \
    && rm -rf /var/lib/apt/lists/*

# install python packages
RUN pip3 install -U \
    setuptools

# clone source
ENV WS /root/ros2_ws/src
RUN mkdir -p /root/ros2_ws/src
WORKDIR /root/ros2_ws/src
RUN wget https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos \
    && vcs import /root/ros2_ws/src < ros2.repos

# build source
WORKDIR /root/ros2_ws/src/..
RUN src/ament/ament_tools/scripts/ament.py \
    build \
    --build-tests \
    --symlink-install \
    --cmake-args -DEPROSIMA_BUILD=ON --

# setup entrypoint
COPY ./ros2_entrypoint.sh /

ENTRYPOINT ["/ros2_entrypoint.sh"]
CMD ["bash"]
{'fraction_non_alphanumeric': 0.1829809449229966, 'fraction_numerical': 0.027669015922735577, 'mean_word_length': 2.8668012108980827, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2440182', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1366, 'n_words': 259}