https://github.com/azavea/usace-program-analysis-geoprocessing
Companion geoprocessing repository of https://github.com/azavea/usace-program-analysis
https://github.com/azavea/usace-program-analysis-geoprocessing
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.7%) to scientific vocabulary
Keywords
Repository
Companion geoprocessing repository of https://github.com/azavea/usace-program-analysis
Basic Info
- Host: GitHub
- Owner: azavea
- License: apache-2.0
- Language: Shell
- Default Branch: develop
- Size: 59.6 KB
Statistics
- Stars: 1
- Watchers: 10
- Forks: 1
- Open Issues: 2
- Releases: 4
Topics
Metadata Files
README.md
USACE Program Analysis Geoprocessing
This repository contains the backing geoprocessing service for the USACE Program Analysis web app. It is a Spray based web service that performs geoprocessing operations using GeoTrellis and Apache Spark.
Build
To build the service JAR, execute the following:
$ ./sbt "project geop" assembly
which should result in geop/target/scala-2.10/usace-programanalysis-geop-assembly-$VERSION.jar.
Run
The assembled JAR can be run via Spark.
$ spark-submit geop/target/scala-2.10/usace-programanalysis-geop-assembly-$VERSION.jar
As Spark loads the JAR it will output a number of messages. Once the following are shown, the server is ready to accept requests:
[INFO] [06/01/2016 14:22:52.711] [usace-programanalysis-geop-akka.actor.default-dispatcher-2] [akka://usace-programanalysis-geop/user/IO-HTTP/listener-0] Bound to /0.0.0.0:8090
[INFO] [06/01/2016 14:22:52.713] [usace-programanalysis-geop-akka.actor.default-dispatcher-3] [akka://usace-programanalysis-geop/deadLetters] Message [akka.io.Tcp$Bound] from Actor[akka://usace-programanalysis-geop/user/IO-HTTP/listener-0#-233686889] to Actor[akka://usace-programanalysis-geop/deadLetters] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
The server can be stopped with Ctrl + C.
Test
You can test the running service by hitting the /ping endpoint, which should result in a simple OK reply. Using httpie:
$ http :8090/ping
HTTP/1.1 200 OK
Content-Length: 2
Content-Type: text/plain; charset=UTF-8
Date: Wed, 01 Jun 2016 18:22:56 GMT
Server: spray-can/1.3.3
OK
Alternatively, using curl:
$ curl http://localhost:8090/ping
OK
Test with Web App
To test with the main web app, build the JAR and copy it to the /src/geoprocessing directory, and uncomment the volume mapping in docker-compose.yml. Then run docker-compose up.
Deploy
Deployments to GitHub Releases and Quay are handled via Travis-CI. The following git-flow commands signal to Travis that we want to create a release. The version variable should be updated in project/Version.scala and Dockerfile.
bash
$ git flow release start 0.0.1
$ vim CHANGELOG.md
$ vim project/Version.scala
$ vim Dockerfile
$ git commit -m "0.0.1"
$ git flow release publish 0.0.1
$ git flow release finish 0.0.1
You should now check the develop and master branches on Github to make sure that they look correct. In particular, they should both contain the changes that you made to CHANGELOG.md. If they do not, then the following two steps may also be required:
bash
$ git push origin develop:develop
$ git push origin master:master
To actually kick off the deployment, ensure that the newly created Git tags are pushed remotely with git push --tags.
Owner
- Name: Azavea
- Login: azavea
- Kind: organization
- Location: Philadelphia, PA
- Website: https://www.azavea.com
- Repositories: 383
- Profile: https://github.com/azavea
Geospatial software engineering for good
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
