Sign inSign up

opennms/oca-check

By opennms

Updated over 8 years ago

Application container for OCA check service for the OpenNMS project.

Image
1

10K+

opennms/oca-check repository overview

Supported tags

  • latest, latest develop release
latest
  • Jetty 9.4.7
  • OCA GitHub Plugin 1.1

OCA check service for GitHub

This service checks contributors in GitHub pull requests if they have signed the OpenNMS Contribution Agreement (OCA). The mail address of the pull request contributor is verified against the list in the link:https://wiki.opennms.org/wiki/Executed_contributor_agreements[OpenNMS Wiki].

Requirements

Running the service requires:

  • Access to administrative settings in GitHub project
  • Service must be available on the Internet with public IP address or DNS name and requires a Webhook entry in the GitHub project
  • Docker Engine 1.12+
  • optional Docker Compose 1.8+

Configuration

The service can be configured with environment variables. Following variables are available:

VariableDescriptionDefault
OCA_PLUGIN_CONFIG_DIRLocation for properties config file/etc/oca-github-plugin
OCA_PLUGIN_CONFIGOCA global configuration file in config directoryoca-github-plugin.properties
OCA_PLUGIN_MAPPINGAllow mapping of multiple mail addresses to a GitHub user in config directoryoca-mapping.properties
GITHUB_API_TOKENGitHub API TokenmyToken
GITHUB_USERGitHub user with permissions to the repositorymyUser
GITHUB_REPOSITORYGitHub repository for Pull Requests to checkmyRepo
GITHUB_WEBHOOK_SECRETGitHub webhook secretmyWebhookSecret
OCA_REGEXP_REDOCommands which allow triggering the OCA check manually through Pull Request comment, e.g. .*(a7lfred|ulf).oca.myRegexpRedo
MAPPING_FILE_LOCATIONLocation of the mapping file for multiple mailaddresses to a single GitHub usermyMappingFileLocation

Usage

Create a .oca_check.env file with your settings as shown in the example.

Global configuration for oca-github-plugin.properties

GITHUB_API_TOKEN=myGitHubApiToken
GITHUB_USER=myGitHubUser
GITHUB_REPOSITORY=myGitHubRepository
GITHUB_WEBHOOK_SECRET=myGitHubWebhookSecret
OCA_REGEXP_REDO=myOcaRegexpForRecheck
MAPPING_FILE_LOCATION=/path/to/mappingfile.properties

Run the containerized service using docker-compose

docker-compose up -d

Service can be tested with the health ReST endpoint:

curl -I http://localhost:8080/oca-check/rest/health
HTTP/1.1 200 OK

Tag summary

Content type

Image

Digest

Size

238.8 MB

Last updated

over 8 years ago

docker pull opennms/oca-check