Skip to content

Commit 8ef8e8c

Browse files
fix code blocks for real
1 parent b215c3a commit 8ef8e8c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/tutorials.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ Fork and clone repository
10011001
First, 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
10101011
Next, 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

10151017
Modify code
@@ -1028,13 +1030,15 @@ Connect to NodeODM instance
10281030
Let 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

10351038
Now 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

10401044
Install and use changes
@@ -1043,6 +1047,7 @@ Install and use changes
10431047
Let 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

10521057
Next we can rebuild Ceres.
10531058

1054-
:: code-block:: bash
1059+
:: bash
1060+
10551061
cmake ../.
10561062
make -j$(nproc) ceres
10571063
...

0 commit comments

Comments
 (0)