Skip to content

Commit 4e0e3aa

Browse files
committed
Expand documentation
1 parent 398a319 commit 4e0e3aa

File tree

4 files changed

+76
-16
lines changed

4 files changed

+76
-16
lines changed

docs/installing.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,40 @@ conda-forge channel.
55

66
## Installing from conda-forge
77

8-
TODO
8+
Using mamba, conda, or any other conda-compatible package manager, you can
9+
install xcengine into the current environment with a command like
10+
11+
```bash
12+
mamba install -c conda-forge xcengine
13+
```
14+
15+
You can create a new environment containing xcengine with a command like
16+
17+
```bash
18+
mamba create -c conda-forge xcengine
19+
```
920

1021
## Installing directly from the GitHub repository
1122

12-
TODO
23+
If you want to work with the latest, unreleased development version of xcengine,
24+
you can install it from the GitHub repository.
25+
26+
First, clone the repository and change to its root directory:
27+
28+
```bash
29+
git clone https://github.com/xcube-dev/xcengine.git
30+
cd xcengine
31+
```
32+
33+
Next, create a conda environment containing the dependencies and activate it:
34+
35+
```bash
36+
mamba env create -f environment.yml
37+
mamba activate xcengine
38+
```
39+
40+
Finally, install xcengine itself from the repository using pip:
41+
42+
```bash
43+
pip install --no-deps --editable .
44+
```

docs/notebook.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ cell in a notebook, and it is strongly advised that the parameters cell appear
1515
**as early as possible** in the notebook.
1616

1717
You turn a normal code cell into a parameters cell by adding a tag called
18-
**parameters** to it in the Jupyter Lab using the Property Inspector.
19-
(The Property Inspector can be opened by clicking the gear icon at the top
20-
right of the Jupyter Lab window.)
18+
**parameters** to it in Jupyter Lab using the Property Inspector. (The Property
19+
Inspector can be opened by clicking the gear icon at the top right of the Jupyter
20+
Lab window.)
2121

2222
![Property inspector](images/property-inspector.png)
2323

docs/testing.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
# Testing and running application packages
1+
# Testing and running Application Packages
22

3-
TODO
3+
Application Packages are generally deployed to cloud platforms, but there are also
4+
ways to run CWL files and complete Application Packages locally.
45

56
## Running with cwltool
67

7-
TODO
8+
[cwltool](https://www.commonwl.org/user_guide/introduction/quick-start.html) is the
9+
reference runner for CWL files. It doesn't implement the full Application Package
10+
best practice (so there is no stage-in / stage-out functionality) but can nevertheless
11+
be used to run CWL files that implement Application Packages.
812

913
## Running with ZOO-Project and the DRU extensions
1014

11-
TODO
15+
For a fully functional, locally deployable Application Package platform you can
16+
use the [ZOO-Project](https://zoo-project.org/) with the optional
17+
[DRU extensions](https://zoo-project.github.io/docs/kernel/dru.html), running on
18+
[minikube](https://minikube.sigs.k8s.io/docs/). The
19+
[EOEPCA+ documentation](https://eoepca.readthedocs.io/projects/deploy/en/2.0-rc1/building-blocks/oapip-engine/)
20+
gives detailed instructions for installation.

docs/xcetool.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,41 @@ The command-line interface to xcengine is the command `xcetool`, which
66
implements multiple subcommands and options for building and running
77
container images and Application Packages.
88

9+
You can use the `--help` flag for any `xcetool` command or subcommand to get more
10+
details on usage and available options.
11+
912
### `xcetool image build`
1013

11-
TODO
14+
This is the main `xcetool` subcommand: it builds a container image from a supplied
15+
notebook and environment file. If given the `--eoap` argument, it also generates
16+
a CWL file defining a corresponding application package.
1217

1318
### `xcetool image run`
1419

15-
TODO
20+
This subcommand runs an xcengine container image. An image can also be run using the
21+
`docker run` command, but `xcetool image run` provides some additional convenience
22+
(e.g. easy configuration of the HTTP port).
1623

17-
###`xcetool make-script`
24+
### `xcetool make-script`
1825

19-
TODO
26+
This subcommand does not generate a container image, but a directory containing
27+
the main contents that the image would have had: a script derived from the notebook
28+
along with some supporting files. The `make-script` subcommand is mainly useful for
29+
debugging.
2030

2131
## Publishing your container image
2232

23-
TODO
33+
Once you have built your container image locally, you can push it to an online
34+
registry. The tag is used to determine the registry and repository to which to
35+
push the image. For example, if an image is tagged `quay.io/alice/helloworld:1.0`,
36+
pushing it will attempt to upload the image to the repository `helloworld`
37+
under the account `alice` on the registry `quay.io`.
38+
39+
40+
## Deploying your Application Package
2441

25-
## Deploying your application package
42+
Once your container image has been pushed to a registry, the CWL file can be deployed
43+
to a cloud platform to make your Application Package available to users of this
44+
platform. The process for deploying the CWL file varies; consult the platform
45+
documentation or support for details.
2646

27-
TODO

0 commit comments

Comments
 (0)