Skip to content

Commit 16149f0

Browse files
show how to run
1 parent d7acd25 commit 16149f0

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ If you need to test changes as a docker image, you can build easily as follows:
3838
docker build -t my_nodeodm_image --no-cache .
3939
```
4040

41+
Run as follows:
42+
43+
```
44+
docker run -p 3000:3000 my_nodeodm_image &
45+
```
46+
47+
4148
### Testing alternative ODM images through NodeODM
4249

4350
In order to test alternative ODM docker images in NodeODM, you will need to change the dockerfile for NodeODM to point to your ODM image. For example if you built an alternate ODM image as follows:
@@ -46,7 +53,7 @@ In order to test alternative ODM docker images in NodeODM, you will need to chan
4653
docker build -t my_odm_image --no-cache .
4754
```
4855

49-
Then you'll modify NodeODM's Dockerfile to point to the new ODM image in the first line:
56+
Then modify NodeODM's Dockerfile to point to the new ODM image in the first line:
5057

5158
```
5259
FROM my_odm_image
@@ -56,6 +63,18 @@ EXPOSE 3000
5663
...
5764
```
5865

66+
Then build the NodeODM image:
67+
68+
```
69+
docker build -t my_nodeodm_image --no-cache .
70+
```
71+
72+
Finally run as follows:
73+
74+
```
75+
docker run -p 3000:3000 my_nodeodm_image &
76+
```
77+
5978
### Running rootless
6079

6180
* A rootless alternative to Docker is using [Apptainer](https://apptainer.org/). In order to run NodeODM together with ClusterODM in rootless environments, for example on HPC, we need a rootless alternative to Docker, and that's where Apptainer comes in to play. From the Linux command line, cd into the NodeODM folder and run the following commands to host a NodeODM instance:

0 commit comments

Comments
 (0)