@@ -1001,6 +1001,7 @@ Fork and clone repository
10011001First, let's fork the ODM repo, and checkout a new branch locally that will function as our development branch.
10021002
10031003:: bash
1004+
10041005 git checkout -b my_clever_new_change
10051006 # Switched to a new branch 'my_clever_new_change'
10061007
@@ -1010,6 +1011,7 @@ Set up local NodeODM docker instance
10101011Next, we will set up a NodeODM instance with a locally mounted volume that points to our development branch of ODM
10111012
10121013:: bash
1014+
10131015 docker run -d --restart unless-stopped -p 3000:3000 -v /path/to/cloned/ODM/repository/data:/code opendronemap/nodeodm
10141016
10151017Modify code
@@ -1028,13 +1030,15 @@ Connect to NodeODM instance
10281030Let us find out our container name, in case we forgot:
10291031
10301032:: bash
1033+
10311034 docker ps
10321035 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
10331036 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
10341037
10351038Now that we know the container name, we will connect to that instance using docker exec as follows:
10361039
10371040:: bash
1041+
10381042 docker exec -it affectionate_yalow bash
10391043
10401044Install and use changes
@@ -1043,6 +1047,7 @@ Install and use changes
10431047Let us get the environment prepared for our testing:
10441048
10451049:: bash
1050+
10461051 root@c997a4c5611b:/var/www# cd /code
10471052 ./configure.sh installruntimedepsonly
10481053 mkdir /code/SuperBuild/build
@@ -1051,7 +1056,8 @@ Let us get the environment prepared for our testing:
10511056
10521057Next we can rebuild Ceres.
10531058
1054- :: code-block:: bash
1059+ :: bash
1060+
10551061 cmake ../.
10561062 make -j$(nproc) ceres
10571063 ...
0 commit comments