Commit 0393b0ad authored by xuebingbing's avatar xuebingbing

1 新增生成jd源数据的功能docker 编译

parent 4aadb135
......@@ -21,15 +21,18 @@ echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted
RUN apt-get update -y \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes apt-utils autoconf pkg-config libtool cmake \
libpdal-dev libpcl-dev git vim
libpdal-dev libpcl-dev git vim python3-gdal
WORKDIR /build
RUN git clone --branch master http://git.corp.roadlinks.cn:2020/xueye9/fmt_converter.git fmt_converter
Workdir /build/build
WORKDIR /build/build
RUN cmake -DCMAKE_INSTALL_PREFIX=/installed /build/fmt_converter \
&& make -j16 && make install
WORKDIR /xuebb
RUN git clone --branch dev http://git.corp.roadlinks.cn:2020/py-tools/tools.git pytools
#编译相关自己的源代码
#通过拷贝的方式减小镜像大小 build final image
......@@ -53,7 +56,7 @@ echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted
RUN apt-get update -y \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes apt-utils \
pdal libpcl-dev libpcl-io1.8
pdal libpcl-dev libpcl-io1.8 python3-gdal
#RUN apt-get update -y \
# && apt upgrade -y \
......@@ -63,6 +66,7 @@ COPY --from=builder /installed/include/ /usr/include/
COPY --from=builder /installed/bin/ /usr/bin/
COPY --from=builder /installed/lib/ /usr/lib/x86_64-linux-gnu/
COPY --from=builder /installed/share/ /usr/share/
COPY --from=builder /xuebb/pytools/jd_metadata_generator.py /usr/local/
ENV LANG C.UTF-8
RUN ldconfig
......
#程序运行说明
eg:
docker exec -it <container_id> /usr/bin/jfhdconvertor --help
- example command line options
Usage:
/usr/bin/jfhdconvertor [OPTION...]
-m, --mode arg pcd2las,pcd2las.auto (default: pcd2las.auto)
-h, --help Print help
pcd2las.auto options:
--workdir arg 自动化的任务根目录
pcd2las options:
--pcdfile arg 输入pcd文件路径
--lasfile arg 输出las文件路径
--offsetxyz arg A list of doubles (default: 0.0,0.0,0.0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment