1 Star 0 Fork 0

viphl/micro-XRCE-DDS-Client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
#########################################################################################
# Micro XRCE-DDS Client 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
# Prepare Micro XRCE-DDS Client workspace
RUN mkdir -p /client/build
ADD . /client/
# Build Micro XRCE-DDS Client and install
RUN cd /client/build && \
cmake \
-DCMAKE_INSTALL_PREFIX=../install \
-DUCLIENT_BUILD_EXAMPLES=ON \
-DUCLIENT_INSTALL_EXAMPLES=ON \
-DUCLIENT_ISOLATED_INSTALL=OFF \
.. &&\
make && make install
# Prepare Micro XRCE-DDS Client artifacts
RUN cd /client && \
tar -czvf install.tar.gz -C install .
# Final user image
FROM ubuntu
WORKDIR /root
# Copy Micro XRCE-DDS Client build artifacts
COPY --from=build /client/install.tar.gz /usr/local/
RUN tar -xzvf /usr/local/install.tar.gz -C /usr/local/ &&\
rm /usr/local/install.tar.gz
RUN ldconfig
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/diyorg/micro-XRCE-DDS-Client.git
git@gitee.com:diyorg/micro-XRCE-DDS-Client.git
diyorg
micro-XRCE-DDS-Client
micro-XRCE-DDS-Client
master

搜索帮助