Skip to content

Commit 7d09332

Browse files
committed
fixed whitespace, expanded README
1 parent 1df8ff2 commit 7d09332

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,14 @@ This makes the ``build-cargo.py`` script available. The script is preconfigured
4949
The ``cultcargo`` folder contains YaML files with cab definitions.
5050

5151
If you would like to maintain your own image collection, write your own manifest and Dockerfiles following the cult-cargo example, and use the ``build-cargo.py`` script to build your images.
52+
53+
## Using cult-cargo as a standalone image repository
54+
55+
You don't even need to run stimela (or indeed install anything) to take advantage of the images packaged with cult-cargo. Take a look at the image repository on https://quay.io/organization/stimela2 to see what's available.
56+
57+
For example, if you want to run a wsclean image, just do:
58+
59+
```
60+
$ singularity build wsclean-3.3.sif docker:quay.io/stimela2/wsclean:3.3-cc0.1.2
61+
$ singularity exec wsclean-3.3.sif wsclean
62+
```

cultcargo/builder/build_cargo.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def run(command, cwd=None, input=None):
7373
@click.option('-v', '--verbose', is_flag=True, help='Be verbose.')
7474
@click.option('--boring', is_flag=True, help='Be boring -- no progress bar.')
7575
@click.argument('imagenames', type=str, nargs=-1)
76-
def build_cargo(manifest: str, do_list=False, build=False, push=False, all=False, rebuild=False, boring=False,
76+
def build_cargo(manifest: str, do_list=False, build=False, push=False, all=False, rebuild=False, boring=False,
7777
experimental=False, verbose=False, imagenames: List[str] = []):
7878
if not (build or push or do_list):
7979
build = push = True
@@ -84,7 +84,7 @@ def build_cargo(manifest: str, do_list=False, build=False, push=False, all=False
8484
"{task.description}",
8585
console=console, disable=boring) as progress:
8686
print = progress.console.print
87-
87+
8888
progress_task = progress.add_task("loading manifest")
8989

9090
print(Rule(f"Loading manifest {manifest}"))
@@ -254,7 +254,7 @@ def resolve_config_reference(value):
254254
version_vars["VERSION"] = version
255255
version_vars["IMAGE_VERSION"] = image_version
256256

257-
is_exp = version_info.get('experimental')
257+
is_exp = version_info.get('experimental')
258258
exp_deps = version_info.get('experimental_dependencies', [])
259259

260260
if is_exp or exp_deps:

cultcargo/images/ddfacet/apt.sources.list

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ deb http://us.archive.ubuntu.com/ubuntu bionic-backports main restricted univers
99
deb-src http://us.archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
1010
deb-src http://us.archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
1111
deb-src http://us.archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse
12-
deb-src http://us.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
12+
deb-src http://us.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

0 commit comments

Comments
 (0)