The Combined Utilities for River Routing Nested Together (CURRNT) is designed to simplify the execution of the Routing Application for Parallel computatIon of Discharge (RAPID) and the Reproducible Routing Rituals (RRR) on Amazon Web Services (AWS).
Download CURRNT:
git clone https://github.com/c-h-david/currntEnter the CURRNT directory:
cd currnt/Create Docker image:
docker build -t chdavid/currnt:app0-latest -f Dockerfile_app0 .Execute Docker image as a Docker container:
docker run --rm -p 9000:8080 chdavid/currnt:app0-latest
docker run -e EARTHDATA_USERNAME="yourEarthDataUserName" \
-e EARTHDATA_PASSWORD="yourEarthDataPassword" \
--rm -p 9000:8080 chdavid/currnt:app3-latest
docker run -e EARTHDATA_USERNAME="yourEarthDataUserName" \
-e EARTHDATA_PASSWORD="yourEarthDataPassword" \
-e AWS_ACCESS_KEY_ID="yourKeyID" \
-e AWS_SECRET_ACCESS_KEY="yourSecretAccessKey" \
--rm -p 9000:8080 chdavid/currnt:app4-latestThe
--rmoption deletes the container after execution. The-p 9000:8080option maps Transmission Control Protocol (TCP) ports. In this case, the8080port in the Docker container is mapped to the9000port in the Docker host. Also, if one of your environmental variables has a special character,> consider using the\escape character before the special character.
Try it out:
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" \
--data-raw '{"basin_id":"74", "lsm_mod":"VIC",
"s3_name":"currnt-data", "yyyy_mm":"2000-01"}'