Skip to content

Commit b6400b5

Browse files
really fix code
1 parent 8ef8e8c commit b6400b5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

source/tutorials.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ Fork and clone repository
10001000

10011001
First, let's fork the ODM repo, and checkout a new branch locally that will function as our development branch.
10021002

1003-
:: bash
1003+
::
10041004

10051005
git checkout -b my_clever_new_change
10061006
# Switched to a new branch 'my_clever_new_change'
@@ -1010,7 +1010,7 @@ Set up local NodeODM docker instance
10101010

10111011
Next, we will set up a NodeODM instance with a locally mounted volume that points to our development branch of ODM
10121012

1013-
:: bash
1013+
::
10141014

10151015
docker run -d --restart unless-stopped -p 3000:3000 -v /path/to/cloned/ODM/repository/data:/code opendronemap/nodeodm
10161016

@@ -1019,8 +1019,6 @@ Modify code
10191019

10201020
For our test today, we will attempt to upgrade Ceres Solver to version 2.2.0. Most external libraries like Ceres can be found in the Superbuild directory. In this case we edit SuperBuild/cmake/External-Ceres.cmake, and set it to use version 2.2.0
10211021

1022-
*** Vimdiff image
1023-
10241022
Now that we've made that small, but substantive change, we need to rebuild Ceres on the docker image for testing.
10251023

10261024

@@ -1029,15 +1027,15 @@ Connect to NodeODM instance
10291027

10301028
Let us find out our container name, in case we forgot:
10311029

1032-
:: bash
1030+
::
10331031

10341032
docker ps
10351033
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
10361034
c997a4c5611b opendronemap/nodeodm "/usr/bin/node /var/…" 2 minutes ago Up 2 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp affectionate_yalow
10371035

10381036
Now that we know the container name, we will connect to that instance using docker exec as follows:
10391037

1040-
:: bash
1038+
::
10411039

10421040
docker exec -it affectionate_yalow bash
10431041

@@ -1046,7 +1044,7 @@ Install and use changes
10461044

10471045
Let us get the environment prepared for our testing:
10481046

1049-
:: bash
1047+
::
10501048

10511049
root@c997a4c5611b:/var/www# cd /code
10521050
./configure.sh installruntimedepsonly
@@ -1056,7 +1054,7 @@ Let us get the environment prepared for our testing:
10561054

10571055
Next we can rebuild Ceres.
10581056

1059-
:: bash
1057+
::
10601058

10611059
cmake ../.
10621060
make -j$(nproc) ceres

0 commit comments

Comments
 (0)