Skip to content

Commit

Permalink
Apptainer/Singularity writable
Browse files Browse the repository at this point in the history
Apptainer/Singularity writable
  • Loading branch information
kikislater authored Sep 17, 2024
2 parents 1330eb1 + 7405d9a commit 001044c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,18 +251,10 @@ This can be also used to access the computation results directly from the file s

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

### Using Docker image:

```bash
# Replace `apptainer` by `singularity` if you don't use appatainer
apptainer pull --name nodemicmac.sif docker://opendronemap/nodemicmac:master
apptainer run --bind $PWD:/var/www nodemicmac.sif
```

### Using def file:
```bash
apptainer -v build --notest nodemicmac.sif apptainer.def
apptainer run --bind $PWD:/var/www nodemicmac.sif
apptainer -v build --sandbox nodemicmac.sif apptainer.def
apptainer run --writable nodemicmac.sif
```


Expand Down
8 changes: 8 additions & 0 deletions apptainer.def
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ From: opendronemap/nodemicmac:master
export PATH=$PATH:/code/micmac/bin
export python=$(which python3)

%post

mkdir -p /var/www

mkdir -p "/var/www"
cd "/var/www"
mkdir -p tmp

%runscript
cd "/var/www"
exec /usr/bin/node /var/www/index.js "$@"
Expand Down

0 comments on commit 001044c

Please sign in to comment.