Skip to content

Commit 001044c

Browse files
authored
Apptainer/Singularity writable
Apptainer/Singularity writable
2 parents 1330eb1 + 7405d9a commit 001044c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,18 +251,10 @@ This can be also used to access the computation results directly from the file s
251251

252252
## Run it using Apptainer (or commercial version: Singularity) on HPC, Server or Workstation
253253

254-
### Using Docker image:
255-
256-
```bash
257-
# Replace `apptainer` by `singularity` if you don't use appatainer
258-
apptainer pull --name nodemicmac.sif docker://opendronemap/nodemicmac:master
259-
apptainer run --bind $PWD:/var/www nodemicmac.sif
260-
```
261-
262254
### Using def file:
263255
```bash
264-
apptainer -v build --notest nodemicmac.sif apptainer.def
265-
apptainer run --bind $PWD:/var/www nodemicmac.sif
256+
apptainer -v build --sandbox nodemicmac.sif apptainer.def
257+
apptainer run --writable nodemicmac.sif
266258
```
267259

268260

apptainer.def

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ From: opendronemap/nodemicmac:master
1010
export PATH=$PATH:/code/micmac/bin
1111
export python=$(which python3)
1212

13+
%post
14+
15+
mkdir -p /var/www
16+
17+
mkdir -p "/var/www"
18+
cd "/var/www"
19+
mkdir -p tmp
20+
1321
%runscript
1422
cd "/var/www"
1523
exec /usr/bin/node /var/www/index.js "$@"

0 commit comments

Comments
 (0)