OpenSfM icon indicating copy to clipboard operation
OpenSfM copied to clipboard

Adding instruction/steps to run the docker image in the documentation

Open ishaniis opened this issue 3 years ago • 2 comments

Little trivial; I just figured out how to run the docker container with opensfm, also ensuring that the localhost:8080 is running.

I was wondering if we could add that information as part of running the docker container information. It could act as a resource base for the people to run the docker image more smoothly.

ishaniis avatar Nov 08 '22 03:11 ishaniis

Hi @ishaniis , if possible, please share the steps to run opensfm in docker. I tried building image from Dockerfile but it keeps failing at python3 setup.py build with below error

#0 62.85 subprocess.CalledProcessError: Command '['cmake', '../opensfm/src', '-DPYTHON_EXECUTABLE=/usr/bin/python3']' returned non-zero exit status 1.
------
Dockerfile:30
--------------------
  29 |     
  30 | >>> RUN pip3 install -r requirements.txt && \
  31 | >>>     python3 setup.py build
  32 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install -r requirements.txt &&     python3 setup.py build" did not complete successfully: exit code: 1

uditmanav17 avatar Jun 07 '23 09:06 uditmanav17

Hi @ishaniis , if possible, please share the steps to run opensfm in docker. I tried building image from Dockerfile but it keeps failing at python3 setup.py build with below error

#0 62.85 subprocess.CalledProcessError: Command '['cmake', '../opensfm/src', '-DPYTHON_EXECUTABLE=/usr/bin/python3']' returned non-zero exit status 1.
------
Dockerfile:30
--------------------
  29 |     
  30 | >>> RUN pip3 install -r requirements.txt && \
  31 | >>>     python3 setup.py build
  32 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install -r requirements.txt &&     python3 setup.py build" did not complete successfully: exit code: 1

Is it a code repository pulled by the following command? The OpenSfM repository contains other sub-repositories, and the normal git clone command will not recursively pull code from the sub-repositories, causing the dockerfile to fail to compile the image.

git clone --recurse-submodules https://github.com/mapillary/OpenSfM.git

hqzqaq avatar Jan 14 '24 02:01 hqzqaq