diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-22 22:09:13 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-22 22:09:13 -0400 |
commit | f767fcc4ca230243487e734ec7652643f31a45c5 (patch) | |
tree | 1887c874081fc1f66140bff74b22ecca00559244 /README.md | |
parent | 7517c34e19eee37ee99d248f7ba97d35af3e6dde (diff) | |
download | dm-f767fcc4ca230243487e734ec7652643f31a45c5.tar.gz |
Add README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..f26d604 --- /dev/null +++ b/README.md @@ -0,0 +1,64 @@ +# delivery_merge + + +## What does it do? + +1. Install miniconda3 in the current working directory +2. Create a new environment based on an explicit dump file +3. Transpose packages listed in a `dmfile` into the new environment +4. Generate a YAML and explicit dump of the new environment +5. [TODO] Scan packages installed via `dmfile` and execute tests (if possible) inside the new environment + +## Where should I run this? + +Inside of a CI/CD pipeline. + + +## Usage + +``` +Create reproducible pipeline deliveries +-n --env-name Required: name of delivery +-d --dmfile Required: delivery merge specification file +-o --output-dir store delivery-related results in dir +-p --install-prefix path to install miniconda + --install-variant miniconda Python variant +-i --install-version version of miniconda installer +-R --run-tests scan merged packages and execute their tests + --base-spec conda explicit or yaml environment dump file +-h --help This help information. +``` + +## The dmfile + +Comment characters: `;` or `#` + +Line format: `{conda_package}[=<>]{version}` + +**Example:** + +``` +; This is a comment +package_a=1.0.0 +package_b<=1.0.0 +package_c>=1.0.0 # This is also a comment +package_d>1.0.0 +package_e<1.0.0 +``` + + +## Execution example + +```sh +$ cat < EOF > hstdp-2019.3-py36.dm +python=3.6 +numpy=1.16.3 +EOF +$ git clone https://github.com/astroconda/astroconda-releases +$ delivery_merge --env-name delivery \ + --installer-version=4.5.12 \ + --dmfile hstdp-2019.3-py36.dm \ + astroconda-releases/hstdp/2019.2/latest-linux + +# >>> Actual output here <<< +``` |