Skip to content

Shell Scripts

Jim Hofman edited this page Jul 18, 2022 · 26 revisions

This page contains descriptions of shell scripts.

/opera_pge/.ci/scripts/util.sh

Contains utility scripts that may be used by various other shell scripts

metrics_collection_start <container_name>

Begins collection of Docker Statistics and other operating system statistics for an executing Docker image.

metrics_collection_end <container_name>, <exit_code>

Completes the collection of statistics for an executing Docker image.

_**/run_metrics.sh

        Arguments:
        <pge_name> 
        <run config_fn> (file name only) 
        <data_dir> (full path) 
        <image name>**_

example:

 
run_metrics  DSWX_HLS_PGE   dswx_hls.yaml   /Users/..../l30_greenland   opera/proteus:mid_may_2022

Wraps a 'docker run' command with metrics_collection_start() and metrics_collection_end() function calls. This script begin collection of statistics, then runs the docker file as statistics are gathering.
When the docker file completes the collection of statistics is stopped, and CSV files remain with the results.

Clone this wiki locally