Instructions below are for dashboard v1.8.0 but you should be able to do other versions by checking out the appropriate tag and adjusting NODE_VERSION
(Below) as appropriate. Check Supported PI Versions for Dashboard & Cumulus compatability.
As an example: Cumulus Version 1.19 should us Dashboard releasae v1.7.2
& NODE_VERSION="10.x"
.
git clone https://github.com/nasa/cumulus-dashboard
cd cumulus-dashboard
# Grab the tags...
git fetch --all --tags
# This dockerfile was crafted to work with cumulus dashboard 1.8.0
git checkout tags/v1.8.0
Manually download the standalone.dockerfile
or use curl to fetch it
cd docker/
curl -L https://gist.githubusercontent.com/bbuechler/7614dca4a191da3d7dd23e55d1642148/raw/bb0a7733ba1f99625bbe9777c4d1e9cf5fd413ea/standalone.dockerfile -O
See Pull the API name from the CloudFormation Stack for details on getting this value.
export APIROOT=https://w37g32wack.execute-api.us-east-1.amazonaws.com/test/
Be sure to adjust the build-args
as appropriate. Pay particular attention to NODE_VERSION
. Cumulus version 1.10.0 and higher should use NODE_VERSION="12.x"
.
cd ..
docker build \
--build-arg NODE_VERSION="10.x" \
--build-arg APIROOT=$APIROOT \
--build-arg DAAC_NAME="YourDaac" \
--build-arg STAGE=dev \
--build-arg HIDE_PDR=false \
--build-arg LABELS=daac \
--build-arg SERVED_BY_CUMULUS_API=false \
--build-arg AUTH_METHOD=earthdata \
-f docker/standalone.dockerfile \
-t cumulusdash .
export cumulusdash=$(docker run -e PORT=8181 -p 8181:8181 -d cumulusdash)
Check out PROXY.md
Open firefox and navigate to http://localhost:8181
Hey! Its the cumulus Dashboard!
# copy the nginx html file to a local directory
mkdir /tmp/dashboard && docker cp $cumulusdash:/usr/share/nginx/html/ /tmp/dashboard/
# Sync the html directory up to an S3 bucket:
aws s3 sync /tmp/dashboard/html/ s3://your-cumulus-html-bucket
docker kill $cumulusdash
- Make sure your
TOKEN_REDIRECT_ENDPOINT
value is added to the URS APP as a redirect_uri - If your
var.archive_api_port
value is set to 8000, the Proxy.pac config won't work.