代码拉取完成,页面将自动刷新
#########################################################################################
# Micro XRCE-DDS Agent Docker
#########################################################################################
# Build stage
FROM ubuntu AS build
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /root
# Essentials
RUN apt-get update
RUN apt-get install -y \
software-properties-common \
build-essential \
cmake \
git
# Java
RUN apt install -y openjdk-8-jdk
ENV JAVA_HOME "/usr/lib/jvm/java-8-openjdk-amd64/"
# Gradle
RUN apt-get install -y gradle
RUN apt-get clean
# Prepare Micro XRCE-DDS Agent workspace
RUN mkdir -p /agent/build
ADD . /agent/
# Build Micro XRCE-DDS Agent and install
RUN cd /agent/build && \
cmake -DCMAKE_INSTALL_PREFIX=../install \
.. &&\
make -j $(nproc) && make install
# Prepare Micro XRCE-DDS Agent artifacts
RUN cd /agent && \
tar -czvf install.tar.gz -C install .
# Final user image
FROM ubuntu
WORKDIR /root
# Copy Micro XRCE-DDS Agent build artifacts
COPY --from=build /agent/install.tar.gz /usr/local/
RUN tar -xzvf /usr/local/install.tar.gz -C /usr/local/ &&\
rm /usr/local/install.tar.gz
COPY --from=build /agent/agent.refs .
RUN ldconfig
ENTRYPOINT ["MicroXRCEAgent"]
CMD ["--help"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。