Application bundle that includes a Common Mapping Client frontend and GeoServer backend.
- Enable
git lfsfor your account:git lfs install --skip-smudge- Disable the smudge filter to avoid more painful initial clone
- Clone repo:
git clone git@github.jpl.nasa.gov:EcoPro/Data-Viewer.git - For JPL users only
- Some pre-built assets are stored for development use
- Pull down git lfs artifacts:
git lfs pull - Reinstate the smudge filter:
git lfs install --force - Unpack the GeoServer data bundle:
./scripts/unpack.sh
- Populate
docker/.envECOPRO_DATA_DIRpath to the directory where the EcoPro data files are located (usually something like./data_files)ECOPRO_GEOSERVER_DATA_DIRpath to the geoserver_data directory (usually something like./geoserver_data)
- Start services:
./scripts/start.sh- wait a few minutes for GeoServer to start up
- use
-dto run docker services in detached (in the background)
- Go to
http://localhostfor the data viewer - Go to
http://localhost/geoserverfor the GeoServer admin portal
pack.sh- packs the geoserver_data directory into a tarball for transferringunpack.sh- unpacks the geoserver_data tarball for servingbuild.sh- builds the docker images and sets up data directoriesstart.sh- builds and starts the docker containers (optional-dto start container in the background)stop.sh- stops and removes all the running containers- Python scripts:
convert_kelp_biomass: Converts NetCDF of Kelp Biomass data to a bunch of Shapefiles or MBTilesimport_directory: Bulk import all raster data files (GeoTIFF, Shapefiles, or MBTiles) in a directory into GeoServer- Docker image for python
- GDAL can be unpredictably upgraded and suddenly all of the versions won't match on MacOS, so use Docker instead
docker compose -f docker/docker-compose.dev.yml build ecoprodevdocker compose -f docker/docker-compose.dev.yml run ecoprodev
Docker can tend to get clogged up with cached layers, especially if one is repeatedly stopping/rebuilding/starting these containers. These out of date containers and image layers can lead to some unreliability with the GeoServer backend. As such, it is recommended to run docker system prune regularly to keep this cruft from interfering. This issue has been noted particularly on Apple M1 systems.
Contact Flynn for the currently configured GeoServer admin password