ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:a3272496fda5a8d021b94dccaa6baa685ded51e9d23edb05f0b30978a83c9fc2 in / |
CMD ["/bin/bash"] |
RUN /bin/sh -c echo 'Etc/UTC' > /etc/timezone && ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && apt-get update && apt-get install -q -y --no-install-recommends tzdata && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c apt-get update && apt-get install -q -y --no-install-recommends dirmngr gnupg2 && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c set -eux; key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; mkdir -p /usr/share/keyrings; gpg --batch --export "$key" > /usr/share/keyrings/ros2-latest-archive-keyring.gpg; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit |
RUN /bin/sh -c echo "deb [ signed-by=/usr/share/keyrings/ros2-latest-archive-keyring.gpg ] http://packages.ros.org/ros2/ubuntu noble main" > /etc/apt/sources.list.d/ros2-latest.list # buildkit |
ENV LANG=C.UTF-8 |
ENV LC_ALL=C.UTF-8 |
ENV ROS_DISTRO=jazzy |
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ros-jazzy-ros-core=0.11.0-1* && rm -rf /var/lib/apt/lists/* # buildkit |
COPY ./ros_entrypoint.sh / # buildkit |
ENTRYPOINT ["/ros_entrypoint.sh"] |
CMD ["bash"] |
ENV ROS_DISTRO=jazzy |
RUN /bin/sh -c apt-get update -y # buildkit |
RUN /bin/sh -c apt-get install -y ros-${ROS_DISTRO}-mavros ros-${ROS_DISTRO}-mavros-extras ros-${ROS_DISTRO}-mavros-msgs ros-${ROS_DISTRO}-rmw-cyclonedds-cpp # buildkit |
RUN /bin/sh -c wget https://raw.githubusercontent.com/mavlink/mavros/ros2/mavros/scripts/install_geographiclib_datasets.sh # buildkit |
RUN /bin/sh -c bash ./install_geographiclib_datasets.sh # buildkit |
RUN /bin/sh -c apt-get clean # buildkit |
COPY ./ros_entrypoint.sh /ros_entrypoint.sh # buildkit |
COPY ./config/px4_pluginlists.yaml /opt/ros/jazzy/share/mavros/launch/ # buildkit |
COPY ./config/px4_config.yaml /opt/ros/jazzy/share/mavros/launch/ # buildkit |
RUN /bin/sh -c chmod +x ./ros_entrypoint.sh # buildkit |
HEALTHCHECK &{["CMD-SHELL" "/ros_entrypoint.sh ros2 topic list"] "1m0s" "5s" "0s" "0s" '\x03'} |