Skip to content

Commit

Permalink
The example would no longer work, now that we copy in the files vs.
Browse files Browse the repository at this point in the history
linking in from a /src directory.
  • Loading branch information
bdklahn committed Nov 5, 2024
1 parent 96391af commit 371d1e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ apptainer run --bind=data:/scif/data sciductainer_0.1.0.sif run app001 --age 42
# Bob's age is 42.
```

If you want to also test changes to script files in the repository, and have the container use those, you can additionally `--bind` your local repo files in ("mounting" over the read-only copy of that in the container image).
If you want to also test changes to script files in the repository, and have the container use those, you can additionally `--bind` your local repo files directory in ("mounting" over the read-only copy of that in the container image).
E.g.

```bash
# Change to 'age: int = 34' in src/app_script001.py
apptainer run --bind=data:/scif/data,src:/src sciductainer_0.1.0.sif run app001
apptainer run --bind=data:/scif/data,src:/scif/apps/app001/lib sciductainer_0.1.5.sif run app001
```
4 changes: 3 additions & 1 deletion apps.scif
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
%appinstall app001
cp /docker_context/environment.yml .
micromamba install --yes --name base --file environment.yml
cd bin
cd lib
cp /docker_context/src/app_script001.py .
chmod +x app_script001.py
cd ../bin
ln -s ../lib/app_script001.py

%apphelp app001
a little documentation for this app, if wanted
Expand Down

0 comments on commit 371d1e6

Please sign in to comment.