Lightweight Distributed Computing System repo
This repo keeps:
Copy the runtime environment you want: runTimeEnvironments/LDMX-SIMPROD-x.y
to where you keep them on your site, e.g.
cp runTimeEnvironments/LDMX-SIMPROD-x.y /opt/arc-runtime/APPS/LDMX-SIMPROD-x.y
Note that these are LDCS specific files, so version numbers are independent of ldmx-sw
versions.
Then enable it: arcctl rte enable APPS/LDMX-SIMPROD-x.y
arcctl rte params-set APPS/LDMX-SIMPROD-x.y LDMX_STORAGE_BASE /your/local/storage/path/
arcctl rte params-set APPS/LDMX-SIMPROD-x.y KEEP_LOCAL_COPY Y
This keeps a copy of job output in the local storage path. If KEEP_LOCAL_COPY
is left empty (default), a local copy of job outout won't be kept. Job output is transferred to the final storage location (over GridFTP) regardless.
Let's assume we have ldmx-sw release vX.Y.Z
Copy the runtime environment matching the release number: runTimeEnvironments/LDMX-X.Y.Z
to where you keep them on your site, e.g.
cp runTimeEnvironments/LDMX-X.Y.Z /opt/arc-runtime/APPS/LDMX-X.Y.Z
Then enable it: arcctl rte enable APPS/LDMX-X.Y.Z
Next: instructions on how to build the corresponding new image.
Script: images/build_from_docker.sh
Again let's assume we have ldmx-sw release vX.Y.Z
Run with bash /path/to/LDCS/images/build_from_docker.sh vX.Y.Z [optional: repo name]
in the directory where you want the image to end up. (Maybe images
is a sensible place for them -- feel free to keep them there. They are too big to reasonably add them to github though.) This pulls a docker image from dockerhub and builds a singularity image from it. It might take a few minutes. Then point to it in the new runtime environment (after following RTE setup instructions above):
arcctl rte params-set APPS/LDMX-X.Y.Z SINGULARITY_IMAGE /path/to/beautiful-long-name-of-newly-created-singularity-image.sif
For fun, double check the parameters:
arcctl rte params-get APPS/LDMX-X.Y.Z
arcctl rte params-get APPS/LDMX-SIMPROD-x.y
arcctl rte params-get APPS/LDMX-X.Y.Z
arcctl rte list