Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bvriens

Pages: [1]
1
Python and Java API / Re: Standalone Module Use in a Docker Container
« on: June 26, 2020, 10:09:29 AM »
This is as far as I got. Didn't had the chance to do much testing. We are using the full metashape version in a vm for now.

FROM nvidia/cuda:10.2-base-ubuntu18.04
# Install pip for python3, mesa deb for metashape, nodejs
RUN apt update && \
    apt install -y python3-pip && \
    apt install -y wget && \
    apt install -y libglu1-mesa && \
    apt install -y libgl1-mesa-glx && \   
    rm -rf /var/lib/apt/lists/*
# add metashape user and swith to it
RUN adduser metashape
USER metashape

# set The workdir
WORKDIR /home/metashape

# install metashape python headless 1.6.3
RUN wget http://download.agisoft.com/Metashape-1.6.3-cp35.cp36.cp37-abi3-linux_x86_64.whl && \
    python3 -m pip install Metashape-1.6.3-cp35.cp36.cp37-abi3-linux_x86_64.whl && \
    rm -f Metashape-1.6.3-cp35.cp36.cp37-abi3-linux_x86_64.whl

# copy .lic to module directory pip installs in /usr/local/lib/python3.6/site-packages/Metashape
COPY YOUR_LICENSE.lic  .local/lib/python3.6/site-packages/Metashape-1.6.3.dist-info/
# expose ports for licensing
EXPOSE 5053 5147

Pages: [1]