Skip to content

Commit 4788eff

Browse files
authored
Merge pull request #14 from Imageomics/7-improve-docs
Add docker/singularity instructions to README
2 parents 181abbf + 3060a67 commit 4788eff

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,29 @@ Download files from the published dataset with DOI doi:10.5072/FK2/B7LCCX in htt
6565
```
6666
dva download doi:10.5072/FK2/B7LCCX data --url https://datacommons.tdai.osu.edu/
6767
```
68+
69+
## Docker and Singularity Support
70+
A Docker image is built for each release of `dataverse-access` that can be used with both [Docker](https://www.docker.com/) and [Singularity/Apptainer](https://apptainer.org/). The images are available at [ghcr.io/imageomics/dataverse-access](https://github.com/Imageomics/dataverse-access/pkgs/container/dataverse-access). The images are tagged with the version of each release.
71+
72+
### Docker Download Example
73+
The following example downloads files into a `data` subdirectory of the current working directory:
74+
```
75+
docker run \
76+
-v $(pwd)/data:/data \
77+
-it ghcr.io/imageomics/dataverse-access \
78+
dva download doi:10.5072/FK2/B7LCCX /data --url https://datacommons.tdai.osu.edu/
79+
```
80+
To persist downloaded files when using Docker typically requires mounting a volume.
81+
The above example uses the [-v docker argument](https://docs.docker.com/storage/volumes/#choose-the--v-or---mount-flag) to mount a `data` subdirectory within the current working directory as `/data` in the container.
82+
83+
### Singularity/Apptainer Download Example
84+
The following example downloads files into a `data` subdirectory of the current working directory:
85+
```
86+
singularity run docker://ghcr.io/imageomics/dataverse-access \
87+
dva download doi:10.5072/FK2/B7LCCX data --url https://datacommons.tdai.osu.edu/
88+
```
89+
Since singularity typically will mount the current working directory the above command does not mount any extra directories.
90+
For help on mounting directories with the singularity command see the [singularity path binding documentation](https://apptainer.org/docs/user/main/bind_paths_and_mounts.html#user-defined-bind-paths).
91+
92+
## Versioning
93+
Releases of dataverse-access follow [Semantic Versioning](https://semver.org/). Semantic versioning only applies to the `dva` command line interface and not the underlying python code.

0 commit comments

Comments
 (0)