Skip to content

Commit

Permalink
validate in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Jan 8, 2024
1 parent e19e38b commit eb19a4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/stream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ else
WEIGHTS_FILE="${DATA%/}/${GEOPACKAGE#/}"
fi

CONF_GENERATOR="$(dirname "$SCRIPT_DIR")/python/configure-datastream.py"
pip3 install -r $PACAKGE_DIR/requirements.txt --no-cache
CONF_GENERATOR="$PACAKGE_DIR/python/configure-datastream.py"
python $CONF_GENERATOR $CONFIG_FILE

echo "Creating nwm files"
Expand All @@ -192,7 +193,7 @@ docker run -it --rm -v "$DATA_PATH:"$DOCKER_MOUNT"" \
python "$DOCKER_FP_PATH"forcingprocessor.py "$DOCKER_CONFIGS"/conf_fp.json


VALIDATOR="$(dirname "$SCRIPT_DIR")/python/run_validator.py"
VALIDATOR="/ngen-datastream/python/run_validator.py"
DOCKER_TAG="validator"
VAL_DOCKER="${DOCKER_DIR%/}/validator"
build_docker_container "$DOCKER_TAG" "$VAL_DOCKER"
Expand All @@ -202,6 +203,7 @@ docker run -it --rm -v "$NGEN_RUN_PATH":"$DOCKER_MOUNT" \
validator python $VALIDATOR \
--data_dir $DOCKER_MOUNT


# ngen run
echo "Running NextGen in AUTO MODE from CIROH-UA/NGIAB-CloudInfra"
docker run --rm -it -v "$NGEN_RUN_PATH":"$DOCKER_MOUNT" awiciroh/ciroh-ngen-image:latest-x86 "$DOCKER_MOUNT" auto
Expand Down

0 comments on commit eb19a4f

Please sign in to comment.